Ignition Rendering

API Reference

5.1.0
Ogre2DynamicRenderable Class Reference

Dynamic renderable class that manages hardware buffers for a dynamic geometry. More...

#include <Ogre2DynamicRenderable.hh>

Public Member Functions

 Ogre2DynamicRenderable (ScenePtr _scene)
 Constructor. More...
 
virtual ~Ogre2DynamicRenderable ()
 Virtual destructor. More...
 
void AddPoint (const ignition::math::Vector3d &_pt, const ignition::math::Color &_color=ignition::math::Color::White)
 Add a point to the point list. More...
 
void AddPoint (const double _x, const double _y, const double _z, const ignition::math::Color &_color=ignition::math::Color::White)
 Add a point to the point list. More...
 
void Clear ()
 Remove all points from the point list. More...
 
void Destroy ()
 Destroy the dynamic renderable. More...
 
Ogre::MovableObject * OgreObject () const
 Get the ogre object associated with this dynamic renderable. More...
 
MarkerType OperationType () const
 Get the render operation type. More...
 
ignition::math::Vector3d Point (unsigned int _index) const
 Return the position of an existing point in the point list. More...
 
unsigned int PointCount () const
 Return the total number of points in the point list. More...
 
void SetColor (unsigned int _index, const ignition::math::Color &_color)
 Change the color of an existing point in the point list. More...
 
void SetMaterial (MaterialPtr _material, bool _unique=true)
 Set the material for this dynamic renderable. More...
 
void SetOperationType (MarkerType _opType)
 Set the render operation type. More...
 
void SetPoint (unsigned int _index, const ignition::math::Vector3d &_value)
 Change the location of an existing point in the point list. More...
 
void Update ()
 Update the dynamic renderable. More...
 

Detailed Description

Dynamic renderable class that manages hardware buffers for a dynamic geometry.

Constructor & Destructor Documentation

◆ Ogre2DynamicRenderable()

Ogre2DynamicRenderable ( ScenePtr  _scene)
explicit

Constructor.

Parameters
[in]_scenePointer to scene

◆ ~Ogre2DynamicRenderable()

virtual ~Ogre2DynamicRenderable ( )
virtual

Virtual destructor.

Member Function Documentation

◆ AddPoint() [1/2]

void AddPoint ( const ignition::math::Vector3d _pt,
const ignition::math::Color _color = ignition::math::Color::White 
)

Add a point to the point list.

Parameters
[in]_ptignition::math::Vector3d point
[in]_colorignition::math::Color Point color

◆ AddPoint() [2/2]

void AddPoint ( const double  _x,
const double  _y,
const double  _z,
const ignition::math::Color _color = ignition::math::Color::White 
)

Add a point to the point list.

Parameters
[in]_xX position
[in]_yY position
[in]_zZ position
[in]_colorPoint color

◆ Clear()

void Clear ( )

Remove all points from the point list.

◆ Destroy()

void Destroy ( )

Destroy the dynamic renderable.

◆ OgreObject()

Ogre::MovableObject* OgreObject ( ) const

Get the ogre object associated with this dynamic renderable.

◆ OperationType()

MarkerType OperationType ( ) const

Get the render operation type.

Returns
The render operation type.

◆ Point()

ignition::math::Vector3d Point ( unsigned int  _index) const

Return the position of an existing point in the point list.

Parameters
[in]_indexGet the point at this index
Returns
position of point. A vector of [ignition::math::INF_D, ignition::math::INF_D, ignition::math::INF_D] is returned when then the _index is out of bounds. ignition::math::INF_D==std::numeric_limits<double>::infinity()

◆ PointCount()

unsigned int PointCount ( ) const

Return the total number of points in the point list.

Returns
Number of points

◆ SetColor()

void SetColor ( unsigned int  _index,
const ignition::math::Color _color 
)

Change the color of an existing point in the point list.

Parameters
[in]_indexIndex of the point to set
[in]_colorcolor to set the point to

◆ SetMaterial()

void SetMaterial ( MaterialPtr  _material,
bool  _unique = true 
)

Set the material for this dynamic renderable.

Parameters
[in]_materialNew Material to be assigned
[in]_uniqueTrue if the given material should be cloned

◆ SetOperationType()

void SetOperationType ( MarkerType  _opType)

Set the render operation type.

Parameters
[in]_opTypeThe type of render operation to perform.

◆ SetPoint()

void SetPoint ( unsigned int  _index,
const ignition::math::Vector3d _value 
)

Change the location of an existing point in the point list.

Parameters
[in]_indexIndex of the point to set
[in]_valuePosition of the point

◆ Update()

void Update ( )

Update the dynamic renderable.


The documentation for this class was generated from the following file: