|
VR-Engage
2.2
|
This agent provides an interface to control and communicate with a player station OSG GLStudio cockpit instance. It extends the basic GLStudio cockpit agent functionality to work specifically with player station cockpits, enabling interactive cockpit instrumentation and displays within the simulation environment.
As an agent, it forms part of the scene graph management system and can be used in distributed rendering scenarios.
#include <DtPlayerStationOsgGlStudioCockpitAgent.hpp>
Public Member Functions | |
| DtPlayerStationOsgGlStudioCockpitAgent () | |
| virtual | ~DtPlayerStationOsgGlStudioCockpitAgent () override |
| DtPlayerStationOsgGlStudioCockpit * | findObject () |
| const DtPlayerStationOsgGlStudioCockpit * | findObject () const |
Static Public Member Functions | |
| static DtPlayerStationOsgGlStudioCockpitAgent * | create (makVrv::DtAgentManagerInterface &sceneInterface, bool bDistribute=true) |
Protected Member Functions | |
| virtual DtPlayerStationOsgGlStudioCockpit * | findObjectAsDtPlayerStationOsgGlStudioCockpit ()=0 |
| makVre::DtPlayerStationOsgGlStudioCockpitAgent::DtPlayerStationOsgGlStudioCockpitAgent | ( | ) |
Default constructor.
Initializes a new player station OSG GLStudio cockpit agent
Referenced by create().
|
overridevirtual |
Virtual destructor.
|
static |
Static helper for creating a new agent instance.
| sceneInterface | Reference to the agent manager interface |
| bDistribute | Whether the agent should be distributed across the network |
Creates a new player station OSG GLStudio cockpit agent and registers it with the scene
References DtPlayerStationOsgGlStudioCockpitAgent().
| DtPlayerStationOsgGlStudioCockpit * makVre::DtPlayerStationOsgGlStudioCockpitAgent::findObject | ( | ) |
Attempts to find the actual cockpit object this agent is controlling.
This method locates the underlying cockpit object that this agent represents. Changes made directly to this object will not be replicated in distributed rendering.
| const DtPlayerStationOsgGlStudioCockpit * makVre::DtPlayerStationOsgGlStudioCockpitAgent::findObject | ( | ) | const |
Const version of findObject()
|
protectedpure virtual |
Pure virtual implementation method for finding the specific cockpit object.
This protected method is implemented by concrete subclasses to perform the actual finding and casting of the controlled cockpit object
Implemented in makVre::DtPlayerStationOsgGlStudioCockpitAgentImplementation.