17 #ifndef GAZEBO_RENDERING_DYNAMICLINES_HH
18 #define GAZEBO_RENDERING_DYNAMICLINES_HH
49 public:
static std::string GetMovableType();
53 public:
virtual const Ogre::String &getMovableType()
const;
58 public:
void AddPoint(
const ignition::math::Vector3d &_pt,
66 public:
void AddPoint(
double _x,
double _y,
double _z,
72 public:
void SetPoint(
const unsigned int _index,
73 const ignition::math::Vector3d &_value);
78 public:
void SetColor(
unsigned int _index,
const common::Color &_color);
86 public: ignition::math::Vector3d Point(
const unsigned int _index)
const;
90 public:
unsigned int GetPointCount()
const;
96 public:
void Update();
100 private:
virtual void CreateVertexDeclaration();
104 private:
virtual void FillHardwareBuffers();
107 private: std::vector<ignition::math::Vector3d> points;
113 private: std::vector<common::Color> colors;
Class for drawing lines that can change.
Definition: DynamicLines.hh:37
static const Color White
(1, 1, 1)
Definition: Color.hh:39
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:211
A strip of connected lines, 1 vertex per line plus 1 start vertex.
Definition: RenderTypes.hh:221
Defines a color.
Definition: Color.hh:36