Gazebo logo

RoadGeom Class Reference

#include <RoadGeom.hh>

Inheritance diagram for RoadGeom:

Geom BaseGeom List of all members.

Public Member Functions

 RoadGeom (Body *body, dSpaceID spaceId)
 Constructor.
virtual ~RoadGeom ()
 Destructor.
void SetTrackSpacing (double spacing)
 Set the nominal spacing between track points (m).
void SetProfileSpacing (double spacing)
 Set the nominal spacing between profile points (m).
int AddTrackPoint (GzVector pos)
 Add a point to the track.
void AddProfilePoint (int index, double pz)
 Add a point to the profile.
void AddSign (GzVector pos, const char *text)
 Add a sign.
void UpdateMesh (GzVector pos)
 Update the mesh.
virtual void Render (RenderOptions *opt)
 Render the geom (GL).

Classes

struct  SignData
 Description for a single sign.
struct  TrackPoint
 Description for a single point on the road.

Constructor & Destructor Documentation

RoadGeom::RoadGeom Body body,
dSpaceID  spaceId
 

Constructor.

virtual RoadGeom::~RoadGeom  )  [virtual]
 

Destructor.


Member Function Documentation

void RoadGeom::SetTrackSpacing double  spacing  )  [inline]
 

Set the nominal spacing between track points (m).

void RoadGeom::SetProfileSpacing double  spacing  )  [inline]
 

Set the nominal spacing between profile points (m).

int RoadGeom::AddTrackPoint GzVector  pos  ) 
 

Add a point to the track.

Parameters:
pos Point position (relative to road).
Returns:
Track index

void RoadGeom::AddProfilePoint int  index,
double  pz
 

Add a point to the profile.

Parameters:
index Track index
pz Height above or below the nominal road level.

void RoadGeom::AddSign GzVector  pos,
const char *  text
 

Add a sign.

Parameters:
pos Sign position (relative to road).
text Sign text (the value will be copied).

void RoadGeom::UpdateMesh GzVector  pos  ) 
 

Update the mesh.

virtual void RoadGeom::Render RenderOptions opt  )  [virtual]
 

Render the geom (GL).

Reimplemented from Geom.


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

Last updated 12 September 2005 21:38:45