VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtVreStartPage Class Reference

Detailed Description

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>

Inheritance diagram for makVre::DtVreStartPage:
[legend]

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 DtVreStartPageQmlgetSingleton () const
 

Protected Member Functions

virtual void appModeUpdated (const std::string &newAppMode, const std::string &oldAppMode) override
 

Protected Attributes

QScopedPointer< DtVreStartPageQmlmyQmlSingleton
 
DtRecursiveFileModel myScenariosModel
 
DtRecursiveFileModel myTerrainsModel
 

Additional Inherited Members

Constructor & Destructor Documentation

◆ DtVreStartPage()

makVre::DtVreStartPage::DtVreStartPage ( DtPlayerStationApp & app,
const std::string & target_window = "" )

Constructor.

Parameters
appReference to the player station application
target_windowName of the window to display in (empty for default)

Creates a new start page UI for the specified application and target window.

◆ ~DtVreStartPage()

virtual makVre::DtVreStartPage::~DtVreStartPage ( )
overridevirtual

Destructor.

Cleans up resources used by the start page.

Member Function Documentation

◆ tick()

virtual void makVre::DtVreStartPage::tick ( double dt)
overridevirtual

Updates the start page each frame.

Parameters
dtTime in seconds since the last update

Called once per frame to update the start page UI elements.

Implements makVre::DtVreHeaderFooterUIBase.

◆ initMain()

virtual void makVre::DtVreStartPage::initMain ( )
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.

◆ setVideoPlaying()

virtual void makVre::DtVreStartPage::setVideoPlaying ( bool visible)
virtual

Controls the background video playback.

Parameters
visibleTrue to play the video, false to pause it

Controls whether the background video is playing or paused.

◆ setVisibility()

virtual void makVre::DtVreStartPage::setVisibility ( bool visible)
overridevirtual

Sets the visibility of the start page.

Parameters
visibleTrue 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.

◆ setMenuVisibility()

virtual void makVre::DtVreStartPage::setMenuVisibility ( bool visible)
virtual

Sets the visibility of the menu part of the page.

Parameters
visibleTrue 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.

◆ getSingleton()

virtual DtVreStartPageQml * makVre::DtVreStartPage::getSingleton ( ) const
virtual

Gets the QML interface singleton.

Returns
Pointer to the QML interface singleton

Returns a pointer to the QML interface singleton used by this page.

◆ appModeUpdated()

virtual void makVre::DtVreStartPage::appModeUpdated ( const std::string & newAppMode,
const std::string & oldAppMode )
overrideprotectedvirtual

Handles application mode changes.

Parameters
newAppModeIdentifier of the new application mode
oldAppModeIdentifier 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.

Member Data Documentation

◆ myQmlSingleton

QScopedPointer<DtVreStartPageQml> makVre::DtVreStartPage::myQmlSingleton
protected

QML interface singleton.

Managed pointer to the QML interface singleton for this page.

◆ myScenariosModel

DtRecursiveFileModel makVre::DtVreStartPage::myScenariosModel
protected

Model containing available scenarios.

File model for the list of available scenarios.

◆ myTerrainsModel

DtRecursiveFileModel makVre::DtVreStartPage::myTerrainsModel
protected

Model containing available terrain files.

File model for the list of available terrain files.


The documentation for this class was generated from the following file: