VR-Forces 4.1.1 Class Documentation
List of all members | Classes | Public Member Functions | Protected Attributes | Private Types | Private Member Functions
makVrv::DtSmokePuffsDeadReckonUpdater Class Reference

DtSmokePuffsDeadReckonUpdater is an updater that is given updates for attributes of smoke (density, sigma, color) dead-reckons updates to a DtTacticalSmokeModel based on current simulation time. More...

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

Classes

struct  SmokeReckoners
 A structure for pairing dead-reckoning smothers for both density and sigmas. More...

Public Member Functions

 DtSmokePuffsDeadReckonUpdater (DtDe &de)
 CTOR.
virtual ~DtSmokePuffsDeadReckonUpdater ()
 Virtual DTOR.
virtual bool needsUpdate (DtTime tNow)
 Check if an update is required.
virtual void update (DtTime tNow)
 Update the model with the current data.
virtual void setModel (DtTacticalSmokeModel *model)
 Set the model to be updated.
virtual DtTacticalSmokeModelmodel ()
 Get the model being updated.
virtual const
DtTacticalSmokeModel
model () const
virtual void setDensity (int vtx, double dens)
 Set the current density.
virtual void setDensityRate (int vtx, double rate)
 Set the density rate of change.
virtual void setOneSigmas (int vtx, const DtVector &sigma)
 Set the current one-sigma distances.
virtual void setOneSigmaRates (int vtx, const DtVector &rate)
 Set the one-sigma distances rate of change.
virtual DtFixedSmootherdensityDeadReckoner (int vtx)
 Get the dead-reckoner for density at a given vertex.
virtual DtFixedSmoothersigmaDeadReckoner (int vtx)
 Get the dead-reckoner for density at a given vertex.
Slots
virtual void onModelAdded (DtModel *model)
 Slot to be notified when a model has been added.
virtual void onModelRemoved (DtModel *model)
 Slot to be notified when a model is being removed.

Protected Attributes

DtDemyDe
DtTacticalSmokeModelmySmokeModel
DtTime myLastUpdateTime
SmokePuffReckoners myReckoners
std::string myMotionModelType
DtDeadReckonTypes myDeadReckonTypes

Private Types

typedef std::vector
< SmokeReckoners * > 
SmokePuffReckoners

Private Member Functions

SmokeReckonersdeadReckoner (int vtx)
 Get the set of dead-reckoner objects a given vertex.
SmokeReckonerscreateSmokeReckoners (SmokeReckoners *other)
 Helper function to create and initialize a new dead-reckoner.
 DtSmokePuffsDeadReckonUpdater ()
 Default constructor.
 DtSmokePuffsDeadReckonUpdater (const DtSmokePuffsDeadReckonUpdater &)
 Copy constructor.
DtSmokePuffsDeadReckonUpdateroperator= (const DtSmokePuffsDeadReckonUpdater &)
 Assignment Operator.

Additional Inherited Members

- Protected Member Functions inherited from makVrv::DtTickable
 DtTickable (DtTickableManagerInterface *manager=NULL)
 CTOR.
virtual ~DtTickable ()
 Virtual DTOR.

Detailed Description

DtSmokePuffsDeadReckonUpdater is an updater that is given updates for attributes of smoke (density, sigma, color) dead-reckons updates to a DtTacticalSmokeModel based on current simulation time.

Member Typedef Documentation

Constructor & Destructor Documentation

makVrv::DtSmokePuffsDeadReckonUpdater::DtSmokePuffsDeadReckonUpdater ( DtDe de)

CTOR.

Parameters
[in]deis the display engine.
virtual makVrv::DtSmokePuffsDeadReckonUpdater::~DtSmokePuffsDeadReckonUpdater ( )
virtual

Virtual DTOR.

makVrv::DtSmokePuffsDeadReckonUpdater::DtSmokePuffsDeadReckonUpdater ( )
private

Default constructor.

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

Copy constructor.

Note
Not implemented

Member Function Documentation

virtual bool makVrv::DtSmokePuffsDeadReckonUpdater::needsUpdate ( DtTime  tNow)
virtual

Check if an update is required.

Parameters
[in]tNowis the current time-stamp.
Return values
trueif this object needs to be ticked.
falseotherwise.

Implements makVrv::DtTickable.

virtual void makVrv::DtSmokePuffsDeadReckonUpdater::update ( DtTime  tNow)
virtual

Update the model with the current data.

