VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
makVrv::DtMultiPointSceneObjectUpdater Class Reference

Multi Point Scene Object Updater. More...

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

Public Member Functions

 DtMultiPointSceneObjectUpdater (DtDe &de, DtUniqueID id)
 CTOR.
virtual ~DtMultiPointSceneObjectUpdater ()
 Virtual DTOR.
virtual void update (DtTime tNow)
 The update function called by DtTickableManager during update-ticks.
virtual void setInputPositions (const std::vector< DtVector > &positions)
 Set the positions input to this updater.
virtual void setOutputPositions (const std::vector< DtVector > &positions)
 Output the resultant positions.
- Public Member Functions inherited from makVrv::DtSceneObjectUpdater
 DtSceneObjectUpdater (DtDe &de, DtUniqueID id)
 CTOR.
virtual ~DtSceneObjectUpdater ()
 Virtual DTOR.
virtual void setNextUpdater (DtSceneObjectUpdater *nextUpdater)
 Set the next updater in the updater chain.
virtual void setPrevUpdater (DtSceneObjectUpdater *prevUpdater)
 Set the previous updater in the updater chain.
virtual bool needsUpdate (DtTime tNow)
 The check function called by DtTickableManager to verify if an update is required.
virtual void setVertexToUpdate (unsigned int vertex)
 Specify which vertex in the scene object this updater updates.
virtual void setInputPosition (const DtVector &position)
 Set the position input to this updater.
virtual void setInputOrientation (const DtTaitBryan &orientation)
 Set the orientation input to this updater.
virtual void setOutputPosition (const DtVector &position)
 Output the resultant position.
virtual void setOutputOrientation (const DtTaitBryan &orientation)
 Output the resultant orientation.
virtual DtTime lastUpdateTime () const
 Get the time-stamp of the last update.
virtual void setSceneObject (DtSceneObject *sceneObject)
 Set the scene object to be updated.
DtUniqueID uniqueId () const
 Returns the distributed object id of this updater.
DtSceneObjectUpdaterfindNextUpdater () const
 Return the next updater in the updater chain.
DtSceneObjectUpdaterfindPrevUpdater () const
 Return the previous updater in the updater chain.
DtSceneObjectfindSceneObject ()
 Get the current scene object for this updater.
DtSceneObject *const findSceneObject () const
 const correct version
- Public Member Functions inherited from makVrv::DtTickable
virtual ~DtTickable ()
 Virtual DTOR.
virtual void setUpdatePeriod (unsigned int period)
 Specify how often (in # of frames) this tickable should call update.
virtual unsigned int updatePeriod () const
 Specify how often (in # of frames) this tickable should call update.

Protected Attributes

std::vector< DtVectormyInputPositions
 Input positions.
- Protected Attributes inherited from makVrv::DtSceneObjectUpdater
DtDemyDe
 The display engine.
DtUniqueID myUniqueId
 This distributed object's unique identifier.
DtSceneObjectmySceneObject
 A pointer to the current scene object being updated.
DtTime myLastUpdateTime
 The last time stamp when the update()
DtSceneObjectUpdatermyNextUpdater
 The next updater in the chain (or NULL)
DtSceneObjectUpdatermyPrevUpdater
 The previous updater in the chain (or NULL)
unsigned int myVertexToUpdate
 The default scene object vertex to update.
DtVector myInputPosition
 Input position.
DtTaitBryan myInputOrientation
 Input Orientation.
bool myPositionDataOutputted
 Flag to indicate if setOutputPosition has been called this tick.
bool myOrientationDataOutputted
 Flag to indicate if setOutputOrientation has been called this tick.
- Protected Attributes inherited from makVrv::DtTickable
DtTickableManagerInterfacemyManager
 Pointer to manager for removal during destruction.
DtSignalConnectionManager myConnections
unsigned int myFrameCounter
unsigned int myFrameToUpdate
unsigned int myUpdatePeriod

Additional Inherited Members

- Public Attributes inherited from makVrv::DtSceneObjectUpdater
boost::signal< void(const
DtUniqueID &) > 
signal_updaterToBeDeleted
- Protected Member Functions inherited from makVrv::DtSceneObjectUpdater
virtual void slot_sceneObjectToBeDeleted (const DtUniqueID &id)

Detailed Description

Multi Point Scene Object Updater.

DtMultiPointSceneObjectUpdater is a distributed object managed by DtTickableManager. It provides an API and infrastructure used by deriving objects to update the positions of multi point scene objects in render space. DtMultiPointSceneObjectUpdaters may be chained together in a list to perform multiple position and/or orientation transformations. For example, one updater might dead reckon position and orientation based on kinematic info, the next in the chain could ground clamp the object. A third might adjust the ground clamped position to support terrain scaling.

Constructor & Destructor Documentation

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

CTOR.

Parameters
[in]deis the display engine.
[in]idis a unique identifier for this distributed object.
virtual makVrv::DtMultiPointSceneObjectUpdater::~DtMultiPointSceneObjectUpdater ( )
virtual

Virtual DTOR.

Member Function Documentation

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

The update function called by DtTickableManager during update-ticks.

Parameters
[in]tNowis the current time-stamp.
Note
All classes deriving from DtMultiPointSceneObjectUpdater must call DtMultiPointSceneObjectUpdater::update() AFTER their own update completes for chaining (and pass-thru) to work correctly.

Reimplemented from makVrv::DtSceneObjectUpdater.

Reimplemented in makVrv::DtMultiPointEmbarkationUpdater.

virtual void makVrv::DtMultiPointSceneObjectUpdater::setInputPositions ( const std::vector< DtVector > &  positions)
virtual

Set the positions input to this updater.

Parameters
[in]positionsis the position to use.

Reimplemented in makVrv::DtMultiPointEmbarkationUpdater.

virtual void makVrv::DtMultiPointSceneObjectUpdater::setOutputPositions ( const std::vector< DtVector > &  positions)
virtual

Output the resultant positions.

If there is a next updater, this will call that updater's setInputPositions with the result. Otherwise the result will be provided to the specified scene object

Parameters
[in]positionis the position to set.

Reimplemented in makVrf::DtVrfMultiPointEmbarkationUpdater.

Member Data Documentation

std::vector<DtVector> makVrv::DtMultiPointSceneObjectUpdater::myInputPositions
protected

Input positions.


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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)