![]() |
VR-Forces 5.0.1 Developer's Guide
|
This driver illustrates the use of state views to access sim data. When the DtAttachManager emits its attachment changed signal, the DtStateViewDriver will get a state view onto the currently attached entity and print out some information from the sim state at a 1hz update rate.

Protected Member Functions | |
| virtual bool | onStart () |
| virtual bool | onStop () |
| virtual void | slot_displayEngineAdded (const DtDeRecord &igRecord) |
| virtual bool | onTick () |
| virtual void | handleAttachToChanged (DtObserver *observer) |
| DtSimEntry * | findSimEntry (DtUniqueID elementId) |
| void | disableCurrentStateView () |
| virtual void | slot_stateViewUpdated (DtVrlinkEntityStateView *stateView) |
| virtual void | slot_simObjectRemoved (DtSimObjectEntry &) |
Protected Member Functions inherited from makVrv::DtDriver | |
| void | applyChangesAndDelete (DtElementChanges *changes) |
| void | reportElementCreated (DtElementID id, DtElementID parentId, DtElementEntry::ElementType type) |
| void | reportElementAttribute (DtElementID id, DtElementAttribute *attribute) |
| void | reportElementDestroyed (DtElementID id) |
| void | start () |
| void | stop () |
| bool | tick () |
| virtual void | setInstanceName (const std::string &name) |
| virtual void | installAccessories () |
| virtual void | uninstallAccessories () |
Protected Attributes | |
| DtVrlinkEntityStateView * | myStateView |
Protected Attributes inherited from makVrv::DtDriver | |
| DtAgentManager & | myAgentManager |
| bool | myStartedFlag |
| std::string | myName |
| DtConfiguration | myConfiguration |
| bool | myPersistentFlag |
| bool | myUserControllableFlag |
| bool | myRequestStateDiffPendingFlag |
| DtElementChanges | myChanges |
| DtStateViewDriver::DtStateViewDriver | ( | DtAgentManager & | agentManager, |
| const std::string & | instanceName | ||
| ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Get the class name as a string.
Implements makVrv::DtDriver.
|
protectedvirtual |
When late-joining display engines are connected to the master display engine, all drivers are stopped and restarted. It is critical to implement these methods correctly to make late-joining display engines work correctly.
Called when the driver is started by the display engine Restores state that existed the last time the driver was stopped
Implements makVrv::DtDriver.
|
protectedvirtual |
Called when the driver is stopped by the display engine.
Implements makVrv::DtDriver.
|
protectedvirtual |
Called when a display engine is connected; restarts the driver.
Reimplemented from makVrv::DtDriver.
|
protectedvirtual |
Stub implementation since this driver doesn't have anything that needs updating.
Implements makVrv::DtDriver.
|
protectedvirtual |
Called by signal when an observer's attachment changes; used as a cue to start listening to the attached entity's state.
|
protected |
Find a sim entry corresponding to a visual object's unique element ID.
|
protected |
Disables the currently active state view.
|
protectedvirtual |
Called when the currently active state view emits an update.
|
protectedvirtual |
Called when a sim object is removed, so its state view can be removed from the cache if present.
|
protected |
The currently active state view.