|
VR-Engage
2.2
|
The DtPlayerStationDriver class manages the lifecycle of the DtPlayerStationApp, including initialization, update, and shutdown. It maintains the entity resolver, provides intersection services, registers message handlers, and handles debug functionality for the application.
#include <vrvPlayerStationDriver.h>
Public Member Functions | |
| DtPlayerStationDriver (makVrv::DtAgentManager &am) | |
| virtual | ~DtPlayerStationDriver () override |
| virtual const std::string & | className () const override |
| virtual void | setPlayerStationApp (makVre::DtPlayerStationApp *app) |
| virtual makVre::DtPlayerStationApp & | playerStationApp () |
| virtual makVre::DtEntityResolver & | connectionObjects () |
| virtual bool | onStart () override |
| virtual bool | onStop () override |
| virtual bool | onTick () override |
Protected Member Functions | |
| virtual void | populateVreMessageFactory () |
| virtual void | logGraphics () |
| virtual void | debugCallback () |
Protected Attributes | |
| makVrv::DtDe & | myDe |
| DtPlayerStationApp * | myApp |
| DtIntersector * | myIntersector |
| DtEntityResolver * | myEntityResolver |
| makVre::DtPlayerStationDriver::DtPlayerStationDriver | ( | makVrv::DtAgentManager & | am | ) |
Constructor that initializes the driver and associated resources.
| am | Reference to the agent manager used for entity management |
Creates and initializes an instance of the DtEntityResolver for entity tracking. Initializes the DtEntityHelper instance with the new DtEntityResolver. Creates and initializes the instance of the DtVreMessageManager, and calls populateVreMessageFactory() to register the stock set of DtVreMessage creators.
|
overridevirtual |
Virtual destructor that cleans up resources.
Deletes the entity resolver and application instance if they exist
|
overridevirtual |
Gets the name of this C++ class.
|
virtual |
Sets the player station application instance.
| app | Pointer to the top-level player station application instance |
Caches the application in myApp. Creates a new DtVrvIntersector instance and sets a pointer to it in the application's DtAttributeStore with the name "DtIntersector". Sets a pointer to the DtEntityResolver in the application's DtAttributeStore with the name "DtEntityResolver".
|
virtual |
Gets the current player station application instance.
Provides access to the current player station application instance
|
virtual |
Gets the entity resolver used by this driver.
Returns a reference to DtEntityResolver, the object used to maintain a mapping between the various identifiers associated with simulation objects in the VR-Engage front-end.
|
overridevirtual |
Initializes the driver and associated components.
Installs the DtVreDebugManager and DtQtQuickRenderer instances, enables the display of audio capture device config in the GUI, and registers callback for DtVreMessage instances received for display in the SHIFT+F4 debug menu. Also logs graphics driver information.
|
overridevirtual |
Shuts down the driver and associated components.
Calls shutdown() on the DtPlayerStationApp instance and deletes it, and calls shutdown() on the DtVreDebugManager.
|
overridevirtual |
Updates the driver and associated components every frame.
Calculates the time delta since the last frame, updates the DtVreMessageManager and DtPlayerStationApp instances.
|
protectedvirtual |
Registers all message types with the message factory.
Registers stock DtVreMessage class creators with the DtVreMessageFactory instance to allow creation and processing of all supported message types in the application.
|
protectedvirtual |
Logs graphics hardware and driver information.
Gathers vendor, renderer, OpenGL version, and driver information and writes it to the application log file for diagnostic purposes.
|
protectedvirtual |
Displays debug information about received messages.
Presents the set of all DtVreMessages received this frame in the SHIFT+F4 Debug menu, including message types and counts.
|
protected |
Reference to the VR-Vantage display engine instance.
|
protected |
The player station application instance.
Represents the VR-Engage application as a whole
|
protected |
The intersection handler for the application.
DtVrvIntersector instance created by this class for use throughout the application. A pointer to it is stored in the DtPlayerStationApp instance's DtAttributeStore under the name "DtIntersector".
|
protected |
The entity resolution system for the application.
DtEntityResolver instance created for looking up various types of identifiers objects may have in the application. A pointer to this instance is stored in the DtPlayerStationApp instance's DtAttributeStore under the name "DtEntityResolver".