![]() |
VR-Forces Developer's Guide
|
Driver that demonstrates firing GPU tracer bursts and previewing predicted ballistic trajectories.

Protected Member Functions | |
| virtual void | computeDirectionVectors (DtVector position, DtVector &east, DtVector &north, DtVector &up) |
| void | fireShot (const DtBallisticShotDefinition &def) |
| void | predictShot (const DtBallisticShotDefinition &def) |
| void | removeArcsFor (const DtBallisticShotDefinition &def) |
| void | redrawActivePreviews () |
| void | clearPredictedArcs () |
| virtual void | slot_coordinateSystemChanged () |
| virtual void | slot_windSpeedChanged (float metersPerSecond) |
| virtual void | slot_windDirectionChanged (float radians) |
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 | slot_displayEngineAdded (const DtDeRecord &igRecord) |
| virtual void | setInstanceName (const std::string &name) |
| virtual void | installAccessories () |
| virtual void | uninstallAccessories () |
Protected Attributes | |
| makVrv::DtSignalConnectionManager | myConnections |
| makVrv::DtCoordinateSystem * | myCoordinateSystem |
| float | myWindSpeed |
| float | myWindDirection |
| bool | myFireRequestedB |
| bool | myFireRequestedN |
| bool | myFireRequestedM |
| bool | myPreviewRequestedB |
| bool | myPreviewRequestedN |
| bool | myPreviewRequestedM |
| bool | myRemoveRequested |
| std::deque < makVrv::DtBallisticManager::BallisticIdentifier > | myFiredIdentifiers |
| std::vector< const DtBallisticShotDefinition * > | myActivePreviews |
| makVrv::DtEventProcessorInterface * | myEventProcessor |
Protected Attributes inherited from makVrv::DtDriver | |
| DtAgentManager & | myAgentManager |
| bool | myStartedFlag |
| std::string | myName |
| DtConfiguration | myConfiguration |
| bool | myPersistentFlag |
| bool | myUserControllableFlag |
| bool | myRequestStateDiffPendingFlag |
| DtElementChanges | myChanges |
| DtSignalConnectionManager | myConnections |
Additional Inherited Members | |
Static Protected Attributes inherited from makVrv::DtDriver | |
| static const std::string | theOnDriverSelectionList |
| DtExampleBallisticsDriver::DtExampleBallisticsDriver | ( | makVrv::DtAgentManager & | am | ) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Returns the driver's class name.
Implements makVrv::DtDriver.
|
virtual |
Performs startup logic for the driver.
Implements makVrv::DtDriver.
|
virtual |
Performs shutdown logic for the driver.
Implements makVrv::DtDriver.
|
virtual |
Performs update logic for the driver.
Implements makVrv::DtDriver.
|
protectedvirtual |
Computes local direction vectors for the given world position.
| position | World-space position. |
| east | Receives the east unit vector. |
| north | Receives the north unit vector. |
| up | Receives the up unit vector. |
|
protected |
Fires a GPU tracer burst described by the given shot definition.
|
protected |
Draws the predicted trajectory arcs for the given shot without firing. Any arcs already shown for this shot are removed first, so calling this again (for example after a wind change) replaces rather than duplicates them.
|
protected |
Removes the three predicted arcs previously drawn for one shot.
|
protected |
Re-predicts every arc currently on screen so it reflects the latest wind speed and direction.
|
protected |
Removes every predicted trajectory arc previously drawn by predictShot().
|
protectedvirtual |
Handles a coordinate-system change.
|
protectedvirtual |
Handles a wind speed change; re-predicts any arcs currently on screen.
| metersPerSecond | New wind speed in metres per second. |
|
protectedvirtual |
Handles a wind direction change; re-predicts any arcs currently on screen.
| radians | New wind direction in radians. |
|
protected |
Manages signal/slot lifetime connections.
|
protected |
Local copy of the system-wide coordinate system, kept for thread safety.
|
protected |
Current wind speed in metres per second.
|
protected |
Current wind direction in radians.
|
protected |
True if 'B' was pressed this frame (fire orange burst).
|
protected |
True if 'N' was pressed this frame (fire red burst).
|
protected |
True if 'M' was pressed this frame (fire green burst).
|
protected |
True if Shift+'B' was pressed this frame (preview orange shot).
|
protected |
True if Shift+'N' was pressed this frame (preview red shot).
|
protected |
True if Shift+'M' was pressed this frame (preview green shot).
|
protected |
True if 'R' was pressed this frame (remove all).
|
protected |
Identifiers of previously fired bursts, stored for removal via the 'R' key.
|
protected |
Shot definitions whose arcs are currently displayed, so they can be re-predicted when the wind changes. Entries point at the stable, static shot table and are never owned by this driver.
|
protected |
Event processor for input handling.