Public Member Functions | Static Public Member Functions | Protected Member Functions
DynamicLines Class Reference

Class for drawing lines. More...

#include <DynamicLines.hh>

Inheritance diagram for DynamicLines:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DynamicLines (RenderOpType opType=RENDERING_LINE_STRIP)
 Constructor.
virtual ~DynamicLines ()
 Destructor.
virtual const Ogre::String & getMovableType () const
 Returns "gazebo::ogredynamicslines".
void AddPoint (const math::Vector3 &pt)
 Add a point to the point list.
void SetPoint (unsigned int index, const math::Vector3 &value)
 Change the location of an existing point in the point list.
const math::Vector3GetPoint (unsigned int index) const
 Return the location of an existing point in the point list.
unsigned int GetPointCount () const
 Return the total number of points in the point list.
void Clear ()
 Remove all points from the point list.
void Update ()
 Call this to update the hardware buffer after making changes.

Static Public Member Functions

static std::string GetMovableType ()

Protected Member Functions

virtual void CreateVertexDeclaration ()
 Implementation DynamicRenderable, creates a simple vertex-only decl.
virtual void FillHardwareBuffers ()
 Implementation DynamicRenderable, pushes point list out to hardware memory.

Detailed Description

Class for drawing lines.


Member Function Documentation

void AddPoint ( const math::Vector3 pt)

Add a point to the point list.

Parameters:
ptmath::Vector3 point
const math::Vector3& GetPoint ( unsigned int  index) const

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

Parameters:
indexNumber of the point to return
Returns:
math::Vector3 value of the point
unsigned int GetPointCount ( ) const

Return the total number of points in the point list.

Returns:
Number of points
void SetPoint ( unsigned int  index,
const math::Vector3 value 
)

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

Parameters:
indexIndex of the point to set
valuemath::Vector3 value to set the point to

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