24#include <vrvCore/DtUniqueID.h>
156 template <
typename COMP_TYPE>
164 template <
typename COMP_TYPE>
189 virtual makVrv::DtDe*
de()
const;
202 virtual const DtEntityIdentifier&
entityId()
const;
235 virtual std::vector<std::string>
roles()
const;
328template <
typename COMP_TYPE>
331 for (
int compIndex = 0; compIndex <
myComponents.size(); compIndex++)
333 if (COMP_TYPE* comp =
dynamic_cast<COMP_TYPE*
>(
myComponents[compIndex]))
341 if (name == comp->name())
352template <
typename COMP_TYPE>
355 std::vector<COMP_TYPE*> ret;
357 for (
int compIndex = 0; compIndex <
myComponents.size(); compIndex++)
359 if (COMP_TYPE* comp =
dynamic_cast<COMP_TYPE*
>(
myComponents[compIndex]))
Provides attribute handling system for hierarchical data storage and manipulation.
Handle class for safe access to attributes.
Definition attributeHandle.h:30
DtConnectorType
Enumeration of supported connector types.
Definition connector.h:36
Table-based access to Lua state for configuration data.
Definition initializer.h:38
Top-level class representing the VR-Engage application.
Definition playerStationApp.h:163
virtual ConnectorNameList connectors(DtConnector::DtConnectorType connectionType)
Gets the list of connectors by type.
makVrv::DtDe * myDe
Definition playerStation.h:323
COMP_TYPE * findComponent(const std::string &name="")
Finds a component by type and optional name.
Definition playerStation.h:329
std::vector< DtPlayerComponent * > ComponentList
Type definition for a list of player components.
Definition playerStation.h:54
virtual bool init()
Initializes the player station.
DtInitTable myPlayerDefinition
Definition playerStation.h:289
DtPlayerStation(DtPlayerStationApp *app, DtInitTable playerDefinition, DtEntityIdentifier attachTo, std::string stationName, std::string displayLayout)
Constructor for a player station.
virtual ~DtPlayerStation()
Destructor for a player station.
std::vector< std::string > myRoles
Definition playerStation.h:298
virtual std::vector< std::string > roles() const
Gets the list of joystick function groups.
std::string myStationName
Definition playerStation.h:303
DtEntityType myEntityType
Definition playerStation.h:294
virtual void tick(double dt)
Updates the player station.
virtual std::string displayLayout() const
Gets the display layout name.
virtual DtAttributeHandle & playerAttributeStore()
Gets the player attribute store.
virtual void debugPlayer()
Provides debugging information.
DtForceType myForceType
Definition playerStation.h:295
virtual DtInitTable definition() const
std::map< unsigned long long, bool[4]> myDebugAttributeTraceChecks
Definition playerStation.h:325
virtual bool isActive() const
virtual bool postInitializeComponents()
Called from init. Invokes postInit function on all components. Called only after and if initializeCom...
makVrv::DtElementID myElementId
Definition playerStation.h:292
std::string myDisplayLayout
Definition playerStation.h:304
virtual DtPlayerStationApp * app() const
Gets the player station application.
std::vector< COMP_TYPE * > findComponents()
Finds all components of a specific type.
Definition playerStation.h:353
virtual bool initializeComponents()
Called from init. Instantiates all components in the role definition and invokes their init function....
DtAttributeHandle myAttributeStore
Definition playerStation.h:307
virtual void shutdown()
Shuts down the player station.
bool myActive
Definition playerStation.h:319
std::vector< std::string > ConnectorNameList
Type definition for a list of connector names.
Definition playerStation.h:57
ConnectorNameList myConnectorNames
Definition playerStation.h:314
virtual const DtAttributeHandle & playerAttributeStore() const
Gets the player attribute store (const version)
virtual makVrv::DtElementID elementId() const
Gets the element ID for the controlled entity.
virtual makVrv::DtDe * de() const
Gets the display engine.
virtual DtVreMessageResult handleSimulationStateMessage(makVre::DtVreMessage *msg)
Handler for the SimulationStateMessage for this station's ownship entity. This function is used only ...
virtual std::string stationName() const
Gets the name of the role.
virtual bool isShuttingDown() const
DtPlayerStationApp * myApp
Writes name, type, and value of each attribute in Attribute Store to a human-readable string....
Definition playerStation.h:283
virtual const DtEntityIdentifier & entityId() const
Gets the entity ID for the controlled entity.
ComponentList myComponents
Definition playerStation.h:310
bool myShuttingDown
Definition playerStation.h:320
virtual const DtEntityType & entityType() const
Gets the entity type for the controlled entity.
DtEntityIdentifier myEntityId
Definition playerStation.h:293
virtual bool initializeMenus()
Called from init. Calls initializeMenus on the DtActionMenuUpdater Component, if present,...
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Defines export macros for the VR-Engage Player Station library.
#define PLAYERSTATION_DLL
Definition export.h:24
Provides configuration initialization for VREngage components.
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
Defines the DtPlayerComponent base class for VR-Engage role components.
Defines the DtPlayerStationApp class for the VR-Engage application.
Defines the base class for all VREngage messages.