![]() |
VR-Forces Developer's Guide
|
DtOsg3DVolumetricLineModel is the model implementation of 3D volumetric lines. Use this class to create a representation of a volumetric line that has an extruded width and extruded height. Since this class is more closely related to a closed polygonal area than a line with either width or height, this class is used rather than the DtOsgExtrudedLine model to calculate an extruded shape (width) around a the line itself as a closed figure. This can then be passed to the DtOsgExtrudedPolygonModel for rendering.

Public Member Functions | |
| DtOsg3DVolumetricLineModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtOsg3DVolumetricLineModel () |
| 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 | setPhysicalLineHeight (double height) |
| virtual void | setPhysicalLineWidth (double height) |
| virtual void | setDimensions (double w, double h) |
| virtual void | setPickable (bool) |
| virtual void | setSolid (bool) |
| virtual void | setScribed (bool) |
| virtual void | setScribeColor (float r, float g, float b, float a) |
| virtual void | setScribeWidth (float) |
| virtual void | addPoint (const DtVector &position, int index=-1) |
| virtual void | removePoint (int index) |
| virtual void | removePosition (int index) |
| virtual void | setPoint (int index, const DtVector &position) |
| virtual void | setPosition (int index, const DtVector &position) |
| void | setOrigin (const DtVector &origin) |
| virtual void | setVisible (bool isVisible) |
| virtual void | setFill (bool f) |
| virtual void | setOrientation (int vtx, const DtTaitBryan &orientation) |
| virtual void | setScribeAllPolygons (bool) |
| virtual void | setIsSupportModel (bool isSupport) |
| virtual void | setModelDefinition (const std::string &str) |
Public Member Functions inherited from makVrv::Dt3DVolumetricLineModel | |
| Dt3DVolumetricLineModel (DtDe &de, DtUniqueID id) | |
| virtual | ~Dt3DVolumetricLineModel () |
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 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 () |
| 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 () |
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::DtOsg3DVolumetricLineModel::DtOsg3DVolumetricLineModel | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Set the inside and outside color of the line.
Implements makVrv::Dt3DVolumetricLineModel.
|
virtual |
Set the color at the center of the volumetric line.
Implements makVrv::Dt3DVolumetricLineModel.
|
virtual |
Retrieves the inside color.
|
virtual |
Set the color on the outside of the volumetric line.
Implements makVrv::Dt3DVolumetricLineModel.
|
virtual |
Retrieves the inside color.
|
virtual |
Set the height (in meters) of the line.
Implements makVrv::Dt3DVolumetricLineModel.
|
virtual |
Set the width (in meters) of the line.
Implements makVrv::Dt3DVolumetricLineModel.
Sets the width and height of the line.
Implements makVrv::Dt3DVolumetricLineModel.
|
virtual |
Sets whether or not the line is selectable.
Implements makVrv::Dt3DVolumetricLineModel.
|
virtual |
Sets whether or not this volumetric line is filled or just outlined.
Implements makVrv::Dt3DVolumetricLineModel.
|
virtual |
Sets whether or not the line is scribed.
Implements makVrv::Dt3DVolumetricLineModel.
|
virtual |
Set the scribe line color.
Implements makVrv::Dt3DVolumetricLineModel.
|
virtual |
Sets the width of the scribe line.
Implements makVrv::Dt3DVolumetricLineModel.
|
virtual |
Add a new point on the volumetric line at specified index, or at the end if index is -1.
|
virtual |
Removes the point at the specified index.
|
virtual |
Calls removePoint.
Reimplemented from makVrv::DtModel.
|
virtual |
Sets the position of the point at the specified index.
|
virtual |
If index is 0, sets origin.
Reimplemented from makVrv::DtModel.
| void makVrv::DtOsg3DVolumetricLineModel::setOrigin | ( | const DtVector & | origin | ) |
Sets origin of this line.
|
virtual |
Sets whether or not line is visible.
Reimplemented from makVrv::DtModel.
|
virtual |
Sets whether or not the object is filled (top and bottom)
|
virtual |
Sets line orientation. Only vtx 0 is used.
Reimplemented from makVrv::DtModel.
|
virtual |
Sets whether or not to only scribe the outline (and not the line edges). Only valid if scribed is true. If set to true will scribe all point connections along the polygon. If false will only scribe the top and bottom of the polygon.
|
virtual |
Set whether the model is part of the support group (whether or not other scene objects can ground clamp to this model)
Implements makVrv::DtModel.
|
virtual |
Sets the model definition on the model instance.
Reimplemented from makVrv::DtModel.
|
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 |
Attaches the model to the scene.
Implements makVrv::DtModel.
|
protectedvirtual |
Detaches the model from the scene.
Implements makVrv::DtModel.
|
protectedvirtual |
slot for when the coordinate system changes
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
local clone of the system wide coordinate system. for thread safety.
|
protected |