Parameters
[in]tNowis the current time-stamp.

Implements makVrv::DtTickable.

virtual void makVrv::DtSmokePuffsDeadReckonUpdater::setModel ( DtTacticalSmokeModel model)
virtual

Set the model to be updated.

Parameters
[in]modelis the tactical smoke model to be updated.
virtual DtTacticalSmokeModel* makVrv::DtSmokePuffsDeadReckonUpdater::model ( )
virtual

Get the model being updated.

Returns
The tactical smoke model being updated.
virtual const DtTacticalSmokeModel* makVrv::DtSmokePuffsDeadReckonUpdater::model ( ) const
virtual
virtual void makVrv::DtSmokePuffsDeadReckonUpdater::setDensity ( int  vtx,
double  dens 
)
virtual

Set the current density.

Parameters
[in]vtxis the vertex of the scene object.
[in]densis the density to set.
virtual void makVrv::DtSmokePuffsDeadReckonUpdater::setDensityRate ( int  vtx,
double  rate 
)
virtual

Set the density rate of change.

Parameters
[in]vtxis the vertex of the scene object.
[in]rateis the rate of change.
virtual void makVrv::DtSmokePuffsDeadReckonUpdater::setOneSigmas ( int  vtx,
const DtVector sigma 
)
virtual

Set the current one-sigma distances.

Parameters
[in]vtxis the vertex of the scene object.
[in]sigmais the one-sigma distances to set.
virtual void makVrv::DtSmokePuffsDeadReckonUpdater::setOneSigmaRates ( int  vtx,
const DtVector rate 
)
virtual

Set the one-sigma distances rate of change.

Parameters
[in]vtxis the vertex of the scene object.
[in]rateis the rate of change.
virtual DtFixedSmoother& makVrv::DtSmokePuffsDeadReckonUpdater::densityDeadReckoner ( int  vtx)
virtual

Get the dead-reckoner for density at a given vertex.

Parameters
[in]vtxis the vertex of the scene object.
Note
Calling this function will lazy create the dead-reckoner.
virtual DtFixedSmoother& makVrv::DtSmokePuffsDeadReckonUpdater::sigmaDeadReckoner ( int  vtx)
virtual

Get the dead-reckoner for density at a given vertex.

Parameters
[in]vtxis the vertex of the scene object.
Note
Calling this function will lazy create the dead-reckoner.
virtual void makVrv::DtSmokePuffsDeadReckonUpdater::onModelAdded ( DtModel model)
virtual

Slot to be notified when a model has been added.

This will set our model only if it has not been previously set.

Parameters
[in]modelis a pointer to a DtTacticalSmokeModel.
virtual void makVrv::DtSmokePuffsDeadReckonUpdater::onModelRemoved ( DtModel model)
virtual

Slot to be notified when a model is being removed.

Parameters
[in]modelis a pointer to a DtTacticalSmokeModel.
SmokeReckoners* makVrv::DtSmokePuffsDeadReckonUpdater::deadReckoner ( int  vtx)
private

Get the set of dead-reckoner objects a given vertex.

Parameters
[in]vtxis the vertex of the scene object.
Note
Calling this function will lazy create the dead-reckoner.
SmokeReckoners* makVrv::DtSmokePuffsDeadReckonUpdater::createSmokeReckoners ( SmokeReckoners other)
private

Helper function to create and initialize a new dead-reckoner.

with data from a previous dead-reckoner and current updater state.

Parameters
[in]otheris the is the object to copy from.
Returns
A newly created dead-reckoner or NULL on failure.
DtSmokePuffsDeadReckonUpdater& makVrv::DtSmokePuffsDeadReckonUpdater::operator= ( const DtSmokePuffsDeadReckonUpdater )
private

Assignment Operator.

Note
Not implemented

Member Data Documentation

DtDe& makVrv::DtSmokePuffsDeadReckonUpdater::myDe
protected
DtTacticalSmokeModel* makVrv::DtSmokePuffsDeadReckonUpdater::mySmokeModel
protected
DtTime makVrv::DtSmokePuffsDeadReckonUpdater::myLastUpdateTime
protected
SmokePuffReckoners makVrv::DtSmokePuffsDeadReckonUpdater::myReckoners
protected
std::string makVrv::DtSmokePuffsDeadReckonUpdater::myMotionModelType
protected
DtDeadReckonTypes makVrv::DtSmokePuffsDeadReckonUpdater::myDeadReckonTypes
protected

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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)