31#include <vrvCore/DtUniqueID.h>
33#include <vrvUtil/DtSignalConnectionManager.h>
35#include <vlutil/vlMutex.h>
43class DtSimulationAddress;
53class DtHumanCommandLineProcessor;
76class DtConfigurePlayerDialog;
82class DtVreStatusListener;
227 virtual makVrv::DtDe&
de();
331 const DtEntityIdentifier&
id,
const std::string& station,
const std::string& displayLayout);
391 virtual std::list<DtPlayerStation*>&
players();
561 virtual bool setAppMode(
const std::string& mode,
bool changeMenus =
true,
bool isInitialSet =
false);
Provides attribute handling system for hierarchical data storage and manipulation.
Scoped attribute change callback wrapper.
Definition attributeCallback.h:101
Handle class for safe access to attributes.
Definition attributeHandle.h:30
Type-specific handle class for attributes.
Definition attributeHandle.h:229
UI panel for selecting and engaging with entities and roles.
Definition chooseRolePanel.h:60
Entity resolution and mapping system.
Definition entityResolver.h:52
Factory class for creating objects of different derived types.
Definition factory.h:81
Definition functionQueue.h:26
Table-based access to Lua state for configuration data.
Definition initializer.h:38
Configuration initializer for VREngage components.
Definition initializer.h:80
Manager for instrument panels, gimbal sensors, and specialized views.
Definition instrumentPanelManager.h:45
Class for managing available entities and roles for engagement.
Definition playerCreationPalette.h:59
Top-level class representing the VR-Engage application.
Definition playerStationApp.h:155
virtual std::string const & getAppMode() const
Gets the current application mode.
virtual DtPlayerStationTempNotification * tempNotification()
Gets the temporary notification handler.
Definition playerStationApp.h:718
virtual std::list< DtPlayerStation * > & players()
Gets the list of all player stations.
virtual bool destroyPlayerStation(const DtEntityIdentifier &)
Destroys a specific player station by entity identifier.
virtual bool setAppMode(const std::string &mode, bool changeMenus=true, bool isInitialSet=false)
Sets the current mode of the application.
std::string myPlayerStationName
Current player station type name.
Definition playerStationApp.h:1066
DtComponentFactory myComponentFactory
Factory objects.
Definition playerStationApp.h:1006
virtual void setSpectator(bool value)
Sets spectator mode state.
static bool isGroundOnly()
Checks if ground-only mode is active.
DtInitTable myMinionConfig
Minion mode configuration table.
Definition playerStationApp.h:958
virtual void observerLookAt(const DtEntityIdentifier &)
Makes the observer look at a single entity.
bool myUse3DChooseRolePanel
3D role panel state
Definition playerStationApp.h:1128
DtPlayerStationTempNotification * myTempNotification
Temporary notification handler.
Definition playerStationApp.h:940
virtual DtComponentFactory & componentFactory()
Gets the component factory.
bool myAmSpectator
Spectator mode state.
Definition playerStationApp.h:1045
virtual DtVreSensorModeMapper * vreSensorModeMapper() const
Gets the sensor mode mapper.
virtual void detatchObserverIfAttachedTo(makVrv::DtElementID)
Detaches the observer if it is attached to the specified element.
virtual void debugCallback()
virtual void clearPlayers()
Removes all player stations from the list without destroying them.
DtInputDeviceFactory * myInputDeviceFactory
Input device factory.
Definition playerStationApp.h:1016
DtPlayerStationStateManager * myStateManager
State manager.
Definition playerStationApp.h:987
std::list< DtPlayerStation * > myPlayers
List of active player stations.
Definition playerStationApp.h:1029
DtInitializer * myInitializer
Initializers and configuration.
Definition playerStationApp.h:948
bool myMenuBarVisible
Menu bar visibility state.
Definition playerStationApp.h:1034
bool myDebugMode
Debug mode state.
Definition playerStationApp.h:1095
virtual void pause()
Pauses the simulation.
DtPlayerStationAppInputLogic * myInputLogic
Input logic handler.
Definition playerStationApp.h:997
const DtAttributeHandle entityStateStore() const
Returns a handle for the Entity State Attribute store.
virtual std::string const & getPlayerStationDisplayLayout() const
Gets the current player station display layout.
virtual bool setNonPlayStateObserverMode(enum DtDimensionality dimensionality)
Sets the observer mode for non-play states.
makVrv::DtSignalConnectionManager myConnections
Signal connection manager.
Definition playerStationApp.h:982
virtual DtInitTable findInitTable(const std::string &name)
Finds a named initialization table.
virtual void run()
Runs the simulation.
static bool isAirEnabled(bool b=false)
Air mode functions.
virtual DtInitializer & initializer()
Gets the application initializer.
virtual makVrv::DtObserver * setObserverMode(const std::string &name)
Sets the observer mode for the primary observer.
virtual DtSensorLibrary sensorLibrary() const
Gets the current sensor library.
virtual void setAttachEntity(DtEntityIdentifier const &entityId)
Sets the entity to which the observer is attached.
std::string myOldAppMode
Previous application mode.
Definition playerStationApp.h:1084
static bool isGroundEnabled(bool b=false)
Ground mode functions.
virtual void centerObserverOnTerrain()
Centers the observer on the terrain.
DtVreSensorModeMapper * myVreSensorModeMapper
Sensor mode mapper.
Definition playerStationApp.h:1193
DtEntityResolver * myEntityResolver
Entity resolver.
Definition playerStationApp.h:963
static bool isSensorOnly()
Checks if sensor-only mode is active.
DtPlayerStationApp(makVrv::DtDe &de)
Constructor.
virtual void setVRVStatusBarShown(bool on)
Shows or hides the VR-Vantage status bar.
virtual DtPlayerStation * findPlayerAt(int index)
Finds a player station at a specific index.
virtual DtPlayerCreationPalette & playerCreationPalette()
Gets the player creation palette.
std::string myNonPlayStateObserverMode2D
Observer modes for different states.
Definition playerStationApp.h:1158
virtual void shutdown()
Shuts down the application.
virtual std::string engageStationId()
Gets the station-name string for this VR-Engage application instance.
virtual void setIsDragging(bool dragging)
Sets the dragging state of the application window.
virtual bool isSpectator()
Spectator mode functions.
virtual void updateStatusPublisher()
Updates the status publisher with current state.
DtOwnershipTransferManager::Ptr ownershipTransferManager() const
Ownership Transfer manager accessor.
std::map< int, int > myActiveHudTextureLookup
HUD texture reference count map.
Definition playerStationApp.h:1207
DtMutex myResourceMutex
Resource mutex.
Definition playerStationApp.h:1056
virtual void setAdminModeEnabled(bool enabled)
Enables or disables admin mode.
virtual DtPlayerStation * findPlayer(const DtEntityIdentifier &)
Finds a player station by entity identifier.
const DtAttributeHandle myEntityStateStore
Handle for Entity State Attributes.
Definition playerStationApp.h:1223
virtual bool virtualRealityAvailable()
Checks if VR support is available.
const DtAttributeHandle appAttributeStore() const
Const version of appAttributeStore.
virtual bool getPlayFullScreen()
Gets the play fullscreen mode setting.
virtual void observerLookAt(const std::vector< DtEntityIdentifier > &)
Makes the observer look at multiple entities.
virtual DtVreObserverModeMapper * vreObserverModeMapper() const
Gets the observer mode mapper.
std::string myPlayerStationDisplayLayout
Current display layout name.
Definition playerStationApp.h:1071
makVrv::DtDe & myDe
Reference to the VR-Vantage display engine.
Definition playerStationApp.h:1061
void initMinionMonitor()
Initializes the minion monitor.
virtual void setPlayerStationName(const std::string &playerType)
Sets the current player station type name.
static bool isSensorEnabled(bool b=false)
Sensor mode functions.
virtual DtPlayerStation * findPlayer(makVrv::DtElementID)
Finds a player station by element ID.
DtVreMessageResult handleSessionSmsListMessage(DtVreMessage *message)
Handles session SMS list messages.
virtual void toggleAppMode()
Toggles between available application modes.
virtual DtPlayerStation * findPlayerStation(const DtEntityIdentifier &, const std::string &roleName)
Finds a player station by entity identifier and role name.
virtual bool destroyPlayerStation(const DtEntityIdentifier &, const std::string &roleName)
Destroys a specific player station by entity identifier and role name.
bool myPlayFullScreen
Full screen mode state for play mode.
Definition playerStationApp.h:1039
virtual void observerDetach()
Detaches the observer from any entity it may be following.
virtual std::string const & getPlayerStationName() const
Gets the current player station type name.
bool myFixedRoleMode
Fixed role mode state.
Definition playerStationApp.h:1112
virtual makVrv::DtDe & de()
Gets a reference to the VR-Vantage display engine.
DtAttributeHandle myVreStatusLocalAttr
Local station status attribute subtree.
Definition playerStationApp.h:1143
virtual void setFixedRole(bool on=true)
Sets the fixed role mode state.
DtAttributeHandle appAttributeStore()
Returns a handle for the App level Attribute store.
DtVreChatManager::Uptr myChatManager
Chat manager.
Definition playerStationApp.h:1022
virtual void initialize()
Initializes the application.
DtVreMessageResult handleSubscribeToBoss(DtVreMessage *message)
Requests the boss station to forward messages.
virtual bool destroyPlayerStation()
Destroys all player stations.
virtual DtPlayerStationStateManager & stateManager()
Gets the application state manager.
virtual void setFullScreen(bool fullscreen)
Sets the application's fullscreen state.
DtFunctionQueue myFunctionQueue
Definition playerStationApp.h:1231
virtual DtEntityIdentifier getAttachEntity()
Gets the entity to which the observer is currently attached.
virtual DtInputDeviceFactory * inputDeviceFactory()
Gets the input device factory.
DtInstrumentPanelManager * myInstrumentPanelManager
Application managers.
Definition playerStationApp.h:972
DtOwnershipTransferManager::Uptr myOwnershipTransferManager
Ownership transfer manager loaded from the OwnershipTransfer Lua table.
Definition playerStationApp.h:1229
std::unique_ptr< DtVrePluginManager > myPluginManager
Frontend plugin manager.
Definition playerStationApp.h:977
static DtPlayerStationApp * instance()
Gets the singleton instance of this class.
int incrementActiveHudTexture(int textureID)
Increments the active HUD texture count.
virtual DtChooseRolePanel * getChoosePlayerPanel()
Gets the role selection panel.
std::string myObserverName
Application-level observer name.
Definition playerStationApp.h:1201
virtual bool isDragging()
Checks if the application window is being dragged.
virtual DtPlayerStation * findPlayer()
Finds the first player station in the list.
std::string myAppMode
Admin mode variables.
Definition playerStationApp.h:1079
int getActiveHudTextureCount(int textureID)
Gets the current HUD texture count.
virtual ~DtPlayerStationApp()
Virtual destructor.
DtVreInputManager * myInputManager
Input manager.
Definition playerStationApp.h:992
bool isTypeAllowed(DtEntityType entityType)
Checks if an entity type is allowed.
DtChooseRolePanel * myChoosePlayerPanel
Role selection panel.
Definition playerStationApp.h:1106
DtAttributeChangeCallback myMinionBossCallback
Attribute change callback for minion mode boss monitoring.
Definition playerStationApp.h:1150
virtual bool setPlayStateObserverMode()
Sets the observer mode for play state.
boost::signalslib::signal< void()> signal_menuBarVisibilityChanged
Signal for menu bar visibility changes.
Definition playerStationApp.h:788
virtual void loadOwnershipTransferConfiguration()
Loads ownership transfer configuration from the OwnershipTransfer Lua table.
virtual void setPlayFullScreen(bool fullscreen)
Sets the play fullscreen mode.
std::string myNonPlayStateObserverMode3D
Observer mode for 3D non-play states.
Definition playerStationApp.h:1163
bool isImguiVisible()
Checks if ImGui is visible.
static bool isCombinedMode()
Checks if combined mode is active.
bool myEnableVRVControls
VR-Vantage controls state.
Definition playerStationApp.h:1122
static DtPlayerStationApp * theApp
Single instance of the application.
Definition playerStationApp.h:936
virtual bool observerHasDefault(std::string *outName=NULL)
Checks if the observer has a default position.
bool shouldAcceptRoleAssignment(const VreAssignRolePlayerMessage &assignment)
Applies the rewind policy.
virtual bool isAdminModeEnabled()
Checks if admin mode is enabled.
DtPlayerCreationPalette myPlayerCreationPalette
Player creation palette.
Definition playerStationApp.h:1101
DtInitTable myStartupConfig
Startup configuration table.
Definition playerStationApp.h:953
void initVirtualReality()
Initializes virtual reality support.
virtual bool isFullScreen()
Checks if the application is currently in fullscreen mode.
virtual void findMainRenderChannel()
Finds the main rendering channel.
bool myAdminModeEnabled
Admin mode enabled state.
Definition playerStationApp.h:1089
virtual void quit()
Initiates application termination.
virtual bool isChooseRolePanel3D()
Checks if the 3D role selection panel is enabled.
std::string myPlayStateObserverMode
Observer mode for play state.
Definition playerStationApp.h:1168
void minionModeBossMonitor(const DtAttributeHandle &changed)
Monitors the status of the boss station in minion mode.
static bool isAirOnly()
Checks if air-only mode is active.
virtual void rewind()
Rewinds the simulation.
virtual void setPlayerStationDisplayLayout(const std::string &displayLayout)
Sets the display layout for the current player station.
DtVreObserverModeMapper * myVreObserverModeMapper
Observer and sensor mode mappers.
Definition playerStationApp.h:1184
virtual bool isMenuBarVisible() const
Checks if the menu bar is visible.
virtual DtConnectorFactory & connectorFactory()
Gets the connector factory.
virtual DtVreInputManager & inputManager()
Gets the input manager.
virtual DtInitTable startupConfig()
Gets the startup configuration data.
void deferFunction(std::function< void()> f, double delayInSeconds)
Defers a function to be executed after a time delay.
virtual std::string observerName() const
Gets the name of the application-level observer.
virtual void resetView()
Resets the view in the Choose Role panel.
virtual void updateMenus(const std::string &appMode)
Updates the application menus based on the specified mode.
void deferFunction(std::function< void()> f, int delayInTicks=0)
Defers a function to be executed after a number of ticks.
virtual bool fixedRoleMode()
Role mode functions.
DtConnectorFactory myConnectorFactory
Connector factory.
Definition playerStationApp.h:1011
DtVreMessageResult handleUnsubscribeFromBoss(DtVreMessage *message)
Requests the boss station to stop forwarding messages.
virtual bool isVRVControlsEnabled()
Checks if VRV controls are enabled.
int decrementActiveHudTexture(int textureID)
Decrements the active HUD texture count.
virtual void tick(double dt)
Updates the application state.
DtSensorLibrary mySensorLibrary
Current sensor library in use.
Definition playerStationApp.h:1136
DtEntityIdentifier myOwnEntityId
Entity identifier for the owned entity.
Definition playerStationApp.h:1051
DtAttributeHandleType< DtPlayerStationApp * > myAppStore
Handle for App level Attributes.
Definition playerStationApp.h:1213
virtual DtPlayerStation * createPlayerStation(const DtEntityIdentifier &id, const std::string &station, const std::string &displayLayout)
Creates a new player station with specific settings.
virtual void observerFollow(const DtEntityIdentifier &)
Makes the observer follow an entity.
virtual void observerReset()
Resets the observer to its default position.
virtual DtVreChatManager & chatManager()
Gets the chat manager.
bool myIsDragging
Window dragging state.
Definition playerStationApp.h:1117
Class for managing the user interface for engaged roles.
Definition playerStation.h:51
Manager for player station states and state transitions.
Definition playerStationStateManager.h:42
Temporary notification UI component for VR-Engage.
Definition playerStationTempNotification.h:36
High-level chat manager for VR-Engage player-station plugins.
Definition vreChatManager.h:80
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Mapper for translating between observer mode identifiers and actual mode names.
Definition vreObserverModeMapper.h:46
Mapper for translating between sensor mode identifiers and actual mode names.
Definition vreSensorModeMapper.h:46
std::unique_ptr< DtVreChatManager > Uptr
Definition baseClass.h:355
DtOwnershipTransferManager * Ptr
Definition baseClass.h:352
Assigns a role and identifies automatic reengagement caused by rewind or snapshot rollback.
Definition vreAssignRolePlayer.h:35
Defines the DtConnector base class for simulation protocol connections.
Provides a template-based factory system for object creation.
Defines export macros for the VR-Engage Player Station library.
#define PLAYERSTATION_DLL
Definition export.h:24
Provides configuration initialization for VREngage components.
!
Definition glsVreMessageUtil.h:50
DtFactory< DtInputDevice > DtDeviceFactory
Factory type for input devices.
Definition playerStationApp.h:126
DtDimensionality
Enumeration for dimensionality of the view.
Definition playerStationApp.h:143
@ Dt3D
3D view (perspective view)
Definition playerStationApp.h:145
@ Dt2D
2D view (map/plan view)
Definition playerStationApp.h:144
DtFactory< DtPlayerComponent > DtComponentFactory
Type definitions for factory classes.
Definition playerStationApp.h:120
enum _DtSensorLibrary { CAMERA_FX=0, SENSOR_FX } DtSensorLibrary
Enumeration of available sensor libraries for observer modes.
Definition playerStationApp.h:133
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
DtFactory< DtConnector > DtConnectorFactory
Factory type for connectors.
Definition playerStationApp.h:123
Definition appLauncherComponent.h:28
Runtime manager for the Ownership Transfer feature.
Defines the DtPlayerComponent base class for VR-Engage role components.
Defines the DtPlayerCreationPalette class for managing available entity roles.
Declares DtChatCommand and DtVreChatManager.
Defines the base class for all VREngage messages.
Declares the frontend plugin wrapper and plugin manager.