|
VR-Engage
2.2
|
This class implements a settings page that allows users to configure virtual reality options through a graphical interface. It integrates with the application's settings dialog system by extending DtPage. The page contains controls for enabling/disabling VR, configuring mirroring options, selecting observer attachments, and other VR-specific settings.
#include <DtVirtualRealitySettingsPage.h>
Public Member Functions | |
| DtVirtualRealitySettingsPage (DtDe &de, QWidget *parent, Qt::WindowFlags f=Qt::Widget) | |
| virtual | ~DtVirtualRealitySettingsPage () |
| virtual QIcon | icon () |
| virtual QString | title () |
| virtual const std::string & | pageClassName () const |
Static Public Member Functions | |
| static const std::string & | thePageClassName () |
Protected Member Functions | |
| void | setupGui () |
| virtual void | activate () |
| virtual void | deactivate () |
Protected Attributes | |
| DtVirtualRealitySettingsWidget * | myWidget |
| DtVirtualRealitySettingsLogic * | myLogic |
| DtPersistenceToolbarWidget * | myToolbar |
| QWidget * | myMainWidget |
| makVrv::DtVirtualRealitySettingsPage::DtVirtualRealitySettingsPage | ( | DtDe & | de, |
| QWidget * | parent, | ||
| Qt::WindowFlags | f = Qt::Widget ) |
Constructor.
| de | Reference to the display engine |
| parent | Parent widget for this page |
| f | Window flags for the page widget |
Initializes a new VR settings page with references to the display engine and parent widget. Creates the settings widget, logic, and toolbar components needed for the page to function.
References de().
|
virtual |
Virtual destructor.
Cleans up resources associated with the VR settings page, including the settings widget, logic, and toolbar components.
|
virtual |
Gets the icon for this page.
Returns the icon that represents this page in the settings dialog. For VR settings, this is typically a VR headset icon.
|
virtual |
Gets the title for this page.
Returns the title that is displayed for this page in the settings dialog. For VR settings, this is typically "Virtual Reality".
|
virtual |
Gets the class name of this page.
Returns the class name of this page, which is used for identification and persistence purposes in the settings system.
|
static |
Gets the class name of this page type (static method)
Static method that returns the class name of the VR settings page. This is used by the page creator and settings system to identify and instantiate the correct page type.
|
protected |
Sets up the user interface components.
Creates and arranges the UI components including the settings widget and toolbar. This method is called from the constructor.
|
protectedvirtual |
Called when the page is displayed.
This method is called when the user navigates to this page in the settings dialog. It updates the UI to reflect the current VR settings and prepares the page for user interaction.
|
protectedvirtual |
Called when the page is hidden.
This method is called when the user navigates away from this page in the settings dialog. It performs any necessary cleanup or state saving operations.
|
protected |
The main settings widget containing VR configuration controls.
|
protected |
The business logic that connects the UI to the VR system.
|
protected |
Toolbar widget for persistence controls (save, restore, etc.)
|
protected |
Container widget for the main layout.