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

OSG implementation of overlay polygon model. More...

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

List of all members.

Public Member Functions

 DtOsgOverlayRectangleModel (DtDe &de, DtUniqueID &id)
 CTOR.
virtual ~DtOsgOverlayRectangleModel ()
 DTOR.
virtual DtVector rotateToDatabase (const DtVector &pos, const DtVector &origin)
 Rotates the vector into the terrains coordinate system.
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)
 Equivalent to setPosition.
virtual void set2dOffset (int index, float x, float y)
 Sets the 2d offset of a vertex.
virtual void setOrientation (const DtTaitBryan &orientation)
 Set the orientation of the rectangle.
virtual void setOrientation (int vtx, const DtTaitBryan &orientation)
 Set the color of the polygon.
virtual void set3dDirection2dLength (int index, float x, float y, float z, float len)
 Sets a 3D direction with a 2D length of a vertex.
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 setSolid (bool solid)
 Set a object to be solid.
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 setStipplePattern (unsigned int stipplePattern)
 Sets stipple pattern for the polygon.
virtual void setWidth (float width)
 Set the line width.
virtual void setEventWidth (float width)
 Sets the events line width for the polygon model if it is outlined.
virtual void setEventsEnabled (bool)
 Sets whether or not mouse events are enabled.
virtual void setDimensions (double width, double length, double altitudeOffset)
 Sets the dimensions of the rectangle, according to database and orientation.
virtual void resetSpatial ()
 Sets geometry based on origin and dimensions.
virtual void setOrigin (const DtVector &)
 Set the color of the polygon.
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.
virtual void setModelDefinition (const std::string &str)
 Sets the model definition on the model instance.

Protected Attributes

DtUniqueID myParentId
DtDcm myOrientationDcm
DtVector myDimensions
DtVector myOrigin
bool myUseDynamicOrigin

Detailed Description

OSG implementation of overlay polygon model.


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

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

Set the color of the polygon.

Implements makVrv::DtPolygonModel.

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

Set the position of one vertex of the polygon.

Reimplemented from makVrv::DtModel.

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

Equivalent to setPosition.

Implements makVrv::DtPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::set2dOffset ( int  index,
float  x,
float  y 
) [virtual]

Sets the 2d offset of a vertex.

Implements makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setOrientation ( const DtTaitBryan &  orientation) [virtual]

Set the orientation of the rectangle.

Reimplemented from makVrv::DtOverlayRectangleModel.

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

Set the color of the polygon.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsgOverlayRectangleModel::set3dDirection2dLength ( int  index,
float  x,
float  y,
float  z,
float  len 
) [virtual]

Sets a 3D direction with a 2D length of a vertex.

This only works with outline polygons.

Implements makVrv::DtOverlayPolygonModel.

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

Set the path to the polygon's texture.

Implements makVrv::DtPolygonModel.

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

Set the number of texture tiles.

Implements makVrv::DtPolygonModel.

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

Set a object to be solid.

Implements makVrv::DtModel.

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

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

Implements makVrv::DtPolygonModel.

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

Sets whether or not the line is pickable.

Implements makVrv::DtPolygonModel.

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

Sets stipple pattern for the polygon.

Implements makVrv::DtPolygonModel.

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

Set the line width.

Implements makVrv::DtPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setEventWidth ( float  width) [virtual]

Sets the events line width for the polygon model if it is outlined.

Implements makVrv::DtOverlayPolygonModel.

Sets whether or not mouse events are enabled.

Implements makVrv::DtOverlayPolygonModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setDimensions ( double  width,
double  length,
double  altitudeOffset 
) [virtual]

Sets the dimensions of the rectangle, according to database and orientation.

Implements makVrv::DtOverlayRectangleModel.

Sets geometry based on origin and dimensions.

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

Set the color of the polygon.

Implements makVrv::DtPolygonModel.

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

Add the polygon to the scene.

Implements makVrv::DtModel.

Remove the polygon from the scene.

Implements makVrv::DtModel.

virtual void makVrv::DtOsgOverlayRectangleModel::setModelDefinition ( const std::string &  str) [virtual]

Sets the model definition on the model instance.

Reimplemented from makVrv::DtModel.

virtual DtVector makVrv::DtOsgOverlayRectangleModel::rotateToDatabase ( const DtVector pos,
const DtVector origin 
) [virtual]

Rotates the vector into the terrains coordinate system.

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)