VR-Forces 4.0.4 Class Documentation
Public Member Functions | Public Attributes | Protected Attributes | Friends
makVrv::DtUpdater Class Reference

Abstract scene object updater interface. More...

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

List of all members.

Public Member Functions

 DtUpdater (DtDe &de, DtUniqueID id, bool doNotAddToMgr=false)
 CTOR.
virtual ~DtUpdater ()
 DTOR.
void updateIfNecessary (double simTime)
 Small utility function for updating only when necessary.
virtual void update (double simTime)=0
 Called by the DtUpdaterManager on post update signal; tells the updater to update its scene object.
virtual void setSceneObject (DtSceneObject *sceneObject)
 sets the scene object to update via the id.
DtSceneObjectfindSceneObject ()
 Get the scene object this updater is updating if it was set.
double lastUpdateTime () const
 The sim time that this updater has updated its scene obejct to.
DtUniqueID uniqueId () const
 Returns the distributed object id of this updater.
virtual void setUpdaterPosition (int vtx, const DtVector &position)
 Set the position of a scene object vertex.
virtual const DtVectorupdaterPosition (int vtx) const
 Get the position of a scene object vertex.
virtual void setUpdaterOrientation (int vtx, const DtTaitBryan &orientation)
 Set the orientation of a scene object vertex.
virtual const DtTaitBryan & updaterOrientation (int vtx) const
 Get the orientation of a scene object vertex.
void updateSceneObject ()
 push the results to the scene object. Called by update()
bool inManager () const
 Is the Updater in the manager.
virtual void terrainScaleTransformsIfNeeded ()

Public Attributes

boost::signal< void(const
DtUniqueID &) > 
signal_updaterToBeDeleted

Protected Attributes

DtDemyDe
DtUniqueID myUniqueId
DtSceneObjectmySceneObject
double myLastUpdateTime
DtSceneObject::TransformList myTransforms
bool myInManager
const DtDeSharedStatemyDeSharedState

Friends

class DtUpdaterManager

Detailed Description

Abstract scene object updater interface.

DtUpdaters are distributed objects, managed by DtUpdaterManager; they update the position and orientation of scene objects


Constructor & Destructor Documentation

makVrv::DtUpdater::DtUpdater ( DtDe de,
DtUniqueID  id,
bool  doNotAddToMgr = false 
)

CTOR.

virtual makVrv::DtUpdater::~DtUpdater ( ) [virtual]

DTOR.


Member Function Documentation

void makVrv::DtUpdater::updateIfNecessary ( double  simTime) [inline]

Small utility function for updating only when necessary.

virtual void makVrv::DtUpdater::update ( double  simTime) [pure virtual]
virtual void makVrv::DtUpdater::setSceneObject ( DtSceneObject sceneObject) [virtual]

Get the scene object this updater is updating if it was set.

double makVrv::DtUpdater::lastUpdateTime ( ) const [inline]

The sim time that this updater has updated its scene obejct to.

Returns the distributed object id of this updater.

virtual void makVrv::DtUpdater::setUpdaterPosition ( int  vtx,
const DtVector position 
) [virtual]

Set the position of a scene object vertex.

virtual const DtVector& makVrv::DtUpdater::updaterPosition ( int  vtx) const [virtual]

Get the position of a scene object vertex.

virtual void makVrv::DtUpdater::setUpdaterOrientation ( int  vtx,
const DtTaitBryan &  orientation 
) [virtual]

Set the orientation of a scene object vertex.

virtual const DtTaitBryan& makVrv::DtUpdater::updaterOrientation ( int  vtx) const [virtual]

Get the orientation of a scene object vertex.

Is the Updater in the manager.


Friends And Related Function Documentation

friend class DtUpdaterManager [friend]

Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)