![]() |
VR-Forces 5.0.1 Developer's Guide
|
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.

Public Member Functions | |
| DtVertexUpdater (DtDe &de, DtUniqueID id) | |
| virtual | ~DtVertexUpdater () |
| virtual void | update (DtTime tNow) |
| virtual void | addPoint (int index, DtSceneObject *) |
| virtual void | removePoint (int index) |
Public Member Functions inherited from makVrv::DtSceneObjectUpdater | |
| DtSceneObjectUpdater (DtDe &de, DtUniqueID id) | |
| virtual | ~DtSceneObjectUpdater () |
| virtual void | setNextUpdater (DtSceneObjectUpdater *nextUpdater) |
| virtual void | setPrevUpdater (DtSceneObjectUpdater *prevUpdater) |
| virtual bool | needsUpdate (DtTime tNow) |
| virtual void | updateAdaptiveTickrate (const DtVector &lastPos, const DtTime &deltaTime) |
| virtual void | setVertexToUpdate (unsigned int vertex) |
| virtual void | setInputPosition (const DtVector &position) |
| virtual void | setInputOrientation (const DtTaitBryan &orientation) |
| virtual void | setOutputPosition (const DtVector &position) |
| virtual void | setOutputOrientation (const DtTaitBryan &orientation) |
| virtual void | setOutputPositionAndOrientation (const DtVector &position, const DtTaitBryan &orientation) |
| virtual DtTime | lastUpdateTime () const |
| virtual void | setSceneObject (DtSceneObject *sceneObject, bool addToTickableMgrIfHead) |
| virtual void | setSceneObject (DtSceneObject *sceneObject) |
| virtual void | setLodSystemEnabled (bool enabled) |
| virtual bool | lodSystemEnabled () const |
| virtual void | setLodScaleSpeedFactor (float factor) |
| virtual float | lodScaleSpeedFactor () const |
| virtual void | setLodRadiusStart (float ratius) |
| virtual float | lodRadiusStart () const |
| virtual void | setLodRadiusEnd (float ratius) |
| virtual float | lodRadiusEnd () const |
| virtual void | setNearLodUpdateRate (int nearRate) |
| virtual int | nearLodUpdateRate () const |
| virtual void | setFarLodUpdateRate (int maxRate) |
| virtual int | farLodUpdateRate () const |
| DtUniqueID | uniqueId () const |
| DtSceneObjectUpdater * | findNextUpdater () const |
| DtSceneObjectUpdater * | findPrevUpdater () const |
| virtual bool | isChainThreadSafe (DtSceneObjectUpdater *firstUpdater) |
| virtual DtSceneObjectUpdater * | chainHead () |
| virtual void | setIsThreadSafe (bool safe) |
| DtSceneObject * | findSceneObject () |
| DtSceneObject *const | findSceneObject () const |
Public Member Functions inherited from makVrv::DtTickable | |
| virtual bool | updateIfNeeded (DtTime tNow) |
| virtual | ~DtTickable () |
| virtual bool | isThreadSafe () const |
| virtual void | setTickableListState (TickableListState safeList) |
| virtual TickableListState | tickableListState () const |
| virtual void | setUpdatePeriod (unsigned int period) |
| virtual unsigned int | updatePeriod () const |
Protected Member Functions | |
| virtual void | slot_pointObjectToBeDeleted (const DtUniqueID &id) |
Protected Member Functions inherited from makVrv::DtSceneObjectUpdater | |
| virtual void | removeThreadSafeChainFromManager (DtSceneObjectUpdater *head) |
| virtual void | removeUnThreadSafeChainFromManager (DtSceneObjectUpdater *head) |
| virtual void | addThreadSafeChainToManager (DtSceneObjectUpdater *head) |
| virtual void | addUnThreadSafeChainToManager (DtSceneObjectUpdater *head) |
| virtual void | placeChainOnCorrectTickableList (DtSceneObjectUpdater *head) |
| virtual void | slot_sceneObjectToBeDeleted (const DtUniqueID &id) |
Protected Member Functions inherited from makVrv::DtTickable | |
| DtTickable (DtTickableManagerInterface *manager) | |
| DtTickable () | |
| virtual void | slot_managerAboutToBeDeleted () |
Protected Attributes | |
| std::vector< DtSceneObject * > | myPoints |
| std::vector < boost::signalslib::connection > | mySceneObjectConnections |
Protected Attributes inherited from makVrv::DtSceneObjectUpdater | |
| DtDe & | myDe |
| DtUniqueID | myUniqueId |
| DtSceneObject * | mySceneObject |
| int | myModelSet |
| boost::signalslib::connection | mySceneObjectConnection |
| DtSceneObjectUpdater * | myNextUpdater |
| DtSceneObjectUpdater * | myPrevUpdater |
| unsigned int | myVertexToUpdate |
| DtVector | myInputPosition |
| DtTaitBryan | myInputOrientation |
| bool | myPositionDataOutputted |
| bool | myOrientationDataOutputted |
| UpdateLODParams | myLodUpdateParams |
Protected Attributes inherited from makVrv::DtTickable | |
| DtTickableManagerInterface * | myManager |
| DtSignalConnectionManager | myConnections |
| unsigned int | myFrameCounter |
| unsigned int | myFrameToUpdate |
| unsigned int | myUpdatePeriod |
| DtTime | myLastUpdateTime |
| bool | myIsThreadSafe |
| TickableListState | myTickableListState |
Additional Inherited Members | |
Public Types inherited from makVrv::DtTickable | |
| enum | TickableListState { TickableNotOnList, TickableOnMainList, TickableOnThreadSafeList } |
Public Attributes inherited from makVrv::DtSceneObjectUpdater | |
| boost::signalslib::signal < void(const DtUniqueID &) > | signal_updaterToBeDeleted |
| makVrv::DtVertexUpdater::DtVertexUpdater | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
| [in] | de | is the display engine. |
| [in] | id | is a unique identifier for this distributed object. |
|
virtual |
Virtual DTOR.
|
virtual |
The update function called by DtTickableManager during update-ticks.
| [in] | tNow | is the current time-stamp. |
Reimplemented from makVrv::DtSceneObjectUpdater.
|
virtual |
Adds a new point to move at the specified index.
| [in] | position | index. If -1 adds to the end |
| [in] | scene | object of the point to position |
|
virtual |
Removes a point at the given index.
| [in] | position | index |
|
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.
|
protected |
|
protected |