Gazebo

OgreDynamicLines Class Reference
[Rendering]

#include <OgreDynamicLines.hh>

Inheritance diagram for OgreDynamicLines:

OgreDynamicRenderable List of all members.

Detailed Description

Class for drawing lines.


Public Member Functions

 OgreDynamicLines (OperationType opType=OT_LINE_STRIP)
 Constructor.
virtual ~OgreDynamicLines ()
 Destructor.
void AddPoint (const Vector3 &pt)
 Add a point to the point list.
void SetPoint (unsigned int index, const Vector3 &value)
 Change the location of an existing point in the point list.
const Vector3GetPoint (unsigned int index) const
 Return the location of an existing point in the point list.
unsigned int GetNumPoints () 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.

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.


Member Function Documentation

void AddPoint ( const Vector3 pt  ) 

Add a point to the point list.

Parameters:
pt Vector3 point

void SetPoint ( unsigned int  index,
const Vector3 value 
)

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

Parameters:
index Index of the point to set
value Vector3 value to set the point to

const Vector3& GetPoint ( unsigned int  index  )  const

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

Parameters:
index Number of the point to return
Returns:
Vector3 value of the point

unsigned int GetNumPoints (  )  const

Return the total number of points in the point list.

Returns:
Number of points


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

Last updated Aug 04 2007