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

DtSurfaceClampingUpdater is an updater that is given a position and orientation, and will clamp those to dynamic ocean if it exists and the scene object is currently at sea level (or below). More...

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

Public Member Functions

 DtSurfaceClampingUpdater (DtDe &de, DtUniqueID id)
 CTOR.
virtual ~DtSurfaceClampingUpdater ()
 DTOR.
virtual void setGroundClampingUpdater (DtGroundClampingUpdater *gndUpdater)
 Set the ground clamping updater to be used when the object to update is not on water.
virtual DtGroundClampingUpdaterfindGroundClampingUpdater () const
 Get the ground clamping updater used when the object to update is not on water.
virtual void setWaterClampingUpdater (DtWaterClampingUpdater *waterUpdater)
 Set the water clamping updater to be used when the object to update is on water.
virtual DtWaterClampingUpdaterfindWaterClampingUpdater () const
 Get the water clamping updater used when the object to update is on water.
virtual void update (DtTime tNow)
 Calls doGroundClamp()
virtual void setVertexToUpdate (unsigned int vertex)
 Specify which vertex in the scene object this updater updates.
virtual void setNextUpdater (DtSceneObjectUpdater *nextUpdater)
 Set the next updater in the updater chain.
virtual void setSceneObject (DtSceneObject *sceneObject)
 Set the scene object to be updated.
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 setPaused (bool isPaused)
 Pause surface clamping.
virtual void setIsAmphibious (bool isAmphibious)
 Set whether the object being updated needs to check for ocean and use the water clamping updater if it is.
virtual void setIsSinking (bool isSinking)
 Set whether a buoyant object is currently sinking.
virtual DtOverWaterUpdatercreateOverWaterUpdater ()
 Create an instance of a DtOverWaterUpdater that will be used to determine when an amphibous entity needs a buoyancy updater.
virtual unsigned int landCheckInterval () const
 Get/set the interval at which the updater checks to see if it is over land or water.
virtual void setLandCheckInterval (unsigned int frames)
- Public Member Functions inherited from makVrv::DtSceneObjectUpdater
 DtSceneObjectUpdater (DtDe &de, DtUniqueID id)
 CTOR.
virtual ~DtSceneObjectUpdater ()
 Virtual DTOR.
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 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.
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

Protected Member Functions

virtual bool haveOcean () const
- Protected Member Functions inherited from makVrv::DtSceneObjectUpdater
virtual void slot_sceneObjectToBeDeleted (const DtUniqueID &id)
- Protected Member Functions inherited from makVrv::DtTickable
 DtTickable (DtTickableManagerInterface *manager)
 CTOR.
 DtTickable ()
 Unimplemented default CTOR.
virtual void slot_managerAboutToBeDeleted ()

Protected Attributes

DtGroundClampingUpdatermyGroundClampingUpdater
DtWaterClampingUpdatermyWaterClampingUpdater
DtDynamicOceanObjectManagermyDynamicOceanObjectManager
double myLastLandCheckTime
bool myIsOnWater
bool myIsSinking
DtOverWaterUpdatermyOverWaterUpdater
unsigned int myLandCheckInterval
- 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.
boost::signalslib::connection mySceneObjectConnection
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

Detailed Description

DtSurfaceClampingUpdater is an updater that is given a position and orientation, and will clamp those to dynamic ocean if it exists and the scene object is currently at sea level (or below).

If not clamped to water, the scene object may be clamped to the underlying terrain, depending on how it is configured.

Constructor & Destructor Documentation

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

CTOR.

virtual makVrv::DtSurfaceClampingUpdater::~DtSurfaceClampingUpdater ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtSurfaceClampingUpdater::setGroundClampingUpdater ( DtGroundClampingUpdater gndUpdater)
virtual

Set the ground clamping updater to be used when the object to update is not on water.

