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 Member Functions | Protected Attributes
makVrv::DtVertexUpdater Class Reference

Vertex Updater. More...

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

Public Member Functions

 DtVertexUpdater (DtDe &de, DtUniqueID id)
 CTOR.
virtual ~DtVertexUpdater ()
 Virtual DTOR.
virtual void update (DtTime tNow)
 The update function called by DtTickableManager during update-ticks.
virtual void addPoint (int index, DtSceneObject *)
 Adds a new point to move at the specified index.
virtual void removePoint (int index)
 Removes a point at the given index.
- 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 Member Functions

virtual void slot_pointObjectToBeDeleted (const DtUniqueID &id)
 Called when point scene object is deleted, see if this object is one that is under this objects point list.
- 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

std::vector< DtSceneObject * > myPoints
- 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

Detailed Description

Vertex Updater.

The DtVertexUpdater class is the glue between a multi-point object and the vertices that are used for visualizion on that multi-point object. The scene object that is part of this class is not in and of itself updated, however, it is inspected for the points in that scene object, and, using those points, updates a scene object "point" that is used on screen to visualize that vertex. The DtEnvironmentalVertexVisualizer class uses this class to tie the vertices it creates (DtEnvironmentalPointKinStateVisualizers) to the multi-point object that is used to position those vertices. This class is used when a multi-point object is attached to another object. As the multi-point object is updated when the object it is attached to moves, this updater sees those changes and applies them to the scene object points that are associated with this class. There will be one vertex added for each point in the scene object associated with this updater.

Constructor & Destructor Documentation

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

CTOR.

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

Virtual DTOR.

Member Function Documentation

virtual void makVrv::DtVertexUpdater::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 DtVertexUpdater::update() AFTER their own update completes for chaining (and pass-thru) to work correctly.

Reimplemented from makVrv::DtSceneObjectUpdater.

virtual void makVrv::DtVertexUpdater::addPoint ( int  index,
DtSceneObject  
)
virtual

Adds a new point to move at the specified index.

Parameters
[in]positionindex. If -1 adds to the end
[in]sceneobject of the point to position
virtual void makVrv::DtVertexUpdater::removePoint ( int  index)
virtual

Removes a point at the given index.

Parameters
[in]positionindex
virtual void makVrv::DtVertexUpdater::slot_pointObjectToBeDeleted ( const DtUniqueID id)
protectedvirtual

Called when point scene object is deleted, see if this object is one that is under this objects point list.

If it is, remove

Member Data Documentation

std::vector<DtSceneObject*> makVrv::DtVertexUpdater::myPoints
protected

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)