![]() |
VR-Forces 5.0.2 Developer's Guide
|
Model instance to draw a polygon.

Classes | |
| struct | AttachablePolygonParameters |
Public Types | |
| typedef std::vector< DtVector > | 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 | |
| DtPolygonModelInstance (DtDe &de) | |
| virtual | ~DtPolygonModelInstance () |
| virtual bool | realize (DtModelDefinition &definition) |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | enableLighting (bool lit) |
| virtual void | enableColorBlending (bool colorBlend) |
| virtual void | setPosition (int vtx, const DtVector &position) |
| virtual void | setTexturePath (const std::string &texturePath) |
| virtual void | setNumTextureTiles (double numTiles) |
| virtual void | setOrientation (int vtx, const DtTaitBryan &orientation) |
| virtual void | addToConnector (DtOsgSceneConnector *connector) |
| virtual bool | removeFromConnector (DtOsgSceneConnector *connector) |
| virtual void | setVisible (bool isVisible) |
| virtual void | addPoint (const DtVector &point, int index) |
| virtual const VertexList & | points () const |
| virtual void | setPickable (bool enabled) |
| virtual void | removePoint (int index) |
| virtual void | setStipplePattern (unsigned int stipplePattern) |
| virtual void | setWidth (float width) |
| virtual int | pointCount () const |
| virtual DtVector | point (int) const |
| virtual void | updateGeometry () |
Public Member Functions inherited from makVrv::DtOsgModelInstance | |
| virtual | ~DtOsgModelInstance () |
| virtual bool | cloneInstance (DtModelDefinition &definition) |
| virtual bool | saveModelToFile (const std::string &filename) const |
| 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 |
Static Public Attributes | |
| static const AttachablePolygonParameters | defaultParameters |
Protected Member Functions | |
| virtual void | buildGeometry (const AttachablePolygonParameters ¶meters) |
| virtual void | buildState (const AttachablePolygonParameters ¶meters) |
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 | |
| DtPolygonModelInstance () | |
| DtPolygonModelInstance (const DtPolygonModelInstance &) | |
| DtPolygonModelInstance & | operator= (const DtPolygonModelInstance &) |
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<DtVector> makVrv::DtPolygonModelInstance::VertexList |
| makVrv::DtPolygonModelInstance::DtPolygonModelInstance | ( | 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 |
Attempt to realize a definition. If the model instance can't realize the definition it should return false. This instance requires the definition be of schema "Polygon".
Reimplemented from makVrv::DtOsgModelInstance.
|
virtual |
Set the color of the Polygon.
|
virtual |
Set whether the polygon is lit.
|
virtual |
Set whether color blending is used.
Reimplemented from makVrv::DtOsgModelInstance.
|
virtual |
Set one of the endpoints 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 |
Set the number of times to tile the texture.
|
virtual |
No-op.
|
virtual |
Tell the model instance to add itself to the provided node.
Reimplemented from makVrv::DtOsgModelInstance.
Reimplemented in makVrv::DtMovablePolygonModel::DtMovablePolygonModelInstance.
|
virtual |
Tell the model instance to remove itself from the provided node.
Reimplemented from makVrv::DtOsgModelInstance.
|
inlinevirtual |
no-op
Implements makVrv::DtModelInstance.
Add a new point to the line at the specified index, or, at the end if index is -1.
|
virtual |
Points that make up this polygon.
|
virtual |
Sets whether or not the line is pickable.
|
virtual |
Removes the point from the specified index.
|
virtual |
Sets stipple pattern for the polygon.
|
virtual |
Set the line width.
|
virtual |
Returns the number of points.
Returns the index at the given position.
|
virtual |
Updates all geometry and state.
|
protectedvirtual |
Build the Polygon's geometry from a parameter set.
|
protectedvirtual |
Build the Polygon's state from a parameter set.
|
static |
Default values for the polygon parameters.
|
protected |
|
protected |
|
protected |
|
protected |
The current parameter set.
|
protected |
|
protected |