VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtDecalProjectorLineModel Class Reference

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.

Inheritance diagram for makVrv::DtDecalProjectorLineModel:
Inheritance graph
[legend]

Public Types

typedef std::vector< DtVectorPointVector
 

Public Member Functions

 DtDecalProjectorLineModel (DtDe &de, DtUniqueID id)
 
virtual ~DtDecalProjectorLineModel ()
 
 DtDecalProjectorLineModel ()=delete
 
 DtDecalProjectorLineModel (const DtDecalProjectorLineModel &)=delete
 
DtDecalProjectorLineModeloperator= (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 ()
 
DtModelInstancecreateModelInstance (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 DtVectorposition (int vtx=0) const
 
virtual void setPositionOffset (const DtVector &positionOffset)
 
virtual const DtVectorpositionOffset () 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 DtVectorboundingBoxExtents () const
 
void getBoundingBoxExtents (double &x, double &y, double &z) const
 
const DtVectorboundingBoxCenter () 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
 
DtDede ()
 
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 DtModelInstancemodelInstance ()
 
virtual const DtModelInstancemodelInstance () const
 
int visualizerType () const
 
virtual bool supportsMultithreadedLoad ()
 
virtual void backgroundLoad ()
 
virtual void foregroundLoad ()
 
virtual bool isActivelyBackgroundLoading ()
 
virtual DtLoaderHandlegetLoadQueueHandle ()
 

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 ()
 

Protected Attributes

bool myConnectedToPostUpdate
 
bool myTransformDirty
 
bool myPointsDirty
 
bool myParametersDirty
 
DtVector myTransformPosition
 
DtTaitBryan myTransformOrientation
 
PointVector myLinePoints
 
vrvTacticalGraphicUtilities::LineStyle myLineStyle
 
vrvTacticalGraphicUtilities::ArrowStyle myArrowStyle
 
std::string myModelDefinition
 
std::string myTexture
 
float myColor [4]
 
bool myPickable
 
float myLineWidth
 
double myArrowSize
 
unsigned short myLineStipplePattern
 
unsigned int myFullStipplePattern [32]
 
DtDecalProjectorLineInterfacemyLine
 
DtUniqueID mySceneObjectId
 
- Protected Attributes inherited from makVrv::DtModel
DtLoaderHandlemyInLoadQueueHandle
 
DtDemyDe
 
const DtUniqueID myUniqueId
 
DtUniqueID myElementId
 
DtUniqueID myParentSceneObjectID
 
bool myColorBlendingEnabled
 
DtModelInstancemyBackgroundModelInstance
 
float myMinLastFrameDistance
 
TransformList myTransforms
 
DtModelInstancemyModelInstance
 
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
 

Member Typedef Documentation

Constructor & Destructor Documentation

makVrv::DtDecalProjectorLineModel::DtDecalProjectorLineModel ( DtDe de,
DtUniqueID  id 
)

Constructor.

virtual makVrv::DtDecalProjectorLineModel::~DtDecalProjectorLineModel ( )
virtual

Destructor.

makVrv::DtDecalProjectorLineModel::DtDecalProjectorLineModel ( )
delete

Default Constructor not implemented – default constructor not allowed.

makVrv::DtDecalProjectorLineModel::DtDecalProjectorLineModel ( const DtDecalProjectorLineModel )
delete

Copy Constructor not implemented – Copy not allowed.

Member Function Documentation

DtDecalProjectorLineModel& makVrv::DtDecalProjectorLineModel::operator= ( const DtDecalProjectorLineModel )
delete

Assignment Operator not implemented – Copy not allowed.

virtual void makVrv::DtDecalProjectorLineModel::setPosition ( int  index,
const DtVector position 
)
overridevirtual

Sets the position of the point at the specified index.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtDecalProjectorLineModel::removePosition ( int  index)
overridevirtual

Remove the position at the specified index.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtDecalProjectorLineModel::setOrientation ( int  index,
const DtTaitBryan &  orientation 
)
overridevirtual

Sets the orientation of the line.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtDecalProjectorLineModel::setIsSupportModel ( bool  isSupport)
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 void makVrv::DtDecalProjectorLineModel::setPickable ( bool  enabled)
virtual

Set the line's pickability.

virtual void makVrv::DtDecalProjectorLineModel::setVisible ( bool  isVisible)
overridevirtual

Set the visible state of the model.

Parameters
isVisibleis the new visible state

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtDecalProjectorLineModel::setColor ( float  r,
float  g,
float  b,
float  a 
)
overridevirtual

Sets the color for the line. This will apply to all segments of the line.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtDecalProjectorLineModel::setLineStipplePattern ( unsigned short  pattern)
virtual

Sets the stipple pattern of the line.

virtual void makVrv::DtDecalProjectorLineModel::setLineWidth ( float  width)
virtual

Sets the width of the line in pixel space, not world. Clears out any existing dimensional size.

virtual void makVrv::DtDecalProjectorLineModel::setSegmentStartArrow ( int  ,
bool   
)
virtual

Sets the arrow to be on/off at the start of the segment.

virtual void makVrv::DtDecalProjectorLineModel::setSegmentEndArrow ( int  ,
bool   
)
virtual

Sets the arrow to be on/off at the end of the segment. Start and end arrow set are equivalent.

virtual void makVrv::DtDecalProjectorLineModel::setArrowSize ( double  )
virtual

Sets the size of the arrow (in pixels)

virtual void makVrv::DtDecalProjectorLineModel::setArrowStyle ( int  )
virtual

Sets the style of the arrow. Applies to all segments.

virtual void makVrv::DtDecalProjectorLineModel::setLineStyle ( int  )
virtual

Sets the style of line to use. See DtLineFacadeBase.h for styles.

virtual void makVrv::DtDecalProjectorLineModel::setModelDefinition ( const std::string &  str)
overridevirtual

Sets the model definition on the model instance.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtDecalProjectorLineModel::setNeedsUpdate ( )
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.

virtual void makVrv::DtDecalProjectorLineModel::setTransformDirty ( )
protectedvirtual

Called when the transform has been modified.

virtual void makVrv::DtDecalProjectorLineModel::setPointsDirty ( )
protectedvirtual

Called when the line points have been modified.

virtual void makVrv::DtDecalProjectorLineModel::setParametersDirty ( )
protectedvirtual

Called when a paremer has been modified.

virtual void makVrv::DtDecalProjectorLineModel::addToScene ( const DtUniqueID sceneObjectId,
DtModelSetId  modelSet,
int  visualizerType 
)
overrideprotectedvirtual

Adds the model to the scene.

Implements makVrv::DtModel.

virtual void makVrv::DtDecalProjectorLineModel::removeFromScene ( )
overrideprotectedvirtual

Removes the model from the scene.

Implements makVrv::DtModel.

virtual void makVrv::DtDecalProjectorLineModel::setLocalPosition ( int  index,
const DtVector position 
)
protectedvirtual

setPosition helper to set positions relative to the origin.

virtual void makVrv::DtDecalProjectorLineModel::update ( )
protectedvirtual

Updates the decal projector line component based on the current state such as color and positions.

Member Data Documentation

bool makVrv::DtDecalProjectorLineModel::myConnectedToPostUpdate
protected
bool makVrv::DtDecalProjectorLineModel::myTransformDirty
protected
bool makVrv::DtDecalProjectorLineModel::myPointsDirty
protected
bool makVrv::DtDecalProjectorLineModel::myParametersDirty
protected
DtVector makVrv::DtDecalProjectorLineModel::myTransformPosition
protected
DtTaitBryan makVrv::DtDecalProjectorLineModel::myTransformOrientation
protected
PointVector makVrv::DtDecalProjectorLineModel::myLinePoints
protected
vrvTacticalGraphicUtilities::LineStyle makVrv::DtDecalProjectorLineModel::myLineStyle
protected
vrvTacticalGraphicUtilities::ArrowStyle makVrv::DtDecalProjectorLineModel::myArrowStyle
protected
std::string makVrv::DtDecalProjectorLineModel::myModelDefinition
protected
std::string makVrv::DtDecalProjectorLineModel::myTexture
protected
float makVrv::DtDecalProjectorLineModel::myColor[4]
protected
bool makVrv::DtDecalProjectorLineModel::myPickable
protected
float makVrv::DtDecalProjectorLineModel::myLineWidth
protected
double makVrv::DtDecalProjectorLineModel::myArrowSize
protected
unsigned short makVrv::DtDecalProjectorLineModel::myLineStipplePattern
protected
unsigned int makVrv::DtDecalProjectorLineModel::myFullStipplePattern[32]
protected
DtDecalProjectorLineInterface* makVrv::DtDecalProjectorLineModel::myLine
protected
DtUniqueID makVrv::DtDecalProjectorLineModel::mySceneObjectId
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)