VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Attributes
makVrv::DtOsgPolygonModel Class Reference

OSG implementation of distributed attachable polygon model. More...

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

List of all members.

Public Member Functions

 DtOsgPolygonModel (DtDe &de, DtUniqueID &id)
virtual ~DtOsgPolygonModel ()
virtual void setUseDynamicOrigin (bool)
 Set whether or not to use dynamic origin.
virtual void setColor (float r, float g, float b, float a)
 Set the color of the polygon.
virtual void setPosition (int vtx, const DtVector &position)
 Set the position of one vertex of the polygon.
virtual void setPoint (int vtx, const DtVector &position)
 Will call setPosition in model instance without setting in scene connector.
virtual void setOrigin (const DtVector &)
 Sets the origin in scene connector and model instance.
virtual void setOrientation (int vtx, const DtTaitBryan &orientation)
 Set the orientation of a vertex of the polygon; has no effect.
virtual void setTexturePath (const std::string &texturePath)
 Set the path to the polygon's texture.
virtual void setNumTextureTiles (double numTiles)
 Set the number of texture tiles.
virtual void setVisible (bool isVisible)
 Override to call setVisible on the scene connector.
virtual void setSolid (bool solid)
 Set a object to be solid.
virtual void addPoint (const DtVector &point, int index)
 Add a new point to the line at the specified index, or, at the end if index is -1.
virtual void setLockUpdates (bool lock)
 Will either update or batch updates until a future unlock is given.
virtual void setPickable (bool enabled)
 Sets whether or not the line is pickable.
virtual void removePoint (int index)
 Removes the point from the specified index.
virtual void removePosition (int index)
 Calls removePoint.
virtual void setStipplePattern (unsigned int stipplePattern)
 Sets stipple pattern for the polygon.
virtual void setWidth (float width)
 Set the line width.
virtual void addToScene (const DtUniqueID &sceneObjectId, int modelSet, int visualizerType)
 Add the polygon to the scene.
virtual void removeFromScene ()
 Remove the polygon from the scene.

Protected Attributes

DtOsgSceneConnectormySceneConnector
DtVector myOrigin
bool myUseDynamicOrigin

Detailed Description

OSG implementation of distributed attachable polygon model.


Constructor & Destructor Documentation


Member Function Documentation

virtual void makVrv::DtOsgPolygonModel::setColor ( float  r,
float  g,
float  b,
float  a 
) [virtual]

Set the color of the polygon.

Implements makVrv::DtPolygonModel.

virtual void makVrv::DtOsgPolygonModel::setPosition ( int  vtx,
const DtVector position 
) [virtual]

Set the position of one vertex of the polygon.

Reimplemented from makVrv::DtModel.

Reimplemented in makVrv::DtMovablePolygonModel.

virtual void makVrv::DtOsgPolygonModel::setPoint ( int  vtx,
const DtVector position 
) [virtual]

Will call setPosition in model instance without setting in scene connector.

Implements makVrv::DtPolygonModel.

virtual void makVrv::DtOsgPolygonModel::setOrigin ( const DtVector ) [virtual]

Sets the origin in scene connector and model instance.

Implements makVrv::DtPolygonModel.

virtual void makVrv::DtOsgPolygonModel::setOrientation ( int  vtx,
const DtTaitBryan &  orientation 
) [virtual]

Set the orientation of a vertex of the polygon; has no effect.

Reimplemented from makVrv::DtModel.

Reimplemented in makVrv::DtMovablePolygonModel.

virtual void makVrv::DtOsgPolygonModel::setTexturePath ( const std::string &  texturePath) [virtual]

Set the path to the polygon's texture.

Implements makVrv::DtPolygonModel.

virtual void makVrv::DtOsgPolygonModel::setNumTextureTiles ( double  numTiles) [virtual]

Set the number of texture tiles.

Implements makVrv::DtPolygonModel.

virtual void makVrv::DtOsgPolygonModel::setVisible ( bool  isVisible) [virtual]

Override to call setVisible on the scene connector.

Reimplemented from makVrv::DtModel.

Reimplemented in makVrv::DtMovablePolygonModel.

virtual void makVrv::DtOsgPolygonModel::setSolid ( bool  solid) [virtual]

Set a object to be solid.

Implements makVrv::DtModel.

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

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

Implements makVrv::DtPolygonModel.

virtual void makVrv::DtOsgPolygonModel::setLockUpdates ( bool  lock) [virtual]

Will either update or batch updates until a future unlock is given.

Implements makVrv::DtPolygonModel.

virtual void makVrv::DtOsgPolygonModel::setPickable ( bool  enabled) [virtual]

Sets whether or not the line is pickable.

Implements makVrv::DtPolygonModel.

virtual void makVrv::DtOsgPolygonModel::removePoint ( int  index) [virtual]

Removes the point from the specified index.

Implements makVrv::DtPolygonModel.

virtual void makVrv::DtOsgPolygonModel::removePosition ( int  index) [virtual]

Calls removePoint.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsgPolygonModel::setStipplePattern ( unsigned int  stipplePattern) [virtual]

Sets stipple pattern for the polygon.

Implements makVrv::DtPolygonModel.

virtual void makVrv::DtOsgPolygonModel::setWidth ( float  width) [virtual]

Set the line width.

Implements makVrv::DtPolygonModel.

virtual void makVrv::DtOsgPolygonModel::addToScene ( const DtUniqueID sceneObjectId,
int  modelSet,
int  visualizerType 
) [virtual]

Add the polygon to the scene.

Implements makVrv::DtModel.

virtual void makVrv::DtOsgPolygonModel::removeFromScene ( ) [virtual]

Remove the polygon from the scene.

Implements makVrv::DtModel.

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

Implements makVrv::DtPolygonModel.


Member Data Documentation


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)