Simox  2.3.50
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

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

Member Function Documentation

VirtualRobot::VisualizationPtr VirtualRobot::Visualization::clone ( )
virtual
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.

static std::string VirtualRobot::Visualization::getFactoryName ( )
inlinestatic
int VirtualRobot::Visualization::getNumFaces ( )
virtual

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

std::vector<VisualizationNodePtr> VirtualRobot::Visualization::getVisualizationNodes ( )
inline
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.

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.

bool VirtualRobot::Visualization::isVisualizationNodeRegistered ( VisualizationNodePtr  visualizationNode)
virtual
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

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