|
VR-Engage
2.2
|
DtVreStartPage provides the main start page UI for VR-Engage, which includes scenario selection, scenario information display, and session control. It manages the models for scenarios and terrain files, and coordinates the interaction between the UI and the application backend.
#include <vreStartPage.h>
Public Member Functions | |
| DtVreStartPage (DtPlayerStationApp &app, const std::string &target_window="") | |
| virtual | ~DtVreStartPage () override |
| virtual void | tick (double dt) override |
| virtual void | initMain () override |
| virtual void | setVideoPlaying (bool visible) |
| virtual void | setVisibility (bool visible) override |
| virtual void | setMenuVisibility (bool visible) |
| virtual DtVreStartPageQml * | getSingleton () const |
Public Member Functions inherited from makVre::DtVreHeaderFooterUIBase | |
| DtVreHeaderFooterUIBase (DtPlayerStationApp &app, const std::string &file, const std::string &target_window="") | |
| DtVreHeaderFooterUIBase (DtPlayerStationApp &app, const std::string &file, const std::string &headerId, const std::string &footerId, const std::string &mainContentId, const std::string &target_window) | |
| virtual | ~DtVreHeaderFooterUIBase () override |
| QQuickItem * | root () |
| virtual bool | isVisible () |
| virtual void | close () |
| virtual void | open () |
| virtual void | initHeader () |
| virtual bool | isHeaderVisible () |
| virtual void | setHeaderVisiblility (bool visible) |
| virtual void | setMenuTitle (const QString &title) |
| virtual void | setShowCutoutVisible (bool visible) |
| virtual void | setButtonEnabled (const std::string &id, bool enabled) |
| virtual bool | isButtonEnabled (const std::string &id) |
| virtual void | setAllCutoutControlsEnabled (bool enabled) |
| virtual void | setShowTopRightControlsVisible (bool visible) |
| virtual void | initFooter () |
| virtual bool | isFooterVisible () |
| virtual void | setFooterVisiblility (bool visible) |
| virtual void | setShowBottomBackButtonVisible (bool visible) |
| virtual bool | isMainContentVisible () |
| virtual void | setMainContentVisibility (bool visible) |
| virtual void | registerMessageHandlers () |
| virtual void | deregisterMessageHandlers () |
| DtVreMessageResult | handleBackButtonClicked (DtVreMessage *msg) |
| DtVreMessageResult | handleEscapeMessage (DtVreMessage *msg) |
Protected Member Functions | |
| virtual void | appModeUpdated (const std::string &newAppMode, const std::string &oldAppMode) override |
Protected Member Functions inherited from makVre::DtVreHeaderFooterUIBase | |
| virtual void | runningStateUpdated (bool runState) |
| virtual void | closeAllSettingsPages (std::string pageName="") |
| virtual void | updateModalState (bool open) |
| DtVreMessageResult | handleApplicationMode (DtVreMessage *msg) |
| DtVreMessageResult | handleSessionPlayState (DtVreMessage *msg) |
| DtVreMessageResult | handleToggleHelp (DtVreMessage *msg) |
Protected Attributes | |
| QScopedPointer< DtVreStartPageQml > | myQmlSingleton |
| DtRecursiveFileModel | myScenariosModel |
| DtRecursiveFileModel | myTerrainsModel |
Protected Attributes inherited from makVre::DtVreHeaderFooterUIBase | |
| DtPlayerStationApp & | myApp |
| QQuickItem * | myRoot |
| std::string | myTargetWindow |
| std::string | myTargetFile |
| std::string | myHeaderId |
| std::string | myFooterId |
| std::string | myMainContentId |
Additional Inherited Members | |
Public Slots inherited from makVre::DtVreHeaderFooterUIBase | |
| virtual void | slot_settingsOpened () |
| virtual void | slot_settingsClosed () |
| virtual void | slot_displayEngineConfigClicked () |
| virtual void | slot_weatherAndEnvClicked () |
| virtual void | slot_advancedVisualSettingsClicked () |
| virtual void | slot_aboutClicked () |
| virtual void | slot_soundVolumeChanged (qreal volume) |
| virtual void | slot_soundEnabledChanged (bool enabled) |
| virtual void | slot_exitOpened () |
| virtual void | slot_exitClosed () |
| virtual void | slot_exitAccepted () |
| virtual void | slot_exitRejected () |
| virtual void | slot_playClicked () |
| virtual void | slot_pauseClicked () |
| virtual void | slot_rewindClicked () |
| virtual void | slot_connectionClicked () |
| virtual void | slot_helpOpened () |
| virtual void | slot_helpClosed () |
| virtual void | slot_backClicked () |
| makVre::DtVreStartPage::DtVreStartPage | ( | DtPlayerStationApp & | app, |
| const std::string & | target_window = "" ) |
Constructor.
| app | Reference to the player station application |
| target_window | Name of the window to display in (empty for default) |
Creates a new start page UI for the specified application and target window.
|
overridevirtual |
Destructor.
Cleans up resources used by the start page.
|
overridevirtual |
Updates the start page each frame.
| dt | Time in seconds since the last update |
Called once per frame to update the start page UI elements.
Implements makVre::DtVreHeaderFooterUIBase.
|
overridevirtual |
Initializes the main content of the page.
Sets up the main content area of the page, including the file models and QML components. Called during initialization.
Implements makVre::DtVreHeaderFooterUIBase.
|
virtual |
Controls the background video playback.
| visible | True to play the video, false to pause it |
Controls whether the background video is playing or paused.
|
overridevirtual |
Sets the visibility of the start page.
| visible | True to show the page, false to hide it |
Controls whether the start page is visible. This override adds additional page-specific handling when visibility changes.
Reimplemented from makVre::DtVreHeaderFooterUIBase.
|
virtual |
Sets the visibility of the menu part of the page.
| visible | True to show the menu, false to hide it |
Controls whether the menu portion of the start page is visible. This allows showing/hiding just the menu while keeping the rest of the page visible.
|
virtual |
Gets the QML interface singleton.
Returns a pointer to the QML interface singleton used by this page.
|
overrideprotectedvirtual |
Handles application mode changes.
| newAppMode | Identifier of the new application mode |
| oldAppMode | Identifier of the previous application mode |
Updates the page when the application mode changes, ensuring the UI reflects the current mode appropriately.
Reimplemented from makVre::DtVreHeaderFooterUIBase.
|
protected |
QML interface singleton.
Managed pointer to the QML interface singleton for this page.
|
protected |
Model containing available scenarios.
File model for the list of available scenarios.
|
protected |
Model containing available terrain files.
File model for the list of available terrain files.