26class DtObserverStateRecordsList;
32class SessionLoadDataMessage;
35class DtVreLoadingPage;
38class DtVreExternalLoadingPageLogic;
80 virtual void tick(
double dt)
override;
137 const std::string& directory,
const std::string& filenameToFind, DtFilename& foundPath);
213 std::chrono::time_point<std::chrono::steady_clock>
myTimerEnd;
virtual bool loadScenarioObserverViews()
Loads observer views defined in the scenario file.
virtual void tick(double dt) override
Updates the state each frame.
int mySmsLoadStatusBits
SMS loading status bitmask.
Definition loadingState.h:191
void logEstimatedTimeToLoad(const std::string &file)
Stops the loading timer and logs statistics.
std::shared_ptr< SessionLoadDataMessage > myLoadData
Data message containing loading parameters.
Definition loadingState.h:175
virtual void loadGuiTerrain()
Initiates terrain loading in the GUI/visualization component.
virtual void setTimeToLoad(const int ms)
Sets the estimated loading time.
std::chrono::time_point< std::chrono::steady_clock > myTimerStart
Timer start timestamp.
Definition loadingState.h:208
virtual DtVreMessageResult handleSmsLoadComplete(DtVreMessage *msg)
Handles SMS load completion messages.
bool myDidGuiLoad
Flag indicating if GUI terrain loading is complete.
Definition loadingState.h:200
bool myDidSimLoad
Flag indicating if simulation terrain loading is complete.
Definition loadingState.h:197
DtLoadingState(DtPlayerStationApp &app)
Constructor.
virtual void loadSimTerrain()
Initiates terrain loading in the simulation component.
virtual bool parseObserverViewsXml(const DtString &xml, makArchives::DtObserverStateRecordsList &record)
virtual DtVreMessageResult handleBackendStatus(DtVreMessage *msg)
Handles backend status update messages.
int getEstimatedTimeToLoad(const std::string &file)
Gets the estimated loading time for a file.
virtual void onEnter(const DtPlayerStationStateArgs *args) override
Called when the state is entered.
virtual bool findFileRecursive(const std::string &directory, const std::string &filenameToFind, DtFilename &foundPath)
Searches recursively for a file in a directory.
std::shared_ptr< DtVreLoadingPage > myLoadingPage
Loading page UI component.
Definition loadingState.h:180
int myServerPort
Server port number for the loaded session.
Definition loadingState.h:203
std::shared_ptr< DtVreExternalLoadingPageLogic > myExternalLoadingLogic
External loading page logic.
Definition loadingState.h:185
virtual ~DtLoadingState() override
Virtual destructor.
virtual DtVreMessageResult handleSessionStatus(DtVreMessage *msg)
Handles session status messages.
virtual void onExit() override
Called when the state is exited.
std::chrono::time_point< std::chrono::steady_clock > myTimerEnd
Timer end timestamp.
Definition loadingState.h:213
bool mySentTerrainLoad
Flag indicating if terrain load command was sent.
Definition loadingState.h:194
virtual void setStatusText(const QString &msg)
Sets the status text in the loading UI.
Top-level class representing the VR-Engage application.
Definition playerStationApp.h:163
Class for passing arguments during state transitions.
Definition playerStationState.h:45
DtPlayerStationApp & app() const
Gets a reference to the player station application.
DtPlayerStationState(DtPlayerStationApp &app, std::string stateType)
Constructor.
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
Definition loadingState.h:25
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
Defines base classes for the VR-Engage state management system.