![]() |
VR-Forces Developer's Guide
|
This class provides a model of a line that will used a decal projector to be projected on the terrain surface. This is used by a visualizer class such as DtDecalProjectorEnvironmentalLineVisualizer.

Public Types | |
| typedef std::vector< DtVector > | PointVector |
Public Member Functions | |
| DtDecalProjectorLineModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtDecalProjectorLineModel () |
| DtDecalProjectorLineModel ()=delete | |
| DtDecalProjectorLineModel (const DtDecalProjectorLineModel &)=delete | |
| DtDecalProjectorLineModel & | operator= (const DtDecalProjectorLineModel &)=delete |
| virtual void | setPosition (int index, const DtVector &position) override |
| virtual void | removePosition (int index) override |
| virtual void | setOrientation (int index, const DtTaitBryan &orientation) override |
| virtual void | setIsSupportModel (bool isSupport) override |
| virtual void | setPickable (bool enabled) |
| virtual void | setVisible (bool isVisible) override |
| virtual void | setColor (float r, float g, float b, float a) override |
| virtual void | setLineStipplePattern (unsigned short pattern) |
| virtual void | setLineWidth (float width) |
| virtual void | setSegmentStartArrow (int, bool) |
| virtual void | setSegmentEndArrow (int, bool) |
| virtual void | setArrowSize (double) |
| virtual void | setArrowStyle (int) |
| virtual void | setLineStyle (int) |
| virtual void | setModelDefinition (const std::string &str) override |
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 | setNeedsUpdate () |
| virtual void | setTransformDirty () |
| virtual void | setPointsDirty () |
| virtual void | setParametersDirty () |
| virtual void | addToScene (const DtUniqueID &sceneObjectId, DtModelSetId modelSet, int visualizerType) override |
| virtual void | removeFromScene () override |
| virtual void | setLocalPosition (int index, const DtVector &position) |
| virtual void | update () |
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 |
| typedef std::vector<DtVector> makVrv::DtDecalProjectorLineModel::PointVector |
| makVrv::DtDecalProjectorLineModel::DtDecalProjectorLineModel | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
Constructor.
|
virtual |
Destructor.
|
delete |
Default Constructor not implemented – default constructor not allowed.
|
delete |
Copy Constructor not implemented – Copy not allowed.
|
delete |
Assignment Operator not implemented – Copy not allowed.
|
overridevirtual |
Sets the position of the point at the specified index.
Reimplemented from makVrv::DtModel.
|
overridevirtual |
Remove the position at the specified index.
Reimplemented from makVrv::DtModel.
|
overridevirtual |
Sets the orientation of the line.
Reimplemented from makVrv::DtModel.
|
overridevirtual |
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 |
Set the line's pickability.
|
overridevirtual |
Set the visible state of the model.
| isVisible | is the new visible state |
Reimplemented from makVrv::DtModel.
|
overridevirtual |
Sets the color for the line. This will apply to all segments of the line.
Reimplemented from makVrv::DtModel.
|
virtual |
Sets the stipple pattern of the line.
|
virtual |
Sets the width of the line in pixel space, not world. Clears out any existing dimensional size.
Sets the arrow to be on/off at the start of the segment.
Sets the arrow to be on/off at the end of the segment. Start and end arrow set are equivalent.
|
virtual |
Sets the size of the arrow (in pixels)
|
virtual |
Sets the style of the arrow. Applies to all segments.
|
virtual |
Sets the style of line to use. See DtLineFacadeBase.h for styles.
|
overridevirtual |
Sets the model definition on the model instance.
Reimplemented from makVrv::DtModel.
|
protectedvirtual |
Called when the state has been modified and the model needs an update. Connect this object to the post update signal for 1 update cycle.
|
protectedvirtual |
Called when the transform has been modified.
|
protectedvirtual |
Called when the line points have been modified.
|
protectedvirtual |
Called when a paremer has been modified.
|
overrideprotectedvirtual |
Adds the model to the scene.
Implements makVrv::DtModel.
|
overrideprotectedvirtual |
Removes the model from the scene.
Implements makVrv::DtModel.
|
protectedvirtual |
setPosition helper to set positions relative to the origin.
|
protectedvirtual |
Updates the decal projector line component based on the current state such as color and positions.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |