Simox  2.3.74.0
VirtualRobot::Visualization Class Reference
Inheritance diagram for VirtualRobot::Visualization:
VirtualRobot::CoinVisualization

Public Member Functions

 Visualization (const VisualizationNodePtr visualizationNode)
 
 Visualization (const std::vector< VisualizationNodePtr > &visualizationNodes)
 
virtual ~Visualization ()
 
virtual bool highlight (VisualizationNodePtr visualizationNode, bool enable)
 
virtual bool highlight (unsigned int which, bool enable)
 
virtual void colorize (VisualizationFactory::Color c)
 
virtual void setTransparency (float transparency)
 
virtual bool isVisualizationNodeRegistered (VisualizationNodePtr visualizationNode)
 
virtual VisualizationPtr clone ()
 
virtual int getNumFaces ()
 get total number of faces (i.e. triangles) of all visualizations that are stored in this object More...
 
std::vector< VisualizationNodePtrgetVisualizationNodes ()
 

Static Public Member Functions

static std::string getFactoryName ()
 

Protected Attributes

std::vector< VisualizationNodePtrvisualizationNodes
 

Constructor & Destructor Documentation

◆ Visualization() [1/2]

VirtualRobot::Visualization::Visualization ( const VisualizationNodePtr  visualizationNode)

◆ Visualization() [2/2]

VirtualRobot::Visualization::Visualization ( const std::vector< VisualizationNodePtr > &  visualizationNodes)

◆ ~Visualization()

VirtualRobot::Visualization::~Visualization ( )
virtualdefault

Member Function Documentation

◆ clone()

VirtualRobot::VisualizationPtr VirtualRobot::Visualization::clone ( )
virtual

◆ colorize()

void VirtualRobot::Visualization::colorize ( VisualizationFactory::Color  c)
virtual

Colorize this visualization.

Parameters
cThe color to apply. To disable the colorization apply Color::None()

Reimplemented in VirtualRobot::CoinVisualization.

◆ getFactoryName()

static std::string VirtualRobot::Visualization::getFactoryName ( )
inlinestatic

◆ getNumFaces()

int VirtualRobot::Visualization::getNumFaces ( )
virtual

get total number of faces (i.e. triangles) of all visualizations that are stored in this object

◆ getVisualizationNodes()

std::vector<VisualizationNodePtr> VirtualRobot::Visualization::getVisualizationNodes ( )
inline

◆ highlight() [1/2]

bool VirtualRobot::Visualization::highlight ( VisualizationNodePtr  visualizationNode,
bool  enable 
)
virtual

Highlight a visualization node.

Parameters
visualizationNodeThis node must be part of this visualization, passed to the constructor.
enableDo/Undo highlighting.

Reimplemented in VirtualRobot::CoinVisualization.

◆ highlight() [2/2]

bool VirtualRobot::Visualization::highlight ( unsigned int  which,
bool  enable 
)
virtual

Highlight a visualization node.

Parameters
whichThe index of the visualionNodes, passed to the constructor.
enableDo/Undo highlighting.

Reimplemented in VirtualRobot::CoinVisualization.

◆ isVisualizationNodeRegistered()

bool VirtualRobot::Visualization::isVisualizationNodeRegistered ( VisualizationNodePtr  visualizationNode)
virtual

◆ setTransparency()

void VirtualRobot::Visualization::setTransparency ( float  transparency)
virtual

Colorize this visualization, but just set the transparency flag (no additional colorization is performed).

Parameters
transparencyThe transparent value in [0..1].

Reimplemented in VirtualRobot::CoinVisualization.

Field Documentation

◆ visualizationNodes

std::vector<VisualizationNodePtr> VirtualRobot::Visualization::visualizationNodes
protected