![]() |
VR-Forces Developer's Guide
|
Model instance to draw a 3D line with styleable segments.

Classes | |
| struct | SegmentAttributes |
Public Member Functions | |
| Dt3DSegmentedLineModelInstance (DtDe &de) | |
| virtual | ~Dt3DSegmentedLineModelInstance () |
| virtual void | setPosition (int vtx, const DtVector &position) |
| virtual DtVector | removePosition (int vtx) |
| virtual void | setWidth (float width) |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | setStipplePattern (unsigned int pattern, int repeatFactor) |
| virtual void | setStyleSegments (const std::vector< double > &segmentPercentages) |
| virtual void | setSegmentColor (unsigned int segmentIndex, float r, float g, float b, float a) |
| virtual void | setSegmentLightningStyle (unsigned int segmentIndex, bool enableLightningStyle) |
| virtual void | setSegmentStartArrow (unsigned int segmentIndex, bool enableArrow) |
| virtual void | setSegmentEndArrow (unsigned int segmentIndex, bool enableArrow) |
| virtual void | setSegmentStipplePattern (unsigned int segmentIndex, unsigned int stipplePattern, int repeatFactor) |
| virtual void | setSegmentWidth (unsigned int segmentWidth, double width) |
| virtual void | setSegmentStartColor (unsigned int segmentIndex, float r, float g, float b, float a) |
| virtual void | setSegmentEndColor (unsigned int segmentIndex, float r, float g, float b, float a) |
| virtual void | setTerrainIntersect (bool enabled) |
| virtual void | setModelSet (DtModelSetId modelSet) |
| virtual bool | realize (const DtModelDefinition &definition) |
| virtual void | addToConnector (DtOsgSceneConnector *connector) |
| virtual bool | removeFromConnector (DtOsgSceneConnector *connector) |
| virtual void | setDepthTestEnabled (bool enabled) |
| virtual void | setVisible (bool isVisible) |
| virtual void | setPickable (bool pickable) |
| bool | pickable () const |
| virtual void | update () |
| virtual const std::vector < DtVector > & | points () const |
Public Member Functions inherited from makVrv::DtOsgModelInstance | |
| virtual | ~DtOsgModelInstance () |
| virtual bool | cloneInstance (const DtModelDefinition &definition) |
| 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 () |
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 Dt3DLineModelInstanceSegmentInterface * | createSegment () |
| Dt3DLineModelInstanceSegment & | lineSegment (int i) |
| const Dt3DLineModelInstanceSegment & | lineSegment (int i) const |
| virtual void | updatePickableSegments () |
| virtual void | adjustSegmentVisibility (int vtx, bool visible) |
| virtual void | resizeSegments (int size) |
| virtual void | resizeSegmentAttributes (int size) |
| virtual void | updateGeometry () |
| virtual void | updateAllSegmentAttributes () |
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 | |
| Dt3DSegmentedLineModelInstance () | |
| Dt3DSegmentedLineModelInstance (const Dt3DSegmentedLineModelInstance &) | |
| Dt3DSegmentedLineModelInstance & | operator= (const Dt3DSegmentedLineModelInstance &) |
Additional Inherited Members | |
Public Types inherited from makVrv::DtOsgModelInstance | |
| enum | AlphaToCoverageState { USE_GLOBAL, FORCE_OFF, FORCE_ON } |
| typedef std::unordered_map < std::string, bool > | SensorRegionStateMap |
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) |
| static DtVector4< float > | readVector4 (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 |
| makVrv::Dt3DSegmentedLineModelInstance::Dt3DSegmentedLineModelInstance | ( | 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 |
Set the position of one endpoint of the line.
Reimplemented in makVrf::DtVrf3DSegmentedLineModelInstance.
Remove the vertex at position vtx Returns the value of the vertex that replaces it (or 0,0,0 if none)
|
virtual |
Set the width of the line.
|
virtual |
Set the color of the line.
|
virtual |
Set a stipple pattern for the line.
|
virtual |
Set the style segments to percentages of the total line length The values in segmentPercentages must add up to 1.0.
|
virtual |
Set the color of a particular segment.
|
virtual |
Turn on or off lightning bolt style for a particular segment.
|
virtual |
Turn on or off the arrow at a segment's start point.
|
virtual |
Turn on or off the arrow at a segment's end point.
|
virtual |
Set the line stipple pattern for a segment, according to the OpenGL line stippling specification.
|
virtual |
Set the line width of a segment.
|
virtual |
Set the color of the firt vertex in a segment. This can be used for color blending between vertices.
|
virtual |
Set the color of the end vertex in a segment. This can be used for color blending between vertices.
|
virtual |
Set terrain intersection mode.
|
virtual |
Set the model set this model instance uses (needed for doing intersections)
|
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 "Line".
Reimplemented from makVrv::DtOsgModelInstance.
Reimplemented in makVrv::Dt3DGreatCircleArcModelInstance.
|
virtual |
Tell the model instance to add itself to the provided node.
Reimplemented from makVrv::DtOsgModelInstance.
|
virtual |
Tell the model instance to remove itself from the provided node.
Reimplemented from makVrv::DtOsgModelInstance.
|
virtual |
Turn on or off depth testing (occlusion); default is true.
|
virtual |
Set the line visible or invisible; maintains state.
Implements makVrv::DtModelInstance.
|
virtual |
Turn on or off the ability to pick the line. Off by default.
| bool makVrv::Dt3DSegmentedLineModelInstance::pickable | ( | ) | const |
Get whether the arc is pickable.
|
virtual |
Indicate that its time to prepare actual scene graph data to be rendered.
|
virtual |
Returns the points associated with this line.
|
protectedvirtual |
Create an appropriate segment type.
Reimplemented in makVrf::DtVrf3DSegmentedLineModelInstance, and makVrv::Dt3DGreatCircleArcModelInstance.
|
protected |
Helper method to return properly cast Dt3DLineModelInstanceSegment.
|
protected |
Helper method to return properly cast Dt3DLineModelInstanceSegment.
|
protectedvirtual |
Update the pickable segment objects.
|
protectedvirtual |
Adjust segment visibility. also considering the total line visibility.
|
protectedvirtual |
Resize the segments vector to size.
|
protectedvirtual |
Resize the segment attributes vector to size.
|
protectedvirtual |
Update the visibility, endpoints, etc. of the segments.
Reimplemented in makVrv::Dt3DGreatCircleArcModelInstance.
|
protectedvirtual |
Update the state of the segment attributes.
Reimplemented in makVrv::Dt3DGreatCircleArcModelInstance.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |