Simox
2.3.74.0
|
Public Member Functions | |
CoinVisualization (const VisualizationNodePtr visualizationNode) | |
CoinVisualization (const std::vector< VisualizationNodePtr > &visualizationNodes) | |
~CoinVisualization () override | |
bool | highlight (VisualizationNodePtr visualizationNode, bool enable) override |
bool | highlight (unsigned int which, bool enable) override |
virtual bool | highlight (bool enable) |
virtual bool | highlight (SoNode *visu, bool enable) |
void | colorize (VisualizationFactory::Color c) override |
void | setTransparency (float transparency) override |
VisualizationPtr | clone () override |
SoNode * | getCoinVisualization (bool selectable=true) |
void | exportToVRML2 (std::string filename, bool useRotation=true) |
Public Member Functions inherited from VirtualRobot::Visualization | |
Visualization (const VisualizationNodePtr visualizationNode) | |
Visualization (const std::vector< VisualizationNodePtr > &visualizationNodes) | |
virtual | ~Visualization () |
virtual bool | isVisualizationNodeRegistered (VisualizationNodePtr visualizationNode) |
virtual int | getNumFaces () |
get total number of faces (i.e. triangles) of all visualizations that are stored in this object More... | |
std::vector< VisualizationNodePtr > | getVisualizationNodes () |
Static Public Member Functions | |
static std::string | getFactoryName () |
Static Public Member Functions inherited from VirtualRobot::Visualization | |
static std::string | getFactoryName () |
Protected Member Functions | |
bool | buildVisualization () |
Protected Attributes | |
bool | isSelectable |
SoSelection * | selection |
SoSeparator * | visuRoot |
SoMaterial * | color |
Protected Attributes inherited from VirtualRobot::Visualization | |
std::vector< VisualizationNodePtr > | visualizationNodes |
A Coin3D based implementation of a visualization.
VirtualRobot::CoinVisualization::CoinVisualization | ( | const VisualizationNodePtr | visualizationNode | ) |
VirtualRobot::CoinVisualization::CoinVisualization | ( | const std::vector< VisualizationNodePtr > & | visualizationNodes | ) |
|
override |
|
protected |
|
overridevirtual |
Reimplemented from VirtualRobot::Visualization.
|
overridevirtual |
Colorize this visualization.
c | The color to apply. To disable the colorization apply Color::None() |
Reimplemented from VirtualRobot::Visualization.
void VirtualRobot::CoinVisualization::exportToVRML2 | ( | std::string | filename, |
bool | useRotation = true |
||
) |
SoNode * VirtualRobot::CoinVisualization::getCoinVisualization | ( | bool | selectable = true | ) |
This method iterates over the entries in member CoinVisualization::visualizationNodes and stores the return value of CoinVisualizationNode::getCoinVisualization() in an SoSeparator if the processed node is of type CoinVisualizationNode. Afterwards the SoSeparator is returned.
|
inlinestatic |
|
overridevirtual |
To see the visualizations in an SoExaminerViewer enable an highlight render action e.g. viewer->setGLRenderAction(new SoLineHighlightRenderAction);
Reimplemented from VirtualRobot::Visualization.
|
overridevirtual |
Highlight a visualization node.
which | The index of the visualionNodes, passed to the constructor. |
enable | Do/Undo highlighting. |
Reimplemented from VirtualRobot::Visualization.
|
virtual |
|
virtual |
|
overridevirtual |
Colorize this visualization, but just set the transparency flag (no additional colorization is performed).
transparency | The transparent value in [0..1]. |
Reimplemented from VirtualRobot::Visualization.
|
protected |
|
protected |
|
protected |
|
protected |