VR-Engage  2.2
Loading...
Searching...
No Matches
makVrv::DtVirtualRealitySettingsPage Class Reference

Detailed Description

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>

Inheritance diagram for makVrv::DtVirtualRealitySettingsPage:
[legend]

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

DtVirtualRealitySettingsWidgetmyWidget
 
DtVirtualRealitySettingsLogicmyLogic
 
DtPersistenceToolbarWidget * myToolbar
 
QWidget * myMainWidget
 

Constructor & Destructor Documentation

◆ DtVirtualRealitySettingsPage()

makVrv::DtVirtualRealitySettingsPage::DtVirtualRealitySettingsPage ( DtDe & de,
QWidget * parent,
Qt::WindowFlags f = Qt::Widget )

Constructor.

Parameters
deReference to the display engine
parentParent widget for this page
fWindow 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().

◆ ~DtVirtualRealitySettingsPage()

virtual makVrv::DtVirtualRealitySettingsPage::~DtVirtualRealitySettingsPage ( )
virtual

Virtual destructor.

Cleans up resources associated with the VR settings page, including the settings widget, logic, and toolbar components.

Member Function Documentation

◆ icon()

virtual QIcon makVrv::DtVirtualRealitySettingsPage::icon ( )
virtual

Gets the icon for this page.

Returns
QIcon representing the VR settings page

Returns the icon that represents this page in the settings dialog. For VR settings, this is typically a VR headset icon.

◆ title()

virtual QString makVrv::DtVirtualRealitySettingsPage::title ( )
virtual

Gets the title for this page.

Returns
QString containing the page title

Returns the title that is displayed for this page in the settings dialog. For VR settings, this is typically "Virtual Reality".

◆ pageClassName()

virtual const std::string & makVrv::DtVirtualRealitySettingsPage::pageClassName ( ) const
virtual

Gets the class name of this page.

Returns
Reference to a string containing the class name

Returns the class name of this page, which is used for identification and persistence purposes in the settings system.

◆ thePageClassName()

static const std::string & makVrv::DtVirtualRealitySettingsPage::thePageClassName ( )
static

Gets the class name of this page type (static method)

Returns
Reference to a string containing the class name

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.

◆ setupGui()

void makVrv::DtVirtualRealitySettingsPage::setupGui ( )
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.

Note
This method is intentionally non-virtual since it's called from the constructor.

◆ activate()

virtual void makVrv::DtVirtualRealitySettingsPage::activate ( )
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.

◆ deactivate()

virtual void makVrv::DtVirtualRealitySettingsPage::deactivate ( )
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.

Member Data Documentation

◆ myWidget

DtVirtualRealitySettingsWidget* makVrv::DtVirtualRealitySettingsPage::myWidget
protected

The main settings widget containing VR configuration controls.

◆ myLogic

DtVirtualRealitySettingsLogic* makVrv::DtVirtualRealitySettingsPage::myLogic
protected

The business logic that connects the UI to the VR system.

◆ myToolbar

DtPersistenceToolbarWidget* makVrv::DtVirtualRealitySettingsPage::myToolbar
protected

Toolbar widget for persistence controls (save, restore, etc.)

◆ myMainWidget

QWidget* makVrv::DtVirtualRealitySettingsPage::myMainWidget
protected

Container widget for the main layout.


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