![]() |
VR-Forces Developer's Guide
|
OSG implementation of distributed attachable segmented line model.

Public Member Functions | |
| DtOsg3DSegmentedLineModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtOsg3DSegmentedLineModel () |
| virtual void | setPosition (int vtx, const DtVector &position) |
| virtual void | removePosition (int vtx) |
| virtual void | setOrientation (int vtx, const DtTaitBryan &orientation) |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | setWidth (float width) |
| 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 const std::vector < DtVector > & | points () const |
| virtual void | setArrowSize (double) |
| virtual void | setArrowStyle (int) |
| 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 segmentIndex, 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 | setStopOnTerrainIntersection (bool enabled) |
| virtual void | setOcclusionEnabled (bool enabled) |
| virtual void | setPickable (bool pickable) |
| virtual void | setVisible (bool isVisible) |
| virtual void | setIsSupportModel (bool isSupport) |
| virtual void | setModelDefinition (const std::string &str) |
| virtual void | addToScene (const DtUniqueID &sceneObjectId, DtModelSetId modelSet, int visualizerType) |
| virtual void | removeFromScene () |
| virtual void | update () |
Public Member Functions inherited from makVrv::Dt3DSegmentedLineModel | |
| Dt3DSegmentedLineModel (DtDe &de, DtUniqueID id) | |
| virtual | ~Dt3DSegmentedLineModel () |
Public Member Functions inherited from makVrv::DtSegmentedLineModel | |
| DtSegmentedLineModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtSegmentedLineModel () |
Public Member Functions inherited from makVrv::DtLineModel | |
| DtLineModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtLineModel () |
Public Member Functions inherited from makVrv::DtModel | |
| DtModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtModel () |
| DtModelInstance * | createModelInstance (const std::string &modelDefName, bool realize=true) |
| virtual const std::string & | modelDefinitionName () |
| virtual void | saveModelToFile (const std::string &filename) |
| virtual const std::string & | className () const |
| virtual DtUniqueID | uniqueId () const |
| unsigned int | transformSize () const |
| virtual const DtVector & | position (int vtx=0) const |
| virtual void | setPositionOffset (const DtVector &positionOffset) |
| virtual const DtVector & | positionOffset () const |
| virtual void | setPositionAndOrientation (int vtx, const DtVector &positionOffset, const DtTaitBryan &orientation) |
| virtual const DtTaitBryan & | orientation (int vtx=0) const |
| virtual void | setOrientationOffset (const DtTaitBryan &orientationOffset) |
| virtual const DtTaitBryan & | orientationOffset () const |
| virtual void | enableColorBlending (bool b) |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| virtual void | getBlendColor (float &r, float &g, float &b, float &a) |
| virtual bool | colorBlendingEnabled () const |
| virtual void | enableLighting (bool l) |
| virtual DtModelSetId | modelSet () const |
| const DtVector & | boundingBoxExtents () const |
| void | getBoundingBoxExtents (double &x, double &y, double &z) const |
| const DtVector & | boundingBoxCenter () const |
| virtual void | getBoundingBoxCenter (double &x, double &y, double &z) const |
| virtual void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| void | setContributesToBound (bool trueOrFalse) |
| bool | contributesToBound () const |
| DtDe & | de () |
| virtual void | setModelInstance (DtModelInstance *modelInstance) |
| virtual void | promoteBackgroundModelInstance (const DtModelDefinition &defintion) |
| virtual bool | visible () const |
| DtUniqueID | sceneObjectId () const |
| virtual void | addedToSceneObjectAsProp (const DtUniqueID &sceneObj) |
| virtual void | addedToSceneObject (const DtUniqueID &sceneObj, DtModelSetId modelSet, int visualizerType) |
| virtual void | setElementId (DtElementID id) |
| virtual void | removedFromSceneObject () |
| virtual void | setSolid (bool isSolid) |
| virtual bool | isProp () |
| virtual void | updateMinLastFrameDistance (float distance) |
| virtual void | resetLastFrameDistance () |
| virtual float | minLastFrameDistance () const |
| virtual DtModelInstance * | modelInstance () |
| virtual const DtModelInstance * | modelInstance () const |
| int | visualizerType () const |
| virtual bool | supportsMultithreadedLoad () |
| virtual void | backgroundLoad () |
| virtual void | foregroundLoad () |
| virtual bool | isActivelyBackgroundLoading () |
| virtual DtLoaderHandle * | getLoadQueueHandle () |
Protected Member Functions | |
| virtual void | needsUpdate () |
Protected Member Functions inherited from makVrv::DtModel | |
| virtual void | addToSceneAsProp (const DtUniqueID &sceneObjectId) |
| virtual void | initializeModelInstance () |
| void | slot_modelInstanceChanged (DtModelInstance *instance) |
| virtual void | waitAndClearLoadHandle () |
| virtual void | removedFromLoadQueue () |
| virtual void | setDoneBackgroundLoading () |
| virtual void | setActivelyBackgroundLoading () |
Protected Attributes | |
| DtOsgSceneConnector * | mySceneConnector |
| bool | myNeedsUpdate |
| boost::signalslib::connection | mySignalPostUpdateConnection |
Protected Attributes inherited from makVrv::DtModel | |
| DtLoaderHandle * | myInLoadQueueHandle |
| DtDe & | myDe |
| const DtUniqueID | myUniqueId |
| DtUniqueID | myElementId |
| DtUniqueID | myParentSceneObjectID |
| bool | myColorBlendingEnabled |
| DtModelInstance * | myBackgroundModelInstance |
| float | myMinLastFrameDistance |
| TransformList | myTransforms |
| DtModelInstance * | myModelInstance |
| DtModelSetId | myModelSet |
| int | myVisualizerType |
| bool | myContributesToBound |
| bool | myIsPropFlag |
| float | myBlendColor [4] |
| bool | myVisibleFlag |
| DtVector | myPositionOffset |
| DtTaitBryan | myOrientationOffset |
| std::string | myModelDefinitionName |
| bool | myRequireModelInstance = true |
Additional Inherited Members | |
Public Attributes inherited from makVrv::DtModel | |
| boost::signalslib::signal < void(DtModel *)> | signal_modelToBeDestroyed |
| boost::signalslib::signal < void(DtModel *)> | signal_modelChanged |
| boost::signalslib::signal < bool(DtModel *, bool), SlotReturnOR > | signal_visibilityChangeRequested |
| boost::signalslib::signal < void(DtModelInstance *, DtModel *)> | signal_modelInstanceCreated |
| boost::signalslib::signal < void(DtModelInstance *, DtModel *)> | signal_modelInstanceToBeDestroyed |
Protected Types inherited from makVrv::DtModel | |
| typedef std::vector < ObjectTransform > | TransformList |
Static Protected Attributes inherited from makVrv::DtModel | |
| static bool | theInittedState |
| makVrv::DtOsg3DSegmentedLineModel::DtOsg3DSegmentedLineModel | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR takes a de and an id.
|
virtual |
DTOR.
|
virtual |
Set the position of (or add) one vertex.
Reimplemented from makVrv::DtModel.
|
virtual |
Remove a vertex.
Reimplemented from makVrv::DtModel.
|
virtual |
No effect.
Reimplemented from makVrv::DtModel.
|
virtual |
Set the line color.
Implements makVrv::DtLineModel.
|
virtual |
Set the line width.
Implements makVrv::DtLineModel.
|
virtual |
Set a stipple pattern for the line.
Implements makVrv::DtLineModel.
|
virtual |
Set the style segments to percentages of the total line length The values in segmentPercentages must add up to 1.0.
Implements makVrv::DtSegmentedLineModel.
|
virtual |
Set the color of a particular segment.
Implements makVrv::DtSegmentedLineModel.
|
virtual |
Returns the points associated with this line.
Implements makVrv::DtLineModel.
|
virtual |
Sets arrow size. unimplemented.
Implements makVrv::DtSegmentedLineModel.
Reimplemented in makVrf::DtVrfOsg3DSegmentedLineModel.
|
virtual |
Set the style of the arrow. Unimplemented.
Implements makVrv::DtSegmentedLineModel.
|
virtual |
Turn on or off lightning bolt style for a particular segment.
Implements makVrv::DtSegmentedLineModel.
|
virtual |
Turn on or off the arrow at a segment's start point.
Implements makVrv::DtSegmentedLineModel.
|
virtual |
Turn on or off the arrow at a segment's end point.
Implements makVrv::DtSegmentedLineModel.
|
virtual |
Set the line stipple pattern for a segment, according to the OpenGL line stippling specification.
Implements makVrv::DtSegmentedLineModel.
|
virtual |
Set the width of a line segment.
Implements makVrv::DtSegmentedLineModel.
|
virtual |
Set the color of the firt vertex in a segment. This can be used for color blending between vertices.
Implements makVrv::DtSegmentedLineModel.
|
virtual |
Set the color of the end vertex in a segment. This can be used for color blending between vertices.
Implements makVrv::DtSegmentedLineModel.
|
virtual |
Set whether or not the line stops at the first terrain intersection.
Implements makVrv::Dt3DSegmentedLineModel.
|
virtual |
Turn on or off occlusion of the line by other objects; default is true.
Implements makVrv::Dt3DSegmentedLineModel.
|
virtual |
Turn on or off the ability to pick the line. Off by default.
Implements makVrv::Dt3DSegmentedLineModel.
|
virtual |
Implementation of setVisible for the line model; sets the line visible or invisible while maintaining its state.
Reimplemented from makVrv::DtModel.
|
virtual |
Set whether the model is part of the support group (can be clamped to)
Implements makVrv::DtModel.
|
virtual |
Set the model definition for the line (defines default color and width)
Reimplemented from makVrv::DtModel.
|
virtual |
Add the line to the scene.
Implements makVrv::DtModel.
|
virtual |
Remove the line from the scene.
Implements makVrv::DtModel.
|
virtual |
Connected to the renderer's postUpdate signal; tells the model instance to update.
|
protectedvirtual |
Sets needs update flag such that on next update pass the object is updated.
|
protected |
|
protected |
|
protected |