![]() |
VR-Forces 4.3.1 Class Documentation
|
Model instance to draw a polygon. More...

Classes | |
| struct | AttachablePolygonParameters |
Public Types | |
| typedef std::vector< DtVector > | VertexList |
Public Types inherited from makVrv::DtOsgModelInstance | |
| typedef boost::unordered_map < std::string, bool > | SensorRegionStateMap |
| Dynamic Sensor Region methods. | |
Public Member Functions | |
| DtPolygonModelInstance (DtDe &de) | |
| CTOR. | |
| virtual | ~DtPolygonModelInstance () |
| DTOR. | |
| virtual bool | realize (DtModelDefinition &definition) |
| Realize settings according to model definition. | |
| virtual void | setColor (float r, float g, float b, float a) |
| Set the color of the Polygon. | |
| virtual void | enableLighting (bool lit) |
| Set whether the polygon is lit. | |
| virtual void | enableColorBlending (bool colorBlend) |
| Set whether color blending is used. | |
| virtual void | setPosition (int vtx, const DtVector &position) |
| Set one of the endpoints 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 | setOrientation (int vtx, const DtTaitBryan &orientation) |
| No-op. | |
| virtual void | addToConnector (DtOsgSceneConnector *connector) |
| Tell the model instance to add itself to the provided node. | |
| virtual bool | removeFromConnector (DtOsgSceneConnector *connector) |
| Tell the model instance to remove itself from the provided node. | |
| virtual void | setVisible (bool isVisible) |
| no-op | |
| virtual void | addPoint (const DtVector &point, int index) |
| Add a new point to the line 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. | |
| bool | updatesLocked () const |
| virtual const VertexList & | points () const |
| Points that make up this polygon. | |
| virtual void | setPickable (bool enabled) |
| Sets whether or not the line is pickable. | |
| virtual void | removePoint (int index) |
| Removes the point from the specified index. | |
| virtual void | setStipplePattern (unsigned int stipplePattern) |
| Sets stipple pattern for the polygon. | |
| virtual void | setWidth (float width) |
| Set the line width. | |
| virtual int | pointCount () const |
| Returns the number of points. | |
| virtual DtVector | point (int) const |
| Returns the index at the given position. | |
Public Member Functions inherited from makVrv::DtOsgModelInstance | |
| virtual | ~DtOsgModelInstance () |
| DTOR. | |
| virtual bool | saveModelToFile (const std::string &filename) const |
| Attempt to save the model to a file. | |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| set the model's color | |
| virtual void | enableTexture (bool onOff) |
| virtual osg::Node * | rootNode () |
| Get the model instance's root node. | |
| virtual const osg::Node * | rootNode () const |
| Get the model instance's root node. | |
| virtual osg::Node * | sensorNode () |
| Get the model instance's sensor node, . | |
| virtual const osg::Node * | sensorNode () const |
| Get the model instance's sensor node, . | |
| virtual void | addDynamicSensorRegion (const std::string ®ion) |
| Add an active region state. | |
| virtual void | setDynamicSensorRegion (const std::string ®ion, bool state) |
| Set the state of an active region. | |
| virtual bool | dynamicSensorRegion (const std::string ®ion) |
| Get the current state of the specified sensor region. | |
| SensorRegionStateMap const | dynamicSensorRegionMap () const |
| Get the map containing all regions and their current states. | |
Public Member Functions inherited from makVrv::DtModelInstance | |
| DtModelInstance (DtDe &de) | |
| CTOR. | |
| virtual | ~DtModelInstance () |
| DTOR. | |
| const std::string & | realizedDefinitionName () const |
| Get the name of the definition that this model instance was realized with. | |
| 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. | |
Static Public Attributes | |
| static const AttachablePolygonParameters | defaultParameters |
| Default values for the polygon parameters. | |
Protected Member Functions | |
| virtual void | buildGeometry (const AttachablePolygonParameters ¶meters) |
| Build the Polygon's geometry from a parameter set. | |
| virtual void | buildState (const AttachablePolygonParameters ¶meters) |
| Build the Polygon's state from a parameter set. | |
Protected Member Functions inherited from makVrv::DtOsgModelInstance | |
| virtual void | updateColorBlending () |
| calls update color blending with the model root. | |
| virtual void | updateColorBlending (osg::Node *node) |
| virtual void | enableTexture (osg::Node *root, bool onOff) |
| virtual void | updateBoundingBoxViaContents () |
| DtOsgModelInstance (DtDe &de) | |
| CTOR. | |
| virtual void | setRootNode (osg::Node *node) |
| Set the model instance's root node. | |
Protected Attributes | |
| osg::ref_ptr< osg::LineWidth > | myLineWidth |
| osg::ref_ptr< osg::Material > | myMaterial |
| osg::ref_ptr< osg::BlendFunc > | myBlendFunc |
| AttachablePolygonParameters | myParameters |
| The current parameter set. | |
| VertexList | myVertices |
| osg::ref_ptr< osg::Geode > | myGeode |
| bool | myIsLocked |
| bool | myGeometryIsDirty |
| bool | myStateIsDirty |
Protected Attributes inherited from makVrv::DtOsgModelInstance | |
| osg::ref_ptr< osg::Node > | myModelRoot |
| osg::ref_ptr< osg::StateSet > | myCachedState |
| SensorRegionStateMap | mySensorRegionMap |
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::DtOsgModelInstance | |
| static osg::Vec4 | readVec4 (const std::string ¶mName, const DtModelDefinition &definition) |
| static osg::Vec3 | readVec3 (const std::string ¶mName, const DtModelDefinition &definition) |
Public Attributes inherited from makVrv::DtOsgModelInstance | |
| boost::signal< void(const std::string &) > | signal_dynamicSensorRegionAdded |
| Signal raised when a dynamic sensor region is added. | |
| boost::signal< void(const std::string &, bool) > | signal_dynamicSensorRegionChanged |
| Signal raised when a dynamic sensor region's state changes. | |
Public Attributes inherited from makVrv::DtModelInstance | |
| boost::signal< void(DtModelInstance *)> | signal_modelInstanceChanged |
Model instance to draw a polygon.
| typedef std::vector<DtVector> makVrv::DtPolygonModelInstance::VertexList |
| makVrv::DtPolygonModelInstance::DtPolygonModelInstance | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Realize settings according to model definition.
Reimplemented from makVrv::DtModelInstance.
|
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 |
Will either update or batch updates until a future unlock is given.
|
inline |
|
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.
|
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 |
|
protected |
|
protected |
|
protected |