![]() |
VR-Forces 4.1 Class Documentation
|
Model instance to draw a 2D line with styleable segments. More...

Classes | |
| struct | DirectionAttributes |
Public Member Functions | |
| DtOsgOverlayDirectionLineModelInstance (DtDe &de) | |
| CTOR. | |
| virtual | ~DtOsgOverlayDirectionLineModelInstance () |
| DTOR. | |
| virtual void | setVisible (bool) |
| Sets model shown/hidden. | |
| virtual void | setModelSet (int modelSet) |
| Sets the model set for the overlay. | |
| virtual void | addPoint (const DtVector &position, int index=-1) |
| Each set of two points will represent a segment on the line, so, the origin to second point is the first segment, second to third point is the second segment, etc. | |
| virtual void | setPosition (int index, const DtVector &position) |
| Sets the position of the point at the specified location. | |
| virtual void | setStipplePattern (unsigned int stipple) |
| Segment parameters for stippling. | |
| virtual void | setColor (float r, float g, float b, float a) |
| Set segment color. | |
| virtual void | setWidth (float width) |
| Sets the width of the segment (in pixels) | |
| virtual void | setEventsEnabled (bool, unsigned long long userData) |
| Eanble or disable picking and mouse-over events. | |
| bool | eventsEnabled () const |
| Return whether events are enabled. | |
| virtual void | setPositionOffset (const DtVector &) |
| Offsets vertices by given offset. | |
| virtual void | setDirection (int index, const DtVector &direction) |
| Sets the 3D direction of the vertex. | |
| virtual void | setLength (int index, float length) |
| Sets the 2D (screen space) length/offset of the vertex in the direction set by setDirection. | |
| virtual void | update () |
| Called when it's time to update the rendered object. | |
| virtual bool | realize (DtModelDefinition &definition) |
| Attempt to realize a definition. | |
Public Member Functions inherited from makVrv::DtOsgModelInstance | |
| virtual | ~DtOsgModelInstance () |
| DTOR. | |
| virtual void | addToConnector (DtOsgSceneConnector *connector) |
| Brief Tell the model instance to add itself to the provided node. | |
| virtual bool | removeFromConnector (DtOsgSceneConnector *connector) |
| Brief Tell the model instance to remove itself from the provided node. | |
| 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. | |
Protected Member Functions | |
| virtual void | createLineIfNecessary () |
| Creates the line model. | |
| virtual void | updateAttributes () |
| Updates the segment information. | |
| virtual void | updateGeometry () |
| Updates the line's geometry. | |
| virtual void | set3DVertexPosition (unsigned int index, double x, double y, double z) |
| Sets a lines vertex's position. | |
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 | |
| DtVector | myPoints [2] |
| DirectionAttributes | myDirections [2] |
| unsigned int | myModelSet |
| DtLineSegment * | myLine |
| osg::Vec4 | myColor |
| float | myWidth |
| unsigned int | myStipplePattern |
| bool | myGeometryDirty |
| bool | myAttributesDirty |
| bool | myEventsEnabled |
| bool | myVisibleFlag |
| unsigned long long | myUserData |
| DtVector | myPositionOffset |
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 2D line with styleable segments.
| makVrv::DtOsgOverlayDirectionLineModelInstance::DtOsgOverlayDirectionLineModelInstance | ( | DtDe & | de | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Sets model shown/hidden.
Implements makVrv::DtModelInstance.
|
virtual |
Sets the model set for the overlay.
|
virtual |
Each set of two points will represent a segment on the line, so, the origin to second point is the first segment, second to third point is the second segment, etc.
As points are added or removed, this could influence how the segment styles will be applied. A segment style will be associated with a particular segment and will not change its segment index based on points added or removed
|
virtual |
Sets the position of the point at the specified location.
|
virtual |
Segment parameters for stippling.
|
virtual |
Set segment color.
|
virtual |
Sets the width of the segment (in pixels)
|
virtual |
Eanble or disable picking and mouse-over events.
| bool makVrv::DtOsgOverlayDirectionLineModelInstance::eventsEnabled | ( | ) | const |
Return whether events are enabled.
|
virtual |
Offsets vertices by given offset.
|
virtual |
Sets the 3D direction of the vertex.
|
virtual |
Sets the 2D (screen space) length/offset of the vertex in the direction set by setDirection.
|
virtual |
Called when it's time to update the rendered object.
|
virtual |
Attempt to realize a definition.
If the model instance can't realize the definition it should return false.
Reimplemented from makVrv::DtModelInstance.
|
protectedvirtual |
Creates the line model.
|
protectedvirtual |
Updates the segment information.
|
protectedvirtual |
Updates the line's geometry.
|
protectedvirtual |
Sets a lines vertex's position.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |