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

Classes | |
| struct | AttachablePolygonParameters |
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 | 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 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 | enableColorBlending (bool b) |
| Enable / disable coloring on all models in the scene object. | |
| 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. | |
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 Types | |
| typedef std::vector< osg::Vec3 > | VertexList |
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 |
| 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 |
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::DtModelInstance | |
| boost::signal< void(DtModelInstance *)> | signal_modelInstanceChanged |
Model instance to draw a polygon.
|
protected |
| 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 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.
|
virtual |
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 |
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.
|
virtual |
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 |
The current parameter set.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |