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

Detailed Description

This class implements a widget containing UI controls for viewing and modifying virtual reality settings. It implements the DtVirtualRealitySettingsInterface to provide a consistent interface for updating the UI and receiving user input. The widget includes controls for enabling/disabling VR, configuring mirroring options, selecting observer attachments, and other VR-specific settings.

#include <DtVirtualRealitySettingsWidget.h>

Inheritance diagram for makVrv::DtVirtualRealitySettingsWidget:
[legend]

Public Slots

UI Control Event Handlers

Slot methods that handle user interaction with UI controls

virtual void onEnabledChanged (int state)
 
virtual void onMirroringChanged (int state)
 
virtual void onMirrorChannelChanged (int state)
 
virtual void onAttachedObserverChanged (int state)
 
virtual void onFlipOverlaysChanged (int state)
 

Public Member Functions

 DtVirtualRealitySettingsWidget (DtDe &de, QWidget *parent)
 
virtual ~DtVirtualRealitySettingsWidget ()
 
virtual void setEnabled (bool enabled)
 
virtual void setMirroring (makArchives::DtVirtualRealitySettingsRecord::DtMirroring view)
 
virtual void setMirrorChannel (const std::string &channelName)
 
virtual void setVirtualRealityAvailable (bool available)
 
virtual void setChannelNames (const std::vector< std::string > &names)
 
virtual void setObserverNames (const std::vector< std::string > &names)
 
virtual void setAttachedObserver (const std::string &observerName)
 
virtual void setFlipOverlay (bool flip)
 
virtual void setFlipOverlayEnabled (bool enabled)
 
- Public Member Functions inherited from makVrv::DtVirtualRealitySettingsInterface
virtual ~DtVirtualRealitySettingsInterface ()
 

Protected Attributes

DtDe & myDe
 

Additional Inherited Members

- Public Attributes inherited from makVrv::DtVirtualRealitySettingsInterface
boost::signalslib::signal< void(bool)> signal_enabledChanged
 
boost::signalslib::signal< void(makArchives::DtVirtualRealitySettingsRecord::DtMirroring)> signal_mirroringChanged
 
boost::signalslib::signal< void(std::string)> signal_mirrorChannelChanged
 
boost::signalslib::signal< void(std::string)> signal_attachedObserverChanged
 
boost::signalslib::signal< void(bool)> signal_flipOverlaysChanged
 

Constructor & Destructor Documentation

◆ DtVirtualRealitySettingsWidget()

makVrv::DtVirtualRealitySettingsWidget::DtVirtualRealitySettingsWidget ( DtDe & de,
QWidget * parent )

Constructor.

Parameters
deReference to the display engine
parentParent widget for this widget

Initializes a new VR settings widget with references to the display engine and parent widget. Sets up the UI controls defined in the UI form file.

References de().

◆ ~DtVirtualRealitySettingsWidget()

virtual makVrv::DtVirtualRealitySettingsWidget::~DtVirtualRealitySettingsWidget ( )
virtual

Virtual destructor.

Cleans up resources associated with the VR settings widget.

Member Function Documentation

◆ setEnabled()

virtual void makVrv::DtVirtualRealitySettingsWidget::setEnabled ( bool enabled)
virtual

Updates the VR enabled state in the UI.

Parameters
enabledTrue to check the enabled checkbox, false to uncheck it

Sets the state of the virtual reality enabled checkbox in the UI. Implements the corresponding method from DtVirtualRealitySettingsInterface.

Implements makVrv::DtVirtualRealitySettingsInterface.

◆ setMirroring()

virtual void makVrv::DtVirtualRealitySettingsWidget::setMirroring ( makArchives::DtVirtualRealitySettingsRecord::DtMirroring view)
virtual

Updates the mirroring mode in the UI.

Parameters
viewThe mirroring mode to select in the UI

Sets the selected option in the mirroring mode dropdown in the UI. Implements the corresponding method from DtVirtualRealitySettingsInterface.

Implements makVrv::DtVirtualRealitySettingsInterface.

◆ setMirrorChannel()

virtual void makVrv::DtVirtualRealitySettingsWidget::setMirrorChannel ( const std::string & channelName)
virtual

Updates the selected mirror channel in the UI.

Parameters
channelNameThe name of the channel to select in the UI

Sets the selected option in the mirror channel dropdown in the UI. Implements the corresponding method from DtVirtualRealitySettingsInterface.

Implements makVrv::DtVirtualRealitySettingsInterface.

◆ setVirtualRealityAvailable()

virtual void makVrv::DtVirtualRealitySettingsWidget::setVirtualRealityAvailable ( bool available)
virtual

Updates the VR hardware availability state in the UI.

Parameters
availableTrue if VR hardware is available, false otherwise

Enables or disables the VR settings controls based on hardware availability. When hardware is unavailable, the UI will indicate this and disable controls that require hardware to function. Implements the corresponding method from DtVirtualRealitySettingsInterface.

Implements makVrv::DtVirtualRealitySettingsInterface.

◆ setChannelNames()

virtual void makVrv::DtVirtualRealitySettingsWidget::setChannelNames ( const std::vector< std::string > & names)
virtual

Updates the list of available mirror channels in the UI.

Parameters
namesVector of channel names to populate the dropdown with

Populates the mirror channel dropdown with the provided list of channel names. Implements the corresponding method from DtVirtualRealitySettingsInterface.

Implements makVrv::DtVirtualRealitySettingsInterface.

◆ setObserverNames()

virtual void makVrv::DtVirtualRealitySettingsWidget::setObserverNames ( const std::vector< std::string > & names)
virtual

Updates the list of available observers in the UI.

Parameters
namesVector of observer names to populate the dropdown with

Populates the observer dropdown with the provided list of observer names. Implements the corresponding method from DtVirtualRealitySettingsInterface.

Implements makVrv::DtVirtualRealitySettingsInterface.

◆ setAttachedObserver()

virtual void makVrv::DtVirtualRealitySettingsWidget::setAttachedObserver ( const std::string & observerName)
virtual

Updates the selected attached observer in the UI.

Parameters
observerNameThe name of the observer to select in the UI

Sets the selected option in the observer dropdown in the UI. Implements the corresponding method from DtVirtualRealitySettingsInterface.

Implements makVrv::DtVirtualRealitySettingsInterface.

◆ setFlipOverlay()

virtual void makVrv::DtVirtualRealitySettingsWidget::setFlipOverlay ( bool flip)
virtual

Updates the flip overlays setting in the UI.

Parameters
flipTrue to check the flip overlays checkbox, false to uncheck it

Sets the state of the flip overlays checkbox in the UI. Flipping overlays may be necessary to correct their orientation on certain HMD models. Implements the corresponding method from DtVirtualRealitySettingsInterface.

Implements makVrv::DtVirtualRealitySettingsInterface.

◆ setFlipOverlayEnabled()

virtual void makVrv::DtVirtualRealitySettingsWidget::setFlipOverlayEnabled ( bool enabled)
virtual

Enables or disables the flip overlays control in the UI.

Parameters
enabledTrue to enable the control, false to disable it

Enables or disables the flip overlays checkbox in the UI. This control should be disabled when flipping overlays is not supported by the current HMD model or configuration. Implements the corresponding method from DtVirtualRealitySettingsInterface.

Implements makVrv::DtVirtualRealitySettingsInterface.

◆ onEnabledChanged

virtual void makVrv::DtVirtualRealitySettingsWidget::onEnabledChanged ( int state)
virtualslot

Handles changes to the VR enabled checkbox.

Parameters
stateNew state of the checkbox (Qt::Checked or Qt::Unchecked)

This slot is connected to the enabled checkbox's stateChanged signal and emits the signal_enabledChanged signal when the user changes the checkbox.

◆ onMirroringChanged

virtual void makVrv::DtVirtualRealitySettingsWidget::onMirroringChanged ( int state)
virtualslot

Handles changes to the mirroring mode dropdown.

Parameters
stateIndex of the newly selected item

This slot is connected to the mirroring dropdown's currentIndexChanged signal and emits the signal_mirroringChanged signal when the user changes the selection.

◆ onMirrorChannelChanged

virtual void makVrv::DtVirtualRealitySettingsWidget::onMirrorChannelChanged ( int state)
virtualslot

Handles changes to the mirror channel dropdown.

Parameters
stateIndex of the newly selected item

This slot is connected to the mirror channel dropdown's currentIndexChanged signal and emits the signal_mirrorChannelChanged signal when the user changes the selection.

◆ onAttachedObserverChanged

virtual void makVrv::DtVirtualRealitySettingsWidget::onAttachedObserverChanged ( int state)
virtualslot

Handles changes to the attached observer dropdown.

Parameters
stateIndex of the newly selected item

This slot is connected to the observer dropdown's currentIndexChanged signal and emits the signal_attachedObserverChanged signal when the user changes the selection.

◆ onFlipOverlaysChanged

virtual void makVrv::DtVirtualRealitySettingsWidget::onFlipOverlaysChanged ( int state)
virtualslot

Handles changes to the flip overlays checkbox.

Parameters
stateNew state of the checkbox (Qt::Checked or Qt::Unchecked)

This slot is connected to the flip overlays checkbox's stateChanged signal and emits the signal_flipOverlaysChanged signal when the user changes the checkbox.

Member Data Documentation

◆ myDe

DtDe& makVrv::DtVirtualRealitySettingsWidget::myDe
protected

Reference to the display engine.

This reference is used to access VR system settings and other application services needed by the widget.


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