![]() |
VR-Forces 4.7 Class Documentation
|
Abstract rotorWash object updater interface. More...

Classes | |
| class | DynamicTerrainItem |
| Local class used only by DtDynamicTerrainObject for representing geometry and data. More... | |
Public Member Functions | |
| DtDynamicTerrainObject (DtDe &de, DtUniqueID id) | |
| CTOR. | |
| DtDynamicTerrainObject (const DtDynamicTerrainObject ©) | |
| DtDynamicTerrainObject & | operator= (const DtDynamicTerrainObject ©) |
| virtual | ~DtDynamicTerrainObject () |
| Virtual DTOR. | |
| virtual void | update (DtTime tNow) |
| The update function called by DtTickableManager during update-ticks. | |
| virtual bool | needsUpdate (DtTime tNow) |
| The needsUpdate function called by DtTickableManager to verify if an update is required. | |
| DtUniqueID | uniqueId () const |
| Returns the distributed object id of this object. | |
| virtual void | addGeometry (int index, const DtVector &location, double radius, double priority) |
| Distributed Interface. | |
| virtual void | changeGeometry (int index, const DtVector &location, double radius, double priority) |
| Change the geometry in the specified slot. | |
| virtual void | clearData (int index) |
| Clear the data associated with the geometry at the specified index. | |
| virtual void | addData (int index, const std::string &key, const std::string &value, double priority) |
| Add a data pair the the specified geometry. | |
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 Types | |
| typedef std::vector < DynamicTerrainItem * > | DynamicTerrainVector |
| Type definition for a vector of DynamicTerrainItems. | |
| typedef std::list< int > | DirtyList |
Protected Member Functions | |
| virtual void | makeDirty (DynamicTerrainItem *item, int index) |
| Helper functions. | |
| virtual DynamicTerrainItem * | getDynamicTerrainItem (int index) |
| Get the dynamic terrain item at ths specified index if it exists. | |
Protected Member Functions inherited from makVrv::DtTickable | |
| DtTickable (DtTickableManagerInterface *manager) | |
| CTOR. | |
| DtTickable () | |
| Unimplemented default CTOR. | |
| virtual void | slot_managerAboutToBeDeleted () |
Protected Attributes | |
| DtDe & | myDe |
| The display engine. | |
| DtUniqueID | myUniqueId |
| This distributed object's unique identifier. | |
| DynamicTerrainVector | myDynamicTerrainVector |
| DirtyList | myDirtyList |
Protected Attributes inherited from makVrv::DtTickable | |
| DtTickableManagerInterface * | myManager |
| Pointer to manager for removal during destruction. | |
| DtSignalConnectionManager | myConnections |
| unsigned int | myFrameCounter |
| unsigned int | myFrameToUpdate |
| unsigned int | myUpdatePeriod |
Private Member Functions | |
| DtDynamicTerrainObject () | |
| No default CTOR. | |
Abstract rotorWash object updater interface.
DtDynamicTerrainObjects are distributed objects, managed by DtTickableManager. They generate Dynamic Terrain World change requests (and removals) based on changes
|
protected |
Type definition for a vector of DynamicTerrainItems.
|
protected |
| makVrv::DtDynamicTerrainObject::DtDynamicTerrainObject | ( | DtDe & | de, |
| DtUniqueID | id | ||
| ) |
CTOR.
| [in] | de | is the display engine. |
| [in] | id | is a unique identifier for this distributed object. |
| makVrv::DtDynamicTerrainObject::DtDynamicTerrainObject | ( | const DtDynamicTerrainObject & | copy | ) |
|
private |
No default CTOR.
|
virtual |
Virtual DTOR.
| DtDynamicTerrainObject& makVrv::DtDynamicTerrainObject::operator= | ( | const DtDynamicTerrainObject & | copy | ) |
|
virtual |
The update function called by DtTickableManager during update-ticks.
| [in] | tNow | is the current time-stamp. |
Implements makVrv::DtTickable.
The needsUpdate function called by DtTickableManager to verify if an update is required.
If this function returns true, the DtTickableManager will then call update().
| [in] | tNow | is the current time-stamp. |
| true | if this object needs to be ticked. |
| false | otherwise. The base class checks handles period checks (for tickables that don't tick every frame. This derived version calls down to the base class and if true, checks the size of the DirtyList; returns true if their are items on the DirtyList |
Reimplemented from makVrv::DtTickable.
|
inline |
Returns the distributed object id of this object.
|
virtual |
Distributed Interface.
The class maintains a vector of geometries and associated data. By definition, once added, a geometry never goes away. This results in a DynamicTerrainItem being created and added to our DynamicTerrainVector. If the geometry already exists, this just calls change geometry
|
virtual |
Change the geometry in the specified slot.
|
virtual |
Clear the data associated with the geometry at the specified index.
|
virtual |
Add a data pair the the specified geometry.
|
protectedvirtual |
Helper functions.
Check to see if the item is already on the DirtyList; if not, put it there, otherwise do nothing
|
protectedvirtual |
Get the dynamic terrain item at ths specified index if it exists.
Generates a warning and returns 0 if it does not.
|
protected |
The display engine.
|
protected |
This distributed object's unique identifier.
|
protected |
|
protected |