gz/rendering/ogre/OgreDynamicLines.hh
Go to the documentation of this file.
Class for drawing lines that can change.
Definition: gz/rendering/ogre/OgreDynamicLines.hh:43
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.
OgreDynamicLines(MarkerType _opType=MT_LINE_STRIP)
Constructor.
gz::math::Vector3d Point(unsigned int _index) const
Return the location of an existing point in the point list.
void SetColor(unsigned int _index, const gz::math::Color &_color)
Change the color of an existing point in the point list.
unsigned int PointCount() const
Return the total number of points in the point list.
void AddPoint(const gz::math::Vector3d &_pt, const gz::math::Color &_color=gz::math::Color::White)
Add a point to the point list.
void SetPoint(unsigned int _index, const gz::math::Vector3d &_value)
Change the location of an existing point in the point list.
void Update()
Call this to update the hardware buffer after making changes.
Abstract base class providing mechanisms for dynamically growing hardware buffers.
Definition: gz/rendering/ogre/OgreDynamicRenderable.hh:38
MarkerType
Enum for marker types.
Definition: gz/rendering/Marker.hh:36
@ MT_LINE_STRIP
Line strip primitive.
Definition: gz/rendering/Marker.hh:47