VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtPlayerStationOsgGlStudioCockpitAgent Class Referenceabstract

Detailed Description

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>

Inheritance diagram for makVre::DtPlayerStationOsgGlStudioCockpitAgent:
[legend]

Public Member Functions

 DtPlayerStationOsgGlStudioCockpitAgent ()
 
virtual ~DtPlayerStationOsgGlStudioCockpitAgent () override
 
DtPlayerStationOsgGlStudioCockpitfindObject ()
 
const DtPlayerStationOsgGlStudioCockpitfindObject () const
 

Static Public Member Functions

static DtPlayerStationOsgGlStudioCockpitAgentcreate (makVrv::DtAgentManagerInterface &sceneInterface, bool bDistribute=true)
 

Protected Member Functions

virtual DtPlayerStationOsgGlStudioCockpitfindObjectAsDtPlayerStationOsgGlStudioCockpit ()=0
 

Constructor & Destructor Documentation

◆ DtPlayerStationOsgGlStudioCockpitAgent()

makVre::DtPlayerStationOsgGlStudioCockpitAgent::DtPlayerStationOsgGlStudioCockpitAgent ( )

Default constructor.

Initializes a new player station OSG GLStudio cockpit agent

Referenced by create().

◆ ~DtPlayerStationOsgGlStudioCockpitAgent()

virtual makVre::DtPlayerStationOsgGlStudioCockpitAgent::~DtPlayerStationOsgGlStudioCockpitAgent ( )
overridevirtual

Virtual destructor.

Member Function Documentation

◆ create()

static DtPlayerStationOsgGlStudioCockpitAgent * makVre::DtPlayerStationOsgGlStudioCockpitAgent::create ( makVrv::DtAgentManagerInterface & sceneInterface,
bool bDistribute = true )
static

Static helper for creating a new agent instance.

Parameters
sceneInterfaceReference to the agent manager interface
bDistributeWhether the agent should be distributed across the network
Returns
Pointer to the newly created agent

Creates a new player station OSG GLStudio cockpit agent and registers it with the scene

References DtPlayerStationOsgGlStudioCockpitAgent().

◆ findObject() [1/2]

DtPlayerStationOsgGlStudioCockpit * makVre::DtPlayerStationOsgGlStudioCockpitAgent::findObject ( )

Attempts to find the actual cockpit object this agent is controlling.

Returns
Pointer to the controlled cockpit object, or nullptr if not found
Warning
Any direct modifications to the object will not work in distributed rendering

This method locates the underlying cockpit object that this agent represents. Changes made directly to this object will not be replicated in distributed rendering.

◆ findObject() [2/2]

const DtPlayerStationOsgGlStudioCockpit * makVre::DtPlayerStationOsgGlStudioCockpitAgent::findObject ( ) const

Const version of findObject()

Returns
Const pointer to the controlled cockpit object, or nullptr if not found
Warning
Any direct modifications to the object will not work in distributed rendering

◆ findObjectAsDtPlayerStationOsgGlStudioCockpit()

virtual DtPlayerStationOsgGlStudioCockpit * makVre::DtPlayerStationOsgGlStudioCockpitAgent::findObjectAsDtPlayerStationOsgGlStudioCockpit ( )
protectedpure virtual

Pure virtual implementation method for finding the specific cockpit object.

Returns
Pointer to the cockpit object cast to the correct type

This protected method is implemented by concrete subclasses to perform the actual finding and casting of the controlled cockpit object

Implemented in makVre::DtPlayerStationOsgGlStudioCockpitAgentImplementation.


The documentation for this class was generated from the following file: