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

A model of a tactical smoke cloud made up of several smoke-puffs.

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

Public Member Functions

 DtOsgTacticalSmokeModel (DtDe &de, DtUniqueID id)
 
virtual ~DtOsgTacticalSmokeModel ()
 
virtual const std::string & className () const
 
virtual void setModelDefinition (const std::string &str)
 
virtual void setPosition (int vtx, const DtVector &pos)
 
virtual void setOrientation (int vtx, const DtTaitBryan &ori)
 
virtual void setVisible (bool isVisible)
 
virtual void setIsSupportModel (bool isSupport)
 
virtual void setWindDirection (const DtVector &winddir)
 
virtual void start ()
 
virtual void stop ()
 
virtual void pause ()
 
virtual void resume ()
 
virtual void addToScene (const DtUniqueID &id, int modelSet, int visualizerType)
 
virtual void removeFromScene ()
 
- Public Member Functions inherited from makVrv::DtTacticalSmokeModel
 DtTacticalSmokeModel (DtDe &de, DtUniqueID id)
 
virtual ~DtTacticalSmokeModel ()
 
- 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)
 
unsigned int transformSize () const
 
virtual const DtVectorposition (int vtx=0) const
 
virtual void removePosition (int vtx)
 
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 setColor (float r, float g, float b, float a)
 
virtual void enableLighting (bool l)
 
virtual int 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 (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 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 ()
 

Private Member Functions

void removeInstanceFromScene ()
 
DtTacticalSmokeModelInstancetacticalSmokeModelInstance ()
 
 DtOsgTacticalSmokeModel ()
 
 DtOsgTacticalSmokeModel (const DtOsgTacticalSmokeModel &)
 
DtOsgTacticalSmokeModeloperator= (const DtOsgTacticalSmokeModel &)
 

Private Attributes

DtOsgSceneConnectormySceneConnector
 
DtVector myPosition
 
DtTaitBryan myOrientation
 
bool myPositionIsSet
 
bool myOrientationIsSet
 
bool myOrientUp
 

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
 
- 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 inherited from makVrv::DtModel
DtLoaderHandlemyInLoadQueueHandle
 
DtDemyDe
 
const DtUniqueID myUniqueId
 
bool myColorBlendingEnabled
 
DtModelInstancemyBackgroundModelInstance
 
float myMinLastFrameDistance
 
TransformList myTransforms
 
DtModelInstancemyModelInstance
 
int myModelSet
 
int myVisualizerType
 
bool myContributesToBound
 
DtUniqueID myParentSceneObjectID
 
bool myIsPropFlag
 
float myBlendColor [4]
 
bool myVisibleFlag
 
DtVector myPositionOffset
 
DtTaitBryan myOrientationOffset
 
std::string myModelDefinitionName
 
- Static Protected Attributes inherited from makVrv::DtModel
static bool theInittedState
 

Constructor & Destructor Documentation

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

Initializing CTOR.

Parameters
[in]deis a reference to the display engine.
[in]idis this model's unique ID for distributed systems.
virtual makVrv::DtOsgTacticalSmokeModel::~DtOsgTacticalSmokeModel ( )
virtual

Virtual DTOR.

makVrv::DtOsgTacticalSmokeModel::DtOsgTacticalSmokeModel ( )
private

Default constructor.

Note
Not implemented
makVrv::DtOsgTacticalSmokeModel::DtOsgTacticalSmokeModel ( const DtOsgTacticalSmokeModel )
private

Copy constructor.

Note
Not implemented

Member Function Documentation

virtual const std::string& makVrv::DtOsgTacticalSmokeModel::className ( ) const
virtual

Get the class name of the model. The class name is used to identify the type of instance to create.

Returns
The class name of the model.

Implements makVrv::DtTacticalSmokeModel.

virtual void makVrv::DtOsgTacticalSmokeModel::setPosition ( int  vtx,
const DtVector pos 
)
virtual

Set the position of the model.

Parameters
[in]vtxis the id of the the particle effect.
[in]posis the position to set.

Implements makVrv::DtTacticalSmokeModel.

virtual void makVrv::DtOsgTacticalSmokeModel::setOrientation ( int  vtx,
const DtTaitBryan &  ori 
)
virtual

Set the orientation of the model.

Parameters
[in]vtxis the id of the the particle effect.
[in]oriis the orientation to set.

Implements makVrv::DtTacticalSmokeModel.

virtual void makVrv::DtOsgTacticalSmokeModel::setVisible ( bool  isVisible)
virtual

Set the model visible in the scene or hidden.

Parameters
[in]isVisibleis the new visible state.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsgTacticalSmokeModel::setIsSupportModel ( bool  isSupport)
virtual

Set the geometry to be part of the support group.

Parameters
[in]isSupportis the flag enabling interactions with the environment when set true, else no interactions occur when set false.

Implements makVrv::DtModel.

virtual void makVrv::DtOsgTacticalSmokeModel::setWindDirection ( const DtVector winddir)
virtual

Set the wind direction and intensity.

Parameters
[in]winddiris the direction and intensity of the wind.

Implements makVrv::DtTacticalSmokeModel.

virtual void makVrv::DtOsgTacticalSmokeModel::start ( )
virtual

Tell the model to start emitting particles.

Implements makVrv::DtTacticalSmokeModel.

virtual void makVrv::DtOsgTacticalSmokeModel::stop ( )
virtual

Tell the model to stop emitting particles.

Implements makVrv::DtTacticalSmokeModel.

virtual void makVrv::DtOsgTacticalSmokeModel::pause ( )
virtual

Freeze the particle emitters.

Implements makVrv::DtTacticalSmokeModel.

virtual void makVrv::DtOsgTacticalSmokeModel::resume ( )
virtual

Resume emitting particles.

Implements makVrv::DtTacticalSmokeModel.

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

Sets the model definition on the model instance.

Reimplemented from makVrv::DtModel.

virtual void makVrv::DtOsgTacticalSmokeModel::addToScene ( const DtUniqueID id,
int  modelSet,
int  visualizerType 
)
virtual

Add this model to the scene.

Implements makVrv::DtModel.

virtual void makVrv::DtOsgTacticalSmokeModel::removeFromScene ( )
virtual

Remove this model from the scene.

Implements makVrv::DtModel.

void makVrv::DtOsgTacticalSmokeModel::removeInstanceFromScene ( )
private

Non-virtual helper to remove the instance from the scene.

DtTacticalSmokeModelInstance* makVrv::DtOsgTacticalSmokeModel::tacticalSmokeModelInstance ( )
inlineprivate

A helper function to cast the base-class DtModelInstance pointer into a DtTacticalSmokeModelInstance pointer.

DtOsgTacticalSmokeModel& makVrv::DtOsgTacticalSmokeModel::operator= ( const DtOsgTacticalSmokeModel )
private

Assignment Operator.

Note
Not implemented

Member Data Documentation

DtOsgSceneConnector* makVrv::DtOsgTacticalSmokeModel::mySceneConnector
private
DtVector makVrv::DtOsgTacticalSmokeModel::myPosition
private
DtTaitBryan makVrv::DtOsgTacticalSmokeModel::myOrientation
private
bool makVrv::DtOsgTacticalSmokeModel::myPositionIsSet
private
bool makVrv::DtOsgTacticalSmokeModel::myOrientationIsSet
private
bool makVrv::DtOsgTacticalSmokeModel::myOrientUp
private

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

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)