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 double _x, const double _y, const double _z, const gz::math::Color &_color=gz::math::Color::White) |
Add a point to the point list. More... | |
void | AddPoint (const gz::math::Vector3d &_pt, const gz::math::Color &_color=gz::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... | |
gz::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 gz::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 gz::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()
|
explicit |
Constructor.
- Parameters
-
[in] _scene Pointer to scene
◆ ~Ogre2DynamicRenderable()
|
virtual |
Virtual destructor.
Member Function Documentation
◆ AddPoint() [1/2]
void AddPoint | ( | const double | _x, |
const double | _y, | ||
const double | _z, | ||
const gz::math::Color & | _color = gz::math::Color::White |
||
) |
Add a point to the point list.
- Parameters
-
[in] _x X position [in] _y Y position [in] _z Z position [in] _color Point color
◆ AddPoint() [2/2]
void AddPoint | ( | const gz::math::Vector3d & | _pt, |
const gz::math::Color & | _color = gz::math::Color::White |
||
) |
Add a point to the point list.
- Parameters
-
[in] _pt gz::math::Vector3d point [in] _color gz::math::Color Point 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()
gz::math::Vector3d Point | ( | unsigned int | _index | ) | const |
Return the position of an existing point in the point list.
- Parameters
-
[in] _index Get the point at this index
- Returns
- position of point. A vector of [gz::math::INF_D, gz::math::INF_D, gz::math::INF_D] is returned when then the _index is out of bounds. gz::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 gz::math::Color & | _color | ||
) |
Change the color of an existing point in the point list.
- Parameters
-
[in] _index Index of the point to set [in] _color color to set the point to
◆ SetMaterial()
void SetMaterial | ( | MaterialPtr | _material, |
bool | _unique = true |
||
) |
Set the material for this dynamic renderable.
- Parameters
-
[in] _material New Material to be assigned [in] _unique True if the given material should be cloned
◆ SetOperationType()
void SetOperationType | ( | MarkerType | _opType | ) |
Set the render operation type.
- Parameters
-
[in] _opType The type of render operation to perform.
◆ SetPoint()
void SetPoint | ( | unsigned int | _index, |
const gz::math::Vector3d & | _value | ||
) |
Change the location of an existing point in the point list.
- Parameters
-
[in] _index Index of the point to set [in] _value Position of the point
◆ Update()
void Update | ( | ) |
Update the dynamic renderable.
The documentation for this class was generated from the following file: