|
VR-Engage
2.3
|
This class manages the UI for selecting observer views (roles) in VR-Engage. It displays a list of available roles, handles user selection, and provides mechanisms for filtering and navigating the available views.
#include <vreChooseRolePage.h>
Public Member Functions | |
| DtVreChooseRolePage (DtPlayerStationApp &app, const std::string &target_window="") | |
| virtual | ~DtVreChooseRolePage () override |
| virtual void | tick (double dt) override |
| virtual void | initMain () override |
| virtual void | setChooseRoleBackgroundVisibility (bool visible) |
| virtual void | setObserverViewsVisibility (bool visible) |
| virtual void | setLockdownModeIndicatorVisibility (bool visible, bool overrideLockdown=false) |
| virtual void | setLockdownModeIndicatorText (const QString &text) |
| virtual Q_INVOKABLE void | observerViewClicked (QString observerName, bool animated=false) |
| virtual void | setVisibility (bool visible) override |
Public Member Functions inherited from makVre::DtVreBaseUI | |
| DtVreBaseUI (DtPlayerStationApp &app, const std::string &file, const std::string &target_window="") | |
| virtual | ~DtVreBaseUI () override |
| QQuickItem * | root () |
| DtVreHeaderFooterUI * | headerFooterUI () |
| virtual bool | isVisible () |
| virtual void | close () |
| virtual void | open () |
| virtual bool | isMainContentVisible () |
| virtual void | setMainContentVisibility (bool visible) |
| DtVreMessageResult | handleBackButtonClicked (DtVreMessage *msg) |
| DtVreMessageResult | handleEscapeMessage (DtVreMessage *msg) |
Protected Member Functions | |
| virtual void | onPopupOpened () override |
| virtual void | onPopupClosed () override |
| virtual void | onConnectionClicked () override |
| virtual void | onAppModeChanged (const std::string &newAppMode, const std::string &oldAppMode) override |
| DtVreMessageResult | handleBackButtonClicked (DtVreMessage *msg) |
| virtual void | slot_observerViewsChanged (const makArchives::DtObserverStateRecordsList &observerViewList) |
| virtual void | slot_observerViewsCleared () |
| virtual void | slot_observerViewAdded (const makArchives::DtObserverStateRecord &observerView) |
| virtual void | slot_observerViewRemoved (const makArchives::DtObserverStateRecord &observerView) |
| virtual void | slot_observerViewRenamed (const std::string &oldName, const makArchives::DtObserverStateRecord &observerView) |
Protected Member Functions inherited from makVre::DtVreBaseUI | |
| virtual void | connectToHeaderFooter () |
Protected Attributes | |
| DtObserverViewsQmlModel | myObserverViewsModel |
| makVrv::DtObserverViewsManager & | myObserverViewsManager |
Protected Attributes inherited from makVre::DtVreBaseUI | |
| DtPlayerStationApp & | myApp |
| QQuickItem * | myRoot |
| std::string | myTargetWindow |
| std::string | myTargetFile |
| std::string | myMainContentId |
| makVre::DtVreChooseRolePage::DtVreChooseRolePage | ( | DtPlayerStationApp & | app, |
| const std::string & | target_window = "" ) |
Constructor.
| app | Reference to the player station application |
| target_window | The target window name (optional) |
|
overridevirtual |
Destructor.
|
overridevirtual |
Updates the page state.
| dt | The time elapsed since the last update in seconds |
Implements makVre::DtVreBaseUI.
|
overridevirtual |
Initializes the main UI components.
Implements makVre::DtVreBaseUI.
|
virtual |
Sets the visibility of the role selection background.
| visible | True to show the background, false to hide it |
|
virtual |
Sets the visibility of the observer views list.
| visible | True to show the observer views, false to hide them |
|
virtual |
Sets the visibility of the lockdown mode indicator.
| visible | True to show the indicator, false to hide it |
| overrideLockdown | If true, shows the indicator even if not in lockdown mode |
|
virtual |
Sets the text of the lockdown mode indicator.
| text | The text to display in the lockdown mode indicator |
|
virtual |
Handles a click on an observer view.
| observerName | The name of the observer view that was clicked |
| animated | Whether to animate the transition (default: false) |
|
overridevirtual |
Sets the visibility of the page.
| visible | True to show the page, false to hide it |
Reimplemented from makVre::DtVreBaseUI.
|
overrideprotectedvirtual |
Hides the choose-role panel and main content when a popup opens.
Reimplemented from makVre::DtVreBaseUI.
|
overrideprotectedvirtual |
Restores the choose-role panel and main content when a popup closes.
Reimplemented from makVre::DtVreBaseUI.
|
overrideprotectedvirtual |
Hides the panel before navigating to the connection page.
Reimplemented from makVre::DtVreBaseUI.
|
overrideprotectedvirtual |
Updates UI based on application mode changes.
| newAppMode | The new application mode |
| oldAppMode | The previous application mode |
Reimplemented from makVre::DtVreBaseUI.
|
protected |
Handles back button clicks from the choose role panel.
| msg | The UIBackButtonClickedMessage |
|
protectedvirtual |
Handles changes to the observer views list.
| observerViewList | The updated list of observer views |
|
protectedvirtual |
Handles clearing of all observer views.
|
protectedvirtual |
Handles addition of a new observer view.
| observerView | The observer view that was added |
|
protectedvirtual |
Handles removal of an observer view.
| observerView | The observer view that was removed |
|
protectedvirtual |
Handles renaming of an observer view.
| oldName | The previous name of the observer view |
| observerView | The observer view with its new name |
|
protected |
Model containing the observer views to display.
|
protected |
Reference to the manager of observer views.