![]() |
VR-Forces 5.0.2 Developer's Guide
|
DtOsg2DVolumetricLineModel is the model implemenation of 2D volumetric lines. The volumetric 2D line only supports volumetric line width. It will create a polygon extruded in the width around the line points.

Public Member Functions | |
| DtOsg2DVolumetricLineModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtOsg2DVolumetricLineModel () |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | setInsideColor (float r, float g, float b, float a) |
| virtual void | getInsideColor (float &r, float &g, float &b, float &a) |
| virtual void | setOutsideColor (float r, float g, float b, float a) |
| virtual void | getOutsideColor (float &r, float &g, float &b, float &a) |
| virtual void | setOutlineWidth (float width) |
| virtual void | setPhysicalLineWidth (double width) |
| virtual void | setEventsEnabled (bool) |
| virtual void | setEventWidth (float) |
| virtual void | setSolid (bool) |
| virtual void | setGroup (int) |
| virtual void | addPoint (const DtVector &point, int index) |
| virtual void | setPosition (int vtx, const DtVector &position) |
| virtual void | removePoint (int index) |
| virtual void | removePosition (int vtx) |
| virtual void | setOrigin (const DtVector &o) |
| virtual void | setPoint (int vtx, const DtVector &position) |
| virtual void | setOrientation (int vtx, const DtTaitBryan &orientation) |
| virtual void | setOutline (bool) |
| virtual void | setSolidFillCenter (bool) |
| virtual void | setUseDynamicOrigin (bool) |
| virtual void | addToScene (const DtUniqueID &sceneObjectId, int modelSet, int visualizerType) |
| virtual void | removeFromScene () |
| virtual void | setModelDefinition (const std::string &str) |
| virtual void | setVisible (bool isVisible) |
| virtual void | setIsSupportModel (bool isSupport) |
Public Member Functions inherited from makVrv::Dt2DVolumetricLineModel | |
| Dt2DVolumetricLineModel (DtDe &de, DtUniqueID id) | |
| virtual | ~Dt2DVolumetricLineModel () |
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 |
| 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 int | 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 (DtModelDefinition &defintion) |
| virtual bool | visible () const |
| DtUniqueID | parentSceneObjectID () const |
| virtual void | addedToSceneObjectAsProp (const DtUniqueID &sceneObj) |
| virtual void | addedToSceneObject (const DtUniqueID &sceneObj, int modelSet, int visualizerType) |
| virtual void | setElementId (DtUniqueID id) |
| virtual void | removedFromSceneObject () |
| 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 | update () |
| virtual void | needsUpdate () |
| virtual void | slot_coordinateSystemChanged () |
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 |
| DtUniqueID | myParentId |
| bool | myEventsEnabled |
| float | myPhysicalLineWidth |
| DtVector | myOrigin |
| bool | myUseDynamicOrigin |
| geos::geom::CoordinateSequence * | myCoordinateSequence |
| DtCoordTransform | myGeocentricToTopographicTransform |
| DtCoordTransform | myTopographicToGeocentricTransform |
| DtSignalConnectionManager | myConnections |
| DtCoordinateSystem * | myCoordinateSystem = nullptr |
Protected Attributes inherited from makVrv::DtModel | |
| DtLoaderHandle * | myInLoadQueueHandle |
| DtDe & | myDe |
| const DtUniqueID | myUniqueId |
| bool | myColorBlendingEnabled |
| DtModelInstance * | myBackgroundModelInstance |
| float | myMinLastFrameDistance |
| TransformList | myTransforms |
| DtModelInstance * | myModelInstance |
| int | myModelSet |
| int | myVisualizerType |
| bool | myContributesToBound |
| DtUniqueID | myParentSceneObjectID |
| bool | myIsPropFlag |
| float | myBlendColor [4] |
| bool | myVisibleFlag |
| DtVector | myPositionOffset |
| DtTaitBryan | myOrientationOffset |
| std::string | myModelDefinitionName |
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::DtOsg2DVolumetricLineModel::DtOsg2DVolumetricLineModel | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Set the inside and outside color of the line.
Implements makVrv::Dt2DVolumetricLineModel.
|
virtual |
Set the color at the center of the volumetric line.
Implements makVrv::Dt2DVolumetricLineModel.
|
virtual |
Retrieves the inside color.
|
virtual |
Set the color on the outside of the volumetric line.
Implements makVrv::Dt2DVolumetricLineModel.
|
virtual |
Retrieves the inside color.
|
virtual |
Set the width of the line.
Implements makVrv::Dt2DVolumetricLineModel.
|
virtual |
Width (in meters) of the line.
Implements makVrv::Dt2DVolumetricLineModel.
|
virtual |
Sets whether or not the line is selectable.
Implements makVrv::Dt2DVolumetricLineModel.
|
virtual |
Sets the width of the selectable line area for handling events.
Implements makVrv::Dt2DVolumetricLineModel.
|
virtual |
Sets whether or not this volumetric line is filled or just outlined.
Implements makVrv::Dt2DVolumetricLineModel.
|
virtual |
Sets the layer group on which to draw this object.
Implements makVrv::Dt2DVolumetricLineModel.
|
virtual |
Attaches the model to the scene.
Implements makVrv::DtModel.
|
virtual |
Detaches the model from the scene – no-op.
Implements makVrv::DtModel.
|
virtual |
Sets the model definition on the model instance.
Reimplemented from makVrv::DtModel.
|
virtual |
Sets if the line is visible.
Reimplemented from makVrv::DtModel.
|
virtual |
Not applicable to overlay objects.
Implements makVrv::DtModel.
|
virtual |
Add a new point to the polygon at the specified index, or, at the end if index is -1.
|
virtual |
Set the position of (or add) one vertex.
Reimplemented from makVrv::DtModel.
|
virtual |
Removes the point from the specified index.
|
virtual |
Remove a vertex.
Reimplemented from makVrv::DtModel.
|
virtual |
Will set in model instance.
|
virtual |
Will set point in the model instance.
|
virtual |
Set the orientation of a vertex of the polygon; has no effect.
Reimplemented from makVrv::DtModel.
|
virtual |
Sets whether or not the line is outlined when filled.
|
virtual |
Sets to fill the center solid (if filled) not gradiant. Default is false.
|
virtual |
If true, when the origin changes all the points move with the origin. Default is false. This means that when the origin changes only point 0 moves.
Implements makVrv::Dt2DVolumetricLineModel.
|
protectedvirtual |
Called on tick when updated, calls updateGeometry() of model instance.
|
protectedvirtual |
Sets needs update flag such that on next update pass the object is updated.
|
protectedvirtual |
slot for when the coordinate system changes
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
local clone of the system wide coordinate system. for thread safety.