virtual DtGroundClampingUpdater* makVrv::DtSurfaceClampingUpdater::findGroundClampingUpdater ( ) const
virtual

Get the ground clamping updater used when the object to update is not on water.

virtual void makVrv::DtSurfaceClampingUpdater::setWaterClampingUpdater ( DtWaterClampingUpdater waterUpdater)
virtual

Set the water clamping updater to be used when the object to update is on water.

virtual DtWaterClampingUpdater* makVrv::DtSurfaceClampingUpdater::findWaterClampingUpdater ( ) const
virtual

Get the water clamping updater used when the object to update is on water.

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

Calls doGroundClamp()

Reimplemented from makVrv::DtSceneObjectUpdater.

virtual void makVrv::DtSurfaceClampingUpdater::setVertexToUpdate ( unsigned int  vertex)
virtual

Specify which vertex in the scene object this updater updates.

Reimplemented from makVrv::DtSceneObjectUpdater.

virtual void makVrv::DtSurfaceClampingUpdater::setNextUpdater ( DtSceneObjectUpdater nextUpdater)
virtual

Set the next updater in the updater chain.

Reimplemented from makVrv::DtSceneObjectUpdater.

virtual void makVrv::DtSurfaceClampingUpdater::setSceneObject ( DtSceneObject sceneObject)
virtual

Set the scene object to be updated.

Parameters
[in]sceneObjectis the scene object to receive updates.

Reimplemented from makVrv::DtSceneObjectUpdater.

virtual void makVrv::DtSurfaceClampingUpdater::setInputPosition ( const DtVector position)
virtual

Set the position input to this updater.

Reimplemented from makVrv::DtSceneObjectUpdater.

virtual void makVrv::DtSurfaceClampingUpdater::setInputOrientation ( const DtTaitBryan &  orientation)
virtual

Set the orientation input to this updater.

Reimplemented from makVrv::DtSceneObjectUpdater.

virtual void makVrv::DtSurfaceClampingUpdater::setPaused ( bool  isPaused)
virtual

Pause surface clamping.

virtual void makVrv::DtSurfaceClampingUpdater::setIsAmphibious ( bool  isAmphibious)
virtual

Set whether the object being updated needs to check for ocean and use the water clamping updater if it is.

virtual void makVrv::DtSurfaceClampingUpdater::setIsSinking ( bool  isSinking)
virtual

Set whether a buoyant object is currently sinking.

virtual unsigned int makVrv::DtSurfaceClampingUpdater::landCheckInterval ( ) const
virtual

Get/set the interval at which the updater checks to see if it is over land or water.

virtual void makVrv::DtSurfaceClampingUpdater::setLandCheckInterval ( unsigned int  frames)
virtual
virtual DtOverWaterUpdater* makVrv::DtSurfaceClampingUpdater::createOverWaterUpdater ( )
virtual

Create an instance of a DtOverWaterUpdater that will be used to determine when an amphibous entity needs a buoyancy updater.

virtual bool makVrv::DtSurfaceClampingUpdater::haveOcean ( ) const
protectedvirtual

Member Data Documentation

DtGroundClampingUpdater* makVrv::DtSurfaceClampingUpdater::myGroundClampingUpdater
protected
DtWaterClampingUpdater* makVrv::DtSurfaceClampingUpdater::myWaterClampingUpdater
protected
DtDynamicOceanObjectManager& makVrv::DtSurfaceClampingUpdater::myDynamicOceanObjectManager
protected
double makVrv::DtSurfaceClampingUpdater::myLastLandCheckTime
protected
bool makVrv::DtSurfaceClampingUpdater::myIsOnWater
protected
bool makVrv::DtSurfaceClampingUpdater::myIsSinking
protected
DtOverWaterUpdater* makVrv::DtSurfaceClampingUpdater::myOverWaterUpdater
protected
unsigned int makVrv::DtSurfaceClampingUpdater::myLandCheckInterval
protected

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

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)