VR-Forces 4.0.4 Class Documentation
Public Member Functions
makVrv::DtPolygonModel Class Reference

Distributed model for drawing polygons with attached vertices. More...

Inheritance diagram for makVrv::DtPolygonModel:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtPolygonModel (DtDe &de, DtUniqueID id)
 CTOR.
virtual ~DtPolygonModel ()
 DTOR.
virtual void addPoint (const DtVector &point, int index)=0
 Add a new point to the line at the specified index, or, at the end if index is -1.
virtual void setLockUpdates (bool lock)=0
 Will either update or batch updates until a future unlock is given.
virtual void setPickable (bool enabled)=0
 Sets whether or not the line is pickable.
virtual void removePoint (int index)=0
 Removes the point from the specified index.
virtual void setPoint (int index, const DtVector &)=0
 Sets point at the specified index.
virtual void setOrigin (const DtVector &)=0
 Sets the origin. Will offset points.
virtual void setStipplePattern (unsigned int stipplePattern)=0
 Sets stipple pattern for the polygon.
virtual void setWidth (float width)=0
 Set the line width.
virtual void setTexturePath (const std::string &texturePath)=0
 Set the path to the polygon's texture.
virtual void setNumTextureTiles (double numTiles)=0
 Set the number of times to tile the polygon's texture.
virtual void setColor (float r, float g, float b, float a)=0
 Set the color of the polygon.
virtual void setUseDynamicOrigin (bool)=0
 Set whether or not to use dynamic origin.
virtual void setFill (bool)
 Calls setSolid.

Detailed Description

Distributed model for drawing polygons with attached vertices.


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

virtual void makVrv::DtPolygonModel::addPoint ( const DtVector point,
int  index 
) [pure virtual]

Add a new point to the line at the specified index, or, at the end if index is -1.

Implemented in makVrv::DtOsgPolygonModel, makVrv::DtOsgOverlayPolygonModel, makVrv::DtOverlayRectangleModel, makVrv::DtOsgExtrudedCircleModel, and makVrv::DtOsgExtrudedPolygonModel.

virtual void makVrv::DtPolygonModel::setLockUpdates ( bool  lock) [pure virtual]
virtual void makVrv::DtPolygonModel::setPickable ( bool  enabled) [pure virtual]
virtual void makVrv::DtPolygonModel::removePoint ( int  index) [pure virtual]
virtual void makVrv::DtPolygonModel::setPoint ( int  index,
const DtVector  
) [pure virtual]

Sets point at the specified index.

When setting the point, if the origin is set, the vector will need to be offset from the origin as models will account for the origin set.

Implemented in makVrv::DtOsgPolygonModel, makVrv::DtOsgOverlayRectangleModel, makVrv::DtOsgExtrudedCircleModel, makVrv::DtOsgExtrudedPolygonModel, and makVrv::DtOsgOverlayPolygonModel.

virtual void makVrv::DtPolygonModel::setOrigin ( const DtVector ) [pure virtual]
virtual void makVrv::DtPolygonModel::setStipplePattern ( unsigned int  stipplePattern) [pure virtual]
virtual void makVrv::DtPolygonModel::setWidth ( float  width) [pure virtual]
virtual void makVrv::DtPolygonModel::setTexturePath ( const std::string &  texturePath) [pure virtual]
virtual void makVrv::DtPolygonModel::setNumTextureTiles ( double  numTiles) [pure virtual]
virtual void makVrv::DtPolygonModel::setColor ( float  r,
float  g,
float  b,
float  a 
) [pure virtual]
virtual void makVrv::DtPolygonModel::setUseDynamicOrigin ( bool  ) [pure virtual]

Set whether or not to use dynamic origin.

Will not cause redraw or recalulate, but will effect how point 0 is used when using setPosition. If true will not set the point 0 to be at the origin, but rather will respect the current value. Default is false

Implemented in makVrv::DtOsgExtrudedCircleModel, makVrv::DtOsgOverlayRectangleModel, makVrv::DtOsgExtrudedPolygonModel, makVrv::DtOsgOverlayPolygonModel, and makVrv::DtOsgPolygonModel.

virtual void makVrv::DtPolygonModel::setFill ( bool  ) [virtual]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)