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

Classes | |
| struct | VertexData |
Public Types | |
| typedef std::vector< VertexData > | VertexList |
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 | setGroup (int) |
| The higher the Z order the "closer" to the eyepoint this element will be drawn. | |
| virtual DtVector | origin () const |
| Returns the origin. | |
| 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 | setOutlineTexture (const std::string &texturePath) |
| Sets the texture to use for the outline of the polygon. | |
| virtual void | setOutlineTexture (osg::Texture *texture) |
| Sets the texture to use for the outline of the polygon. | |
| virtual void | setSolidFillCenter (bool) |
| Sets to fill the center solid (if filled) not gradiant. Default is false. | |
| 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 | 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. | |
| virtual int | pointCount () const |
| Retrieves the number of points in the model. | |
| virtual DtVector | point (int) const |
| Retrieves the point. | |
| virtual void | setFillPattern (const std::vector< unsigned int > pattern) |
| Sets fill pattern (32x32) | |
| virtual void | setOutline (bool) |
| Sets the fact that, if the object is filled, also provide an outline scribe. Basically create a filled and outline polygon. | |
| virtual void | setChannelInstance (DtChannel *, int modelSet) |
| Set to make this model channel specific. | |
| virtual const VertexList & | vertexList () const |
| Returns the vertex information for this polygon. | |
| virtual void | setVertexList (const VertexList &) |
| Sets the vertex information for this polygon. | |
| virtual const std::vector < DtVector > & | points () const |
| Returns the list of vertices. | |
Public Member Functions inherited from makVrv::DtModelInstance | |
| DtModelInstance (DtDe &de) | |
| CTOR. | |
| virtual | ~DtModelInstance () |
| DTOR. | |
| virtual bool | realize (DtModelDefinition &definition) |
| Attempt to realize a definition. | |
| const std::string & | realizedDefinitionName () const |
| Get the name of the definition that this model instance was realized with. | |
| virtual bool | saveModelToFile (const std::string &filename) const |
| Attempt to save the model to a file. | |
| const DtVector & | boundingBoxExtents () const |
| Get the bounding box extents of the model instance. | |
| void | getBoundingBoxExtents (double &x, double &y, double &z) const |
| Get the bounding box extents of the model instance. | |
| const DtVector & | boundingBoxCenter () const |
| Get the bounding box center of the model instance. | |
| void | getBoundingBoxCenter (double &x, double &y, double &z) const |
| Get the bounding box center of the model instance. | |
| void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| virtual void | setContributesToBound (bool trueOrFalse) |
| Set whether this model instance contributes to an object's overall bounding volume. | |
| bool | contributesToBound () const |
| Get whether this model instance contributes to an object's overall bounding volume. | |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| set the model's color | |
| virtual void | enableColorBlending (bool b) |
| Enable / disable coloring on all models in the scene object. | |
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, DtPolygon *polygon) |
| Sets a polygon vertex's position. | |
| virtual void | channelUpdated (DtTacticalGraphicModelUpdaterManager::ChannelUpdateData) |
| Update texture information with zoom and orientation changes. | |
| virtual std::vector< DtVector > | topographicVertices () const |
| Converts all vertices from local coordinates to topographic. Easier to use for triangulation. | |
| virtual bool | triangulate (const std::vector< DtVector > &input, std::vector< int > &output) const |
| Triangulates vertex list and returns in supplied output list. | |
| virtual bool | snipTriangle (const std::vector< DtVector > &contour, int u, int v, int w, int n, int *V) const |
| Triangulates vertex list and returns in supplied output list. | |
| virtual bool | insideTriangle (float Ax, float Ay, float Bx, float By, float Cx, float Cy, float Px, float Py) const |
| Triangulates vertex list and returns in supplied output list. | |
| virtual float | triangulateAreaSize (const std::vector< DtVector > &contour) const |
| Triangulates vertex list and returns in supplied output list. | |
Protected Attributes | |
| VertexList | myVertices |
| std::vector< DtVector > | myPoints |
| DtPolygon * | myPolygon |
| DtPolygon * | myOutlinePolygon |
| 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 |
| bool | myOutline |
| bool | mySolidFillCenter |
| osg::Vec3d | myOrigin |
| osg::Quat | myRotation |
| osg::ref_ptr< osg::Texture > | myOutlineTexture |
| DtChannel * | myChannelInstance |
| int | myGroup |
Protected Attributes inherited from makVrv::DtModelInstance | |
| DtDe & | myDe |
| std::string | myRealizedModelDefinitionName |
| DtVector | myBoundingBoxCenter |
| DtVector | myBoundingBoxExtents |
| DtVector | myBoundingBoxMinimum |
| DtVector | myBoundingBoxMaximum |
| bool | myContributesToBound |
| bool | myColorBlendingEnabled |
| float | myBlendRed |
| float | myBlendBlue |
| float | myBlendGreen |
| float | myBlendAlpha |
Additional Inherited Members | |
Static Public Member Functions inherited from makVrv::DtModelInstance | |
| static float | readFloat (const std::string ¶mName, const DtModelDefinition &definition) |
| static DtVector | readVector (const std::string ¶mName, const DtModelDefinition &definition) |
Public Attributes inherited from makVrv::DtModelInstance | |
| boost::signal< void(DtModelInstance *)> | signal_modelInstanceChanged |
Model instance to draw a polygon on the overlay, either filled or outline.
| typedef std::vector<VertexData> makVrv::DtOsgOverlayPolygonModelInstance::VertexList |
| makVrv::DtOsgOverlayPolygonModelInstance::DtOsgOverlayPolygonModelInstance | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Sets the model set this overlay item belongs to.
Will clear out channelInstance if set
|
virtual |
Set one of the endpoints of the Polygon.
|
virtual |
Set the rotation of the polygon.
|
virtual |
Sets the origin. Will update geometry.
|
virtual |
The higher the Z order the "closer" to the eyepoint this element will be drawn.
Use this variable to stack overlay objects in the particular order you want them displayed
|
virtual |
Returns the origin.
|
virtual |
Add a new point to the polygon at the specified index, or, at the end if index is -1.
|
virtual |
Removes the point from the specified index.
|
virtual |
Sets the 2D offset of a vertex.
|
virtual |
Sets a 3D direction with a 2D length of a vertex.
This only works with outline polygons.
|
virtual |
Set the color of the Polygon.
|
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 |
Sets the texture to use for the outline of the polygon.
|
virtual |
Sets the texture to use for the outline of the polygon.
|
virtual |
Sets to fill the center solid (if filled) not gradiant. Default is false.
|
virtual |
Set the number of times to tile the texture.
|
virtual |
Sets stipple pattern for the polygon.
|
virtual |
Set the polygon outline width.
|
virtual |
Set the polygon outline width.
|
virtual |
Sets whether the model is visible or not.
Implements makVrv::DtModelInstance.
|
virtual |
Will either update or batch updates until a future unlock is given.
| bool makVrv::DtOsgOverlayPolygonModelInstance::updatesLocked | ( | ) | const |
Returns whether or not updates are locked.
|
virtual |
Sets whether or not the polygon is pickable.
|
virtual |
Sets whether or not mouse events are enabled.
| bool makVrv::DtOsgOverlayPolygonModelInstance::eventsEnabled | ( | ) | const |
Gets whether or not mouse events are enabled.
|
virtual |
Sets whether or not polygon is filled.
|
virtual |
Set the color at the center of the polygon.
|
virtual |
Set the color on the outside of the polygon.
|
virtual |
Retrieves the number of points in the model.
Retrieves the point.
|
virtual |
Sets fill pattern (32x32)
|
virtual |
Sets the fact that, if the object is filled, also provide an outline scribe. Basically create a filled and outline polygon.
|
virtual |
Set to make this model channel specific.
This means it will only update itself when the channel it is assigned to is updated. Enabled only to display on the channel/model set combination
|
virtual |
Returns the vertex information for this polygon.
|
virtual |
Sets the vertex information for this polygon.
|
virtual |
Returns the list of vertices.
|
protectedvirtual |
Creates the appropriate polygon (filled out outline) and sets points.
|
protectedvirtual |
Updates the vertex information into the polygon (if not locked)
|
protectedvirtual |
Updates the colors of the object.
|
protectedvirtual |
Sets a polygon vertex's position.
|
protectedvirtual |
Update texture information with zoom and orientation changes.
|
protectedvirtual |
Converts all vertices from local coordinates to topographic. Easier to use for triangulation.
|
protectedvirtual |
Triangulates vertex list and returns in supplied output list.
Returns the list of indicies that create triangles. All routines in this group support the triangualtion of the polygon
|
protectedvirtual |
Triangulates vertex list and returns in supplied output list.
Returns the list of indicies that create triangles. All routines in this group support the triangualtion of the polygon
|
protectedvirtual |
Triangulates vertex list and returns in supplied output list.
Returns the list of indicies that create triangles. All routines in this group support the triangualtion of the polygon
|
protectedvirtual |
Triangulates vertex list and returns in supplied output list.
Returns the list of indicies that create triangles. All routines in this group support the triangualtion of the polygon
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |