![]() |
VR-Forces 5.0.2 Developer's Guide
|
Model instance to draw a polygon on the overlay, either filled or outline.

Classes | |
| struct | VertexData |
Public Types | |
| typedef std::vector< VertexData > | VertexList |
Public Types inherited from makVrv::DtOsgModelInstance | |
| enum | AlphaToCoverageState { USE_GLOBAL, FORCE_OFF, FORCE_ON } |
| typedef std::unordered_map < std::string, bool > | SensorRegionStateMap |
Public Member Functions | |
| DtOsgOverlayPolygonModelInstance (DtDe &de) | |
| virtual | ~DtOsgOverlayPolygonModelInstance () |
| virtual void | setModelSet (int) |
| virtual void | setPosition (int vtx, const DtVector &position) |
| virtual void | setRotation (const osg::Quat &quat) |
| virtual void | setOrigin (const DtVector &) |
| virtual void | setGroup (int) |
| virtual DtVector | origin () const |
| virtual void | addPoint (const DtVector &point, int index) |
| virtual void | removePoint (int index) |
| virtual void | set2dOffset (int index, float x, float y) |
| virtual void | set3dDirection2dLength (int index, float x, float y, float z, float len) |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | setTexturePath (const std::string &texturePath) |
| virtual void | setOutlineTexture (const std::string &texturePath) |
| virtual void | setOutlineTexture (osg::Texture *texture) |
| virtual void | setSolidFillCenter (bool) |
| virtual void | setNumTextureTiles (double numTiles) |
| virtual void | setStipplePattern (unsigned int stipplePattern) |
| virtual void | setWidth (float width) |
| virtual void | setEventWidth (float width) |
| virtual void | setVisible (bool isVisible) |
| virtual void | setPickable (bool enabled) |
| virtual void | setEventsEnabled (bool, unsigned long long userData) |
| bool | eventsEnabled () const |
| virtual void | setFill (bool) |
| virtual void | setInsideColor (float r, float g, float b, float a) |
| virtual void | getInsideColor (float &r, float &g, float &b, float &a) |
| virtual void | setOutsideColor (float r, float g, float b, float a) |
| virtual void | getOutsideColor (float &r, float &g, float &b, float &a) |
| virtual int | pointCount () const |
| virtual DtVector | point (int) const |
| virtual void | setFillPattern (const std::vector< unsigned int > &pattern) |
| virtual void | setOutline (bool) |
| virtual void | setChannelInstance (DtChannel *, int modelSet) |
| virtual const VertexList & | vertexList () const |
| virtual void | setPoints (const std::vector< DtVector > &points) |
| virtual void | setVertexList (const VertexList &) |
| virtual const std::vector < DtVector > & | points () const |
| virtual void | updateGeometry () |
Public Member Functions inherited from makVrv::DtOsgModelInstance | |
| virtual | ~DtOsgModelInstance () |
| virtual bool | realize (DtModelDefinition &definition) |
| virtual bool | cloneInstance (DtModelDefinition &definition) |
| virtual void | addToConnector (DtOsgSceneConnector *connector) |
| virtual bool | removeFromConnector (DtOsgSceneConnector *connector) |
| virtual bool | saveModelToFile (const std::string &filename) const |
| virtual void | enableColorBlending (bool b) |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| virtual void | enableTexture (bool onOff) |
| virtual osg::Node * | rootNode () |
| virtual const osg::Node * | rootNode () const |
| virtual osg::Node * | sensorNode () |
| virtual const osg::Node * | sensorNode () const |
| virtual void | setDynamicSensorRegion (const std::string ®ion, bool state) |
| virtual bool | dynamicSensorRegion (const std::string ®ion) |
| virtual const SensorRegionStateMap & | dynamicSensorRegionMap () const |
| virtual void | slot_atcGlobalModelEnableChanged () |
| virtual bool | alphaToCoverageEnabled () |
| virtual void | registerLightPoints (const std::string &groupName, bool daylightControlledLights) |
Public Member Functions inherited from makVrv::DtModelInstance | |
| DtModelInstance (DtDe &de) | |
| virtual | ~DtModelInstance () |
| const std::string & | realizedDefinitionName () const |
| const DtVector & | boundingBoxExtents () const |
| void | getBoundingBoxExtents (double &x, double &y, double &z) const |
| const DtVector & | boundingBoxCenter () const |
| void | getBoundingBoxCenter (double &x, double &y, double &z) const |
| void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| const DtVector & | allGeometryboundingBoxExtents () const |
| void | getAllGeometryBoundingBoxExtents (double &x, double &y, double &z) const |
| const DtVector & | allGeometryboundingBoxCenter () const |
| void | getAllGeometryBoundingBoxCenter (double &x, double &y, double &z) const |
| void | getAllGeometryBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| virtual void | setContributesToBound (bool trueOrFalse) |
| bool | contributesToBound () const |
Protected Member Functions | |
| virtual void | createPolygonIfNecessary () |
| virtual void | updateColors () |
| virtual void | translateAndUpdateVertex (unsigned int index, const VertexData &vert, DtPolygon *polygon) |
| virtual void | channelUpdated (const DtTacticalGraphicModelUpdaterManager::ChannelUpdateData &) |
| virtual std::vector< DtVector > | topographicVertices () const |
| virtual void | slot_coordinateSystemChanged () |
Protected Member Functions inherited from makVrv::DtOsgModelInstance | |
| DtOsgModelInstance (DtDe &de) | |
| virtual void | updateColorBlending () |
| virtual void | updateColorBlending (osg::Node *node) |
| virtual void | enableTexture (osg::Node *root, bool onOff) |
| virtual void | updateBoundingBoxViaContents () |
| virtual void | setRootNode (osg::Node *node) |
| virtual void | setUpDepthTest (osg::StateSet *stateSet) |
Private Member Functions | |
| DtOsgOverlayPolygonModelInstance () | |
| DtOsgOverlayPolygonModelInstance (const DtOsgOverlayPolygonModelInstance &) | |
| DtOsgOverlayPolygonModelInstance & | operator= (const DtOsgOverlayPolygonModelInstance &) |
Additional Inherited Members | |
Static Public Member Functions inherited from makVrv::DtOsgModelInstance | |
| static osg::Vec4 | readVec4 (const std::string ¶mName, const DtModelDefinition &definition, const osg::Vec4 &initValue=osg::Vec4(1, 1, 1, 1)) |
| static osg::Vec3 | readVec3 (const std::string ¶mName, const DtModelDefinition &definition, const osg::Vec3 &initValue=osg::Vec3(1, 1, 1)) |
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::DtOsgModelInstance | |
| boost::signalslib::signal < void(const std::string &) > | signal_dynamicSensorRegionAdded |
| boost::signalslib::signal < void(const std::string &, bool) > | signal_dynamicSensorRegionChanged |
| boost::signalslib::signal < void(bool)> | signal_atcModeEnableChanged |
Public Attributes inherited from makVrv::DtModelInstance | |
| boost::signalslib::signal < void(DtModelInstance *)> | signal_modelInstanceChanged |
| typedef std::vector<VertexData> makVrv::DtOsgOverlayPolygonModelInstance::VertexList |
| makVrv::DtOsgOverlayPolygonModelInstance::DtOsgOverlayPolygonModelInstance | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
private |
Default Constructor not implemented.
|
private |
Copy Constructor not implemented - Copy not allowed.
|
private |
Assignment Operator not implemented - Copy not allowed.
|
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 |
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 ellipse.
|
virtual |
Retrieves the inside color.
|
virtual |
Set the color on the outside of the ellipse.
|
virtual |
Retrieves the inside color.
|
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 all the points for this polygon.
|
virtual |
Sets the vertex information for this polygon.
|
virtual |
Returns the list of vertices.
|
virtual |
Updates the vertex information into the polygon (if not locked)
|
protectedvirtual |
Creates the appropriate polygon (filled out outline) and sets points.
|
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 |
slot for when the coordinate system changes
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
local clone of the system wide coordinate system. for thread safety.