#include <GeomagicVisualModel.h>
Class used by GeomagicDriver to display the Geomagic device position and motion using visual models in the 3D scene.
Classes | |
| struct | VisualComponent |
Protected Attributes | |
| VisualComponent | visualNode [NVISUALNODE] |
| simulation::Node::SPtr | m_omniVisualNode |
| component::statecontainer::MechanicalObject< sofa::defaulttype::Rigid3dTypes >::SPtr | rigidDOF |
| VecCoord | m_posDeviceVisu |
| position of the hpatic devices for rendering. first pos is equal to d_posDevice More... | |
Static Protected Attributes | |
| static const char * | visualNodeNames [NVISUALNODE] |
| static const char * | visualNodeFiles [NVISUALNODE] |
Public Member Functions | |
| GeomagicVisualModel () | |
| virtual | ~GeomagicVisualModel () |
| void | initDisplay (sofa::simulation::Node::SPtr node, const std::string &_deviceName, double _scale) |
| Main Method to init the visual component tree of OGLModels. Called by Geomagic InitDevice() if drawVisual is on. More... | |
| void | updateDisplay (const GeomagicDriver::Coord &posDevice, GeomagicDriver::SHDdouble angle1[3], GeomagicDriver::SHDdouble angle2[3]) |
| Method to update the visualNode using the current device position and the angles of the different node of the device. Updated by Geomagic UpdatePosition() More... | |
| void | drawDevice (bool button1Status=false, bool button2Status=false) |
| Method called by Geomagic Draw method to display the geomagic OglModel. More... | |
| bool | isDisplayActivated () const |
| Get status if visualisation is activated. More... | |
| void | activateDisplay (bool value) |
| Activate or not the visualisation. More... | |
| bool | isDisplayInitiate () const |
| Get status if visualisation is init. More... | |
|
protected |
|
protected |
position of the hpatic devices for rendering. first pos is equal to d_posDevice
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
| geomagic::GeomagicVisualModel::GeomagicVisualModel | ( | ) |
|
virtual |
| void geomagic::GeomagicVisualModel::activateDisplay | ( | bool | value | ) |
Activate or not the visualisation.
| void geomagic::GeomagicVisualModel::drawDevice | ( | bool | button1Status = false, |
| bool | button2Status = false |
||
| ) |
Method called by Geomagic Draw method to display the geomagic OglModel.
| void geomagic::GeomagicVisualModel::initDisplay | ( | sofa::simulation::Node::SPtr | node, |
| const std::string & | _deviceName, | ||
| double | _scale | ||
| ) |
Main Method to init the visual component tree of OGLModels. Called by Geomagic InitDevice() if drawVisual is on.
|
inline |
Get status if visualisation is activated.
|
inline |
Get status if visualisation is init.
| void geomagic::GeomagicVisualModel::updateDisplay | ( | const GeomagicDriver::Coord & | posDevice, |
| GeomagicDriver::SHDdouble | angle1[3], | ||
| GeomagicDriver::SHDdouble | angle2[3] | ||
| ) |
Method to update the visualNode using the current device position and the angles of the different node of the device. Updated by Geomagic UpdatePosition()