![]() |
VR-Forces Developer's Guide
|
Udpater that will update the sensor contact lines and positions for entities sensor contacts. The entity is defined by the ID of the supplied scene object.

Classes | |
| struct | Object |
Public Member Functions | |
| DtSensorContactLinesUpdater (makVrv::DtDe &de, makVrv::DtUniqueID id) | |
| virtual | ~DtSensorContactLinesUpdater () |
| virtual void | update (DtTime tNow) |
| virtual void | setSceneObject (makVrv::DtSceneObject *sceneObject) |
| virtual void | setSensorContactLinesModel (DtSensorContactLinesModel *) |
| virtual void | setEnabled (bool) |
Public Member Functions inherited from makVrv::DtTickable | |
| virtual bool | updateIfNeeded (DtTime tNow) |
| virtual | ~DtTickable () |
| virtual void | setTickableEnabled (bool enabled) |
| virtual void | setIsThreadSafe (bool safe) |
| virtual bool | isThreadSafe () const |
| virtual void | setTickableListState (TickableListState safeList) |
| virtual TickableListState | tickableListState () const |
| virtual void | setUpdatePeriod (unsigned int period) |
| virtual unsigned int | updatePeriod () const |
| virtual bool | adaptiveTickLodEnabled () const |
Protected Types | |
| typedef std::map < makVrv::DtUniqueID, Object > | SensorContacts |
Protected Member Functions | |
| virtual bool | needsUpdate (DtTime tNow) |
| virtual void | slot_sceneObjectToBeDeleted (const makVrv::DtUniqueID &id) |
| virtual void | slot_contactInfoReceived (DtUUID, const DtVrfSensorInfoManager::DtSensorInformationMap &) |
| virtual void | slot_sensorContactLinesModelToBeDestroyed (makVrv::DtModel *) |
| virtual void | addSensorContact (makVrv::DtUniqueID) |
| virtual void | slot_sensorContactToBeDeleted (const makVrv::DtUniqueID &id) |
| virtual void | connectSceneObject () |
| virtual void | clearSensorContacts (SensorContacts &) |
| virtual bool | findSpotReportFor (Object &) |
Protected Member Functions inherited from makVrv::DtTickable | |
| DtTickable (DtTickableManagerInterface *manager) | |
| DtTickable ()=delete | |
| virtual void | slot_managerAboutToBeDeleted () |
Protected Attributes | |
| SensorContacts | mySensorContacts |
| makVrv::DtSceneObject * | mySceneObject |
| DtSensorContactLinesModel * | mySensorContactLinesModel |
| bool | myEnabled |
| makVrv::DtDe & | myDe |
| makVrv::DtUniqueID | myUniqueId |
| bool | myPendingConnection |
| DtVector | myLastPosition |
| boost::signals2::connection | mySceneObjectConnection |
| boost::signals2::connection | myModelToBeDestroyedConnection |
Protected Attributes inherited from makVrv::DtTickable | |
| DtTickableManagerInterface * | myManager |
| DtSignalConnectionManager | myConnections |
| unsigned int | myFrameCounter |
| unsigned int | myFrameToUpdate |
| unsigned int | myUpdatePeriod |
| unsigned int | myTickableIndex |
| DtTime | myLastUpdateTime |
| bool | myIsThreadSafe |
| TickableListState | myTickableListState |
Additional Inherited Members | |
Public Types inherited from makVrv::DtTickable | |
| enum | TickableListState { TickableNotOnList, TickableOnMainList, TickableOnThreadSafeList } |
|
protected |
| makVrf::DtSensorContactLinesUpdater::DtSensorContactLinesUpdater | ( | makVrv::DtDe & | de, |
| makVrv::DtUniqueID | id | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
The update function called by DtTickableManager during update-ticks.
| [in] | tNow | is the current time-stamp. |
Implements makVrv::DtTickable.
|
virtual |
Set the scene object that is representative of the entity that is doing the sensing.
|
virtual |
Set the model that will contain all the sensor contact lines.
|
virtual |
Whether or not this class should be updating.
The check 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. Deriving methods can incorporate that capability by calling down to the base class first. |
Reimplemented from makVrv::DtTickable.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
When the class is destructed, the scene object may or may not
exist. Using a separate connection variable makes it possible to 'disconnect' even if the scene object has been deleted.
|
protected |