VR-Engage  2.2
Loading...
Searching...
No Matches
DtPlayerStationOsgGlStudioCockpitClasses.hpp
Go to the documentation of this file.
1/******************************************************************************
2** Copyright (c) 2025 MAK Technologies
3** All rights reserved.
4******************************************************************************/
5
6//! \file DtPlayerStationOsgGlStudioCockpitClasses.hpp
7//! \brief Classes for player station OSG GLStudio cockpit implementation
8//! \ingroup vreGlsEventSignaler
9
10#pragma once
11
13
14//! \note This file contains generated code from the dcgen tool
15//! \note Generated code should not be manually edited
16
17
18#include <vrvGlStudioShared/DtOsgGlStudioCockpitClasses.hpp>
20
21namespace makVre
22{
23
24//! \brief Implementation of the player station OSG GLStudio cockpit agent
25//!
26//! This class provides the concrete implementation of the player station
27//! OSG GLStudio cockpit agent interface. It handles the actual communication
28//! with the cockpit object and implements the necessary virtual methods
29//! defined by the agent interface.
30class DT_DLL_MFSRWRVRV DtPlayerStationOsgGlStudioCockpitAgentImplementation : public virtual DtPlayerStationOsgGlStudioCockpitAgent , public makVrv::DtOsgGlStudioCockpitAgentImplementation
31{
32public:
33 //! \brief Default constructor
34 //!
35 //! Initializes a new player station OSG GLStudio cockpit agent implementation
37
38 //! \brief Virtual destructor
40
41protected:
42 //! \brief Finds the controlled object as a base GLStudio cockpit
43 //! \return Pointer to the controlled cockpit object as base type
44 //!
45 //! Implements the base class virtual method to find the object
46 virtual makVrv::DtOsgGlStudioCockpit* findObjectAsDtOsgGlStudioCockpit() override;
47
48 //! \brief Finds the controlled object as a player station GLStudio cockpit
49 //! \return Pointer to the controlled cockpit object as player station type
50 //!
51 //! Implements the agent interface method to find and cast the object
53
54};
55
56}
57
58//! \note This file contains generated code from the dcgen tool
59//! \note Generated code should not be manually edited
60
61
63
64namespace makVre
65{
66
67//! \brief Class definition for the player station OSG GLStudio cockpit
68//!
69//! This class defines the properties and behaviors of player station OSG GLStudio
70//! cockpit objects. It inherits from the base GLStudio cockpit definition and
71//! adds player station specific functionality. The definition is used by the
72//! agent framework to create and manage cockpit objects.
73class DT_DLL_MFSRWRVRV DtPlayerStationOsgGlStudioCockpitClassDefinition : public makVrv::DtInheritedAgentDefinition<makVrv::DtOsgGlStudioCockpitClassDefinition,DtPlayerStationOsgGlStudioCockpit>
74{
75public:
76 //! \brief Constructor that binds all function pointers
77 //! \param className Name of the class (defaults to "DtPlayerStationOsgGlStudioCockpit")
78 //!
79 //! Initializes the class definition and binds all function pointers in the constructor
80 DtPlayerStationOsgGlStudioCockpitClassDefinition(const std::string& className = "DtPlayerStationOsgGlStudioCockpit");
81
82 //! \brief Virtual destructor
84
85 //! \brief Unique function IDs used to store state functions in messages
86 //!
87 //! These IDs identify specific functions when serializing state changes for
88 //! network transmission or persistence
90 {
91 //! \brief End marker inheriting from the base class function IDs
92 end_FunctionIds = makVrv::DtOsgGlStudioCockpitClassDefinition::end_FunctionIds
93 };
94
95};
96
97}
98
99//! \note This file contains generated code from the dcgen tool
100//! \note Generated code should not be manually edited
101
102#include <vrvCore/DtAgentCreator.h>
103#include <vrvCore/DtAgentFactory.h>
104
105namespace makVre
106{
107
109
110//! \brief Factory creator for player station OSG GLStudio cockpit objects
111//!
112//! This creator class is responsible for instantiating player station OSG GLStudio
113//! cockpit objects and their associated agents. It registers with the agent factory
114//! system to handle creation requests for this specific type of cockpit object.
116{
117public:
118 //! \brief Default constructor
119 //!
120 //! Initializes a new creator for player station OSG GLStudio cockpit objects
122
123 //! \brief Virtual destructor
125
126 //! \brief Static factory method to create a new creator instance
127 //! \return Pointer to a new creator instance
128 //!
129 //! Creates and returns a new instance of this creator class
130 static makVrv::DtAgentCreator* create();
131
132 //! \brief Creates an agent object for a player station OSG GLStudio cockpit
133 //! \param sceneInterface Reference to the agent manager interface
134 //! \return Pointer to the newly created agent
135 //!
136 //! Implements the virtual method to create a specific type of agent
137 virtual makVrv::DtAgent* createAgent(makVrv::DtAgentManagerInterface& sceneInterface) override;
138
139 //! \brief Creates an update resolver for a player station OSG GLStudio cockpit
140 //! \param de Reference to the display element
141 //! \param id Unique ID of the object to create a resolver for
142 //! \return Pointer to the newly created resolver
143 //!
144 //! Creates an update resolver for handling state changes to cockpit objects
145 virtual makVrv::DtAgentUpdateResolverInterface* createResolver(makVrv::DtDe& de, makVrv::DtUniqueID id) override;
146
147protected:
148 //! \brief Pointer to the class definition for this creator
150
151 //! \brief Static flag indicating if this creator is registered with the factory
152 static bool theRegisteredFlag;
153
154 //! \brief Auto-unregistrar to handle cleanup during shutdown
155 //!
156 //! This static member ensures the creator is properly unregistered when the application exits
157 static makVrv::DtAgentFactory::DtAutoUnregistrar theAutoUnregistrar;
158};
159
160}
161
Agent class for player station OSG GLStudio cockpit integration.
DtPlayerStationOsgGlStudioCockpitAgent()
Default constructor.
virtual ~DtPlayerStationOsgGlStudioCockpitAgentImplementation() override
Virtual destructor.
virtual makVrv::DtOsgGlStudioCockpit * findObjectAsDtOsgGlStudioCockpit() override
Finds the controlled object as a base GLStudio cockpit.
virtual DtPlayerStationOsgGlStudioCockpit * findObjectAsDtPlayerStationOsgGlStudioCockpit() override
Finds the controlled object as a player station GLStudio cockpit.
Class definition for the player station OSG GLStudio cockpit.
Definition DtPlayerStationOsgGlStudioCockpitClasses.hpp:74
virtual ~DtPlayerStationOsgGlStudioCockpitClassDefinition() override
Virtual destructor.
FunctionIds
Unique function IDs used to store state functions in messages.
Definition DtPlayerStationOsgGlStudioCockpitClasses.hpp:90
@ end_FunctionIds
End marker inheriting from the base class function IDs.
Definition DtPlayerStationOsgGlStudioCockpitClasses.hpp:92
DtPlayerStationOsgGlStudioCockpitClassDefinition(const std::string &className="DtPlayerStationOsgGlStudioCockpit")
Constructor that binds all function pointers.
static bool theRegisteredFlag
Static flag indicating if this creator is registered with the factory.
Definition DtPlayerStationOsgGlStudioCockpitClasses.hpp:152
static makVrv::DtAgentCreator * create()
Static factory method to create a new creator instance.
virtual makVrv::DtAgentUpdateResolverInterface * createResolver(makVrv::DtDe &de, makVrv::DtUniqueID id) override
Creates an update resolver for a player station OSG GLStudio cockpit.
DtPlayerStationOsgGlStudioCockpitClassDefinition * myDefinition
Pointer to the class definition for this creator.
Definition DtPlayerStationOsgGlStudioCockpitClasses.hpp:149
virtual ~DtPlayerStationOsgGlStudioCockpitClassesCreator() override
Virtual destructor.
static makVrv::DtAgentFactory::DtAutoUnregistrar theAutoUnregistrar
Auto-unregistrar to handle cleanup during shutdown.
Definition DtPlayerStationOsgGlStudioCockpitClasses.hpp:157
virtual makVrv::DtAgent * createAgent(makVrv::DtAgentManagerInterface &sceneInterface) override
Creates an agent object for a player station OSG GLStudio cockpit.
Player station implementation of the OSG GLStudio cockpit.
Definition playerStationOsgGlStudioCockpit.h:54
Defines DLL export macros for the RadarWarningReceiver VRV extension.
#define DT_DLL_MFSRWRVRV
Export/import macro for non-Windows platforms (empty)
Definition mfsRwrVrv.h:25
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
Defines the player station OSG GLStudio cockpit integration.
makVrv::DtDe * de()
Gets the display element pointer used by the plugin.