![]() |
VR-Forces Developer's Guide
|
OSG implementation of 2D segmented line.

Public Member Functions | |
| DtOsgOverlayDirectionLineModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtOsgOverlayDirectionLineModel () |
| DtOsgOverlayDirectionLineModel ()=delete | |
| DtOsgOverlayDirectionLineModel (const DtOsgOverlayDirectionLineModel &other)=delete | |
| DtOsgOverlayDirectionLineModel & | operator= (const DtOsgOverlayDirectionLineModel &other)=delete |
| virtual void | setPosition (int index, const DtVector &position) |
| virtual void | setDirection (int index, const DtVector &direction) |
| virtual void | setScale (int index, float scale) |
| virtual void | setLength (int index, float length) |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | setWidth (float width) |
| virtual void | setStipplePattern (unsigned int stipple, int repeatFactor) |
| virtual void | setEventsEnabled (bool) |
| virtual void | setGroup (int) |
| virtual void | setPositionOffset (const DtVector &) |
| virtual void | setIsSupportModel (bool) |
| virtual void | setVisible (bool isVisible) |
| virtual void | setAltitudeBasedConfigurations (const DtDirectionLineAltitudeBasedConfigurationCollection &configs) |
| virtual void | clearAltitudeBasedConfigurations () |
| virtual void | setIsUseForcedAltitudeEnabled (bool enabled) |
| virtual void | setForcedAltitudeToUse (double minimumAltitudeForUse) |
| virtual void | setLodOutAltitude (double lodOutAltitude) |
| virtual void | setIsLodOutAltitudeEnabled (bool isLodOutAltitudeEnabled) |
| virtual const std::vector < DtVector > & | points () const |
| virtual void | setModelDefinition (const std::string &str) |
Public Member Functions inherited from makVrv::DtOverlayDirectionLineModel | |
| DtOverlayDirectionLineModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtOverlayDirectionLineModel () |
Public Member Functions inherited from makVrv::DtOverlayLineModel | |
| DtOverlayLineModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtOverlayLineModel () |
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 | removePosition (int vtx) |
| virtual const DtVector & | positionOffset () const |
| virtual void | setOrientation (int vtx, const DtTaitBryan &orientation) |
| 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 () |
| virtual void | update () |
| virtual void | addToScene (const DtUniqueID &sceneObjectId, DtModelSetId modelSet, int visualizerType) |
| virtual void | removeFromScene () |
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 | |
| bool | myNeedsUpdate |
| int | myGroup |
| 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 Types inherited from makVrv::DtOverlayDirectionLineModel | |
| typedef std::vector < DtDirectionLineAltitudeBasedConfiguration > | DtDirectionLineAltitudeBasedConfigurationCollection |
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::DtOsgOverlayDirectionLineModel::DtOsgOverlayDirectionLineModel | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
delete |
Default Constructor not implemented.
|
delete |
Copy Constructor not implemented - Copy not allowed.
|
delete |
Assignment Operator not implemented - Assignment not allowed.
|
virtual |
Sets the position of the point at the specified index.
Reimplemented from makVrv::DtModel.
|
virtual |
Sets the direction of the point at the specified index.
Implements makVrv::DtOverlayDirectionLineModel.
|
virtual |
Sets the scale factor to be applied to the line. The scale factor is applied whether altitude-based configurations are used or not.
Implements makVrv::DtOverlayDirectionLineModel.
|
virtual |
Sets the 2d length of the point at the specified index.
Implements makVrv::DtOverlayDirectionLineModel.
|
virtual |
Sets the color of the line.
Implements makVrv::DtLineModel.
|
virtual |
Sets the width of the line.
Implements makVrv::DtLineModel.
|
virtual |
Sets the stipple pattern for the line.
Implements makVrv::DtLineModel.
|
virtual |
Sets whether or not mouse events are signaled for the line.
Implements makVrv::DtOverlayLineModel.
|
virtual |
The higher the Z order the "closer" to the eyepoint this element will be drawn. Use this variable to stack overlay objects in the particular order you want them displayed.
Implements makVrv::DtOverlayDirectionLineModel.
|
virtual |
Offsets vertices by given offset.
Reimplemented from makVrv::DtModel.
|
virtual |
No-op - Inherited from DtModel.
Implements makVrv::DtModel.
|
virtual |
Make the line visible or invisible.
Reimplemented from makVrv::DtModel.
|
virtual |
Set the altitude-based configurations for this line model.
Implements makVrv::DtOverlayDirectionLineModel.
|
virtual |
Clear the altitude-based configurations for this model. The model will no longer have a dynamic length but will fixed to the length specified by setLength(float).
Implements makVrv::DtOverlayDirectionLineModel.
|
virtual |
Set whether or not a forced altitude will be used when considering which altitude-based configuration to use, if there are any. This function has no effective result if altitude-based configurations are not used. This function can be used to temporarily force a particular altitude-based configuration to be used, e.g. on mouse hover. The actual altitude used when determining the forced altitude-based configuration can be specified using: setForcedAltitudeToUse(double minimumAltitudeForUse)
Implements makVrv::DtOverlayDirectionLineModel.
|
virtual |
Set the MSL altitude, in meters, to use when determining the altitude-based configuration to use. This function only has an effect if setIsUseForcedAltitudeEnabled(true) has been called.
Implements makVrv::DtOverlayDirectionLineModel.
|
virtual |
Set the base MSL altitude, in meters, at which the direction line model will no longer appear.
Implements makVrv::DtOverlayDirectionLineModel.
|
virtual |
Set whether or not this model will use the LOD Out Altitude property.
Implements makVrv::DtOverlayDirectionLineModel.
|
virtual |
Points that make up this polygon.
Implements makVrv::DtLineModel.
|
virtual |
Sets the model definition on the model instance.
Reimplemented from makVrv::DtModel.
|
protectedvirtual |
Attaches the model to the scene.
Implements makVrv::DtModel.
|
protectedvirtual |
Detaches the model from the scene – no-op.
Implements makVrv::DtModel.
|
protectedvirtual |
Sets needs update flag such that on next update pass the object is updated.
|
protectedvirtual |
Attached to postUpdate signal from the renderer, tell the model instance to update.
|
protected |
|
protected |
|
protected |