![]() |
VR-Forces 4.0.4 Class Documentation
|
Model instance to draw a polygon on the overlay, either filled or outline. More...

Classes | |
| struct | VertexData |
Public Member Functions | |
| DtOsgOverlayPolygonModelInstance (DtDe &de) | |
| CTOR. | |
| virtual | ~DtOsgOverlayPolygonModelInstance () |
| DTOR. | |
| virtual void | setModelSet (int) |
| Sets the model set this overlay item belongs to. | |
| virtual void | setPosition (int vtx, const DtVector &position) |
| Set one of the endpoints of the Polygon. | |
| virtual void | setRotation (const osg::Quat &quat) |
| Set the rotation of the polygon. | |
| virtual void | setOrigin (const DtVector &) |
| Sets the origin. Will update geometry. | |
| 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 | removePoint (int index) |
| Removes the point from the specified index. | |
| 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 | setColor (float r, float g, float b, float a) |
| Set the color of the Polygon. | |
| virtual void | setTexturePath (const std::string &texturePath) |
| Set the texture file path for the polygon. | |
| virtual void | setNumTextureTiles (double numTiles) |
| Set the number of times to tile the texture. | |
| 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. | |
| virtual void | setVisible (bool isVisible) |
| Sets whether the model is visible or not. | |
| virtual void | setLockUpdates (bool lock) |
| Will either update or batch updates until a future unlock is given. | |
| bool | updatesLocked () const |
| Returns whether or not updates are locked. | |
| virtual void | setPickable (bool enabled) |
| Sets whether or not the polygon is pickable. | |
| virtual void | setEventsEnabled (bool, unsigned long long userData) |
| Sets whether or not mouse events are enabled. | |
| bool | eventsEnabled () const |
| Gets whether or not mouse events are enabled. | |
| virtual void | setVisibleViaSwitch (bool isVisible) |
| Set whether the model is visible or not. | |
| virtual void | setFill (bool) |
| Sets whether or not polygon is filled. | |
| virtual void | setInsideColor (float r, float g, float b, float a) |
| Set the color at the center of the polygon. | |
| virtual void | setOutsideColor (float r, float g, float b, float a) |
| Set the color on the outside of the polygon. | |
Protected Types | |
| typedef std::vector< VertexData > | VertexList |
Protected Member Functions | |
| virtual void | createPolygonIfNecessary () |
| Creates the appropriate polygon (filled out outline) and sets points. | |
| virtual void | updateGeometry () |
| Updates the vertex information into the polygon (if not locked) | |
| virtual void | updateColors () |
| Updates the colors of the object. | |
| virtual void | translateAndUpdateVertex (unsigned int index, const VertexData &vert) |
| Sets a polygon vertex's position. | |
Protected Attributes | |
| VertexList | myVertices |
| DtPolygon * | myPolygon |
| bool | myIsLocked |
| bool | myGeometryIsDirty |
| bool | myFilled |
| float | myWidth |
| osg::Vec4 | myInnerColor |
| osg::Vec4 | myOuterColor |
| unsigned int | myStipplePattern |
| int | myModelSet |
| unsigned long long | myUserData |
| bool | myEventsEnabled |
| bool | myGeometryDirty |
| bool | myLockUpdates |
| bool | myVisibleFlag |
| osg::Vec3d | myOrigin |
| osg::Quat | myRotation |
Model instance to draw a polygon on the overlay, either filled or outline.
typedef std::vector<VertexData> makVrv::DtOsgOverlayPolygonModelInstance::VertexList [protected] |
| virtual makVrv::DtOsgOverlayPolygonModelInstance::~DtOsgOverlayPolygonModelInstance | ( | ) | [virtual] |
DTOR.
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::setModelSet | ( | int | ) | [virtual] |
Sets the model set this overlay item belongs to.
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::setPosition | ( | int | vtx, |
| const DtVector & | position | ||
| ) | [virtual] |
Set one of the endpoints of the Polygon.
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::setRotation | ( | const osg::Quat & | quat | ) | [virtual] |
Set the rotation of the polygon.
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::setOrigin | ( | const DtVector & | ) | [virtual] |
Sets the origin. Will update geometry.
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::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.
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::removePoint | ( | int | index | ) | [virtual] |
Removes the point from the specified index.
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::set2dOffset | ( | int | index, |
| float | x, | ||
| float | y | ||
| ) | [virtual] |
Sets the 2D offset of a vertex.
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::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.
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Set the color of the Polygon.
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::setTexturePath | ( | const std::string & | texturePath | ) | [virtual] |
Set the texture file path for the polygon.
The texture will be projected using the x-y coordinates of a topographic frame with the origin at some arbitrary point of the polygon.
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::setNumTextureTiles | ( | double | numTiles | ) | [virtual] |
Set the number of times to tile the texture.
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::setStipplePattern | ( | unsigned int | stipplePattern | ) | [virtual] |
Sets stipple pattern for the polygon.
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::setWidth | ( | float | width | ) | [virtual] |
Set the polygon outline width.
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::setEventWidth | ( | float | width | ) | [virtual] |
Set the polygon outline width.
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::setVisible | ( | bool | isVisible | ) | [virtual] |
Sets whether the model is visible or not.
Implements makVrv::DtModelInstance.
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::setLockUpdates | ( | bool | lock | ) | [virtual] |
Will either update or batch updates until a future unlock is given.
Returns whether or not updates are locked.
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::setPickable | ( | bool | enabled | ) | [virtual] |
Sets whether or not the polygon is pickable.
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::setEventsEnabled | ( | bool | , |
| unsigned long long | userData | ||
| ) | [virtual] |
Sets whether or not mouse events are enabled.
Gets whether or not mouse events are enabled.
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::setVisibleViaSwitch | ( | bool | isVisible | ) | [virtual] |
Set whether the model is visible or not.
Implements makVrv::DtModelInstance.
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::setFill | ( | bool | ) | [virtual] |
Sets whether or not polygon is filled.
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::setInsideColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Set the color at the center of the polygon.
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::setOutsideColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | a | ||
| ) | [virtual] |
Set the color on the outside of the polygon.
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::createPolygonIfNecessary | ( | ) | [protected, virtual] |
Creates the appropriate polygon (filled out outline) and sets points.
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::updateGeometry | ( | ) | [protected, virtual] |
Updates the vertex information into the polygon (if not locked)
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::updateColors | ( | ) | [protected, virtual] |
Updates the colors of the object.
| virtual void makVrv::DtOsgOverlayPolygonModelInstance::translateAndUpdateVertex | ( | unsigned int | index, |
| const VertexData & | vert | ||
| ) | [protected, virtual] |
Sets a polygon vertex's position.
float makVrv::DtOsgOverlayPolygonModelInstance::myWidth [protected] |
osg::Vec4 makVrv::DtOsgOverlayPolygonModelInstance::myInnerColor [protected] |
osg::Vec4 makVrv::DtOsgOverlayPolygonModelInstance::myOuterColor [protected] |
unsigned int makVrv::DtOsgOverlayPolygonModelInstance::myStipplePattern [protected] |
int makVrv::DtOsgOverlayPolygonModelInstance::myModelSet [protected] |
unsigned long long makVrv::DtOsgOverlayPolygonModelInstance::myUserData [protected] |
osg::Vec3d makVrv::DtOsgOverlayPolygonModelInstance::myOrigin [protected] |
osg::Quat makVrv::DtOsgOverlayPolygonModelInstance::myRotation [protected] |