![]() |
VR-Forces 4.0.4 Class Documentation
|
OSG implementation of overlay polygon model. More...

Public Member Functions | |
| DtOsgOverlayPolygonModel (DtDe &de, DtUniqueID &id) | |
| CTOR. | |
| virtual | ~DtOsgOverlayPolygonModel () |
| DTOR. | |
| 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) |
| Sets the origin if vtx is 0. | |
| virtual void | setOrigin (const DtVector &o) |
| Will set in model instance. | |
| virtual void | setPoint (int vtx, const DtVector &position) |
| Will set point in the model instance. | |
| virtual void | set2dOffset (int index, float x, float y) |
| Sets the 2D offset of a vertex. | |
| 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 | 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 | setSolid (bool solid) |
| Set a object to be solid. | |
| virtual void | addPoint (const DtVector &point, int index) |
| Add a new point to the polygon 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 polygon 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 polygon outline width. | |
| virtual void | setEventWidth (float width) |
| Set the polygon outline width used for event picking. | |
| virtual void | setEventsEnabled (bool) |
| Sets whether or not mouse events are enabled. | |
| 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 |
| bool | myEventsEnabled |
| DtVector | myOrigin |
| DtTaitBryan | myRotation |
| bool | myUseDynamicOrigin |
OSG implementation of overlay polygon model.
CTOR.
| virtual makVrv::DtOsgOverlayPolygonModel::~DtOsgOverlayPolygonModel | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtOsgOverlayPolygonModel::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Set the color of the polygon.
Implements makVrv::DtPolygonModel.
| virtual void makVrv::DtOsgOverlayPolygonModel::setPosition | ( | int | vtx, |
| const DtVector & | position | ||
| ) | [virtual] |
Sets the origin if vtx is 0.
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsgOverlayPolygonModel::setOrigin | ( | const DtVector & | o | ) | [virtual] |
Will set in model instance.
Implements makVrv::DtPolygonModel.
| virtual void makVrv::DtOsgOverlayPolygonModel::setPoint | ( | int | vtx, |
| const DtVector & | position | ||
| ) | [virtual] |
Will set point in the model instance.
Implements makVrv::DtPolygonModel.
| virtual void makVrv::DtOsgOverlayPolygonModel::set2dOffset | ( | int | index, |
| float | x, | ||
| float | y | ||
| ) | [virtual] |
Sets the 2D offset of a vertex.
Implements makVrv::DtOverlayPolygonModel.
| virtual void makVrv::DtOsgOverlayPolygonModel::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::DtOsgOverlayPolygonModel::setOrientation | ( | int | vtx, |
| const DtTaitBryan & | orientation | ||
| ) | [virtual] |
Set the orientation of a vertex of the polygon; has no effect.
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsgOverlayPolygonModel::setTexturePath | ( | const std::string & | texturePath | ) | [virtual] |
Set the path to the polygon's texture.
Implements makVrv::DtPolygonModel.
| virtual void makVrv::DtOsgOverlayPolygonModel::setNumTextureTiles | ( | double | numTiles | ) | [virtual] |
Set the number of texture tiles.
Implements makVrv::DtPolygonModel.
| virtual void makVrv::DtOsgOverlayPolygonModel::setSolid | ( | bool | solid | ) | [virtual] |
Set a object to be solid.
Implements makVrv::DtModel.
| virtual void makVrv::DtOsgOverlayPolygonModel::addPoint | ( | const DtVector & | point, |
| int | index | ||
| ) | [virtual] |
Add a new point to the polygon at the specified index, or, at the end if index is -1.
Implements makVrv::DtPolygonModel.
| virtual void makVrv::DtOsgOverlayPolygonModel::setLockUpdates | ( | bool | lock | ) | [virtual] |
Will either update or batch updates until a future unlock is given.
Implements makVrv::DtPolygonModel.
| virtual void makVrv::DtOsgOverlayPolygonModel::setPickable | ( | bool | enabled | ) | [virtual] |
Sets whether or not the polygon is pickable.
Implements makVrv::DtPolygonModel.
| virtual void makVrv::DtOsgOverlayPolygonModel::removePoint | ( | int | index | ) | [virtual] |
Removes the point from the specified index.
Implements makVrv::DtPolygonModel.
| virtual void makVrv::DtOsgOverlayPolygonModel::removePosition | ( | int | index | ) | [virtual] |
Calls removePoint.
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsgOverlayPolygonModel::setStipplePattern | ( | unsigned int | stipplePattern | ) | [virtual] |
Sets stipple pattern for the polygon.
Implements makVrv::DtPolygonModel.
| virtual void makVrv::DtOsgOverlayPolygonModel::setWidth | ( | float | width | ) | [virtual] |
Set the polygon outline width.
Implements makVrv::DtPolygonModel.
| virtual void makVrv::DtOsgOverlayPolygonModel::setEventWidth | ( | float | width | ) | [virtual] |
Set the polygon outline width used for event picking.
Implements makVrv::DtOverlayPolygonModel.
| virtual void makVrv::DtOsgOverlayPolygonModel::setEventsEnabled | ( | bool | ) | [virtual] |
Sets whether or not mouse events are enabled.
Implements makVrv::DtOverlayPolygonModel.
| virtual void makVrv::DtOsgOverlayPolygonModel::addToScene | ( | const DtUniqueID & | sceneObjectId, |
| int | modelSet, | ||
| int | visualizerType | ||
| ) | [virtual] |
Add the polygon to the scene.
Implements makVrv::DtModel.
| virtual void makVrv::DtOsgOverlayPolygonModel::removeFromScene | ( | ) | [virtual] |
Remove the polygon from the scene.
Implements makVrv::DtModel.
| virtual void makVrv::DtOsgOverlayPolygonModel::setModelDefinition | ( | const std::string & | str | ) | [virtual] |
Sets the model definition on the model instance.
Reimplemented from makVrv::DtModel.
| virtual void makVrv::DtOsgOverlayPolygonModel::setUseDynamicOrigin | ( | bool | ) | [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
Implements makVrv::DtPolygonModel.
DtVector makVrv::DtOsgOverlayPolygonModel::myOrigin [protected] |
DtTaitBryan makVrv::DtOsgOverlayPolygonModel::myRotation [protected] |