17 #ifndef GAZEBO_RENDERING_DYNAMICLINES_HH 18 #define GAZEBO_RENDERING_DYNAMICLINES_HH 23 #include <ignition/math/Color.hh> 38 class DynamicLinesPrivate;
54 public:
static std::string GetMovableType();
58 public:
virtual const Ogre::String &getMovableType()
const;
63 public:
void AddPoint(
const ignition::math::Vector3d &_pt,
64 const ignition::math::Color &_color = ignition::math::Color::White);
71 public:
void AddPoint(
const double _x,
const double _y,
const double _z,
72 const ignition::math::Color &_color = ignition::math::Color::White);
77 public:
void SetPoint(
const unsigned int _index,
78 const ignition::math::Vector3d &_value);
84 public:
void SetColor(
const unsigned int _index,
85 const ignition::math::Color &_color);
93 public: ignition::math::Vector3d Point(
const unsigned int _index)
const;
97 public:
unsigned int GetPointCount()
const;
100 public:
void Clear();
103 public:
void Update();
107 private:
virtual void CreateVertexDeclaration();
111 private:
virtual void FillHardwareBuffers();
114 private: std::vector<ignition::math::Vector3d> points;
120 private: std::unique_ptr<DynamicLinesPrivate> dataPtr;
Class for drawing lines that can change.
Definition: DynamicLines.hh:42
Forward declarations for the common classes.
Definition: Animation.hh:26
Abstract base class providing mechanisms for dynamically growing hardware buffers.
Definition: DynamicRenderable.hh:35
RenderOpType
Type of render operation for a drawable.
Definition: RenderTypes.hh:216
A strip of connected lines, 1 vertex per line plus 1 start vertex.
Definition: RenderTypes.hh:226