|
VR-Engage
2.2
|
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>
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 |
| makVrv::DtVirtualRealitySettingsWidget::DtVirtualRealitySettingsWidget | ( | DtDe & | de, |
| QWidget * | parent ) |
Constructor.
| de | Reference to the display engine |
| parent | Parent 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().
|
virtual |
Virtual destructor.
Cleans up resources associated with the VR settings widget.
|
virtual |
Updates the VR enabled state in the UI.
| enabled | True 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.
|
virtual |
Updates the mirroring mode in the UI.
| view | The 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.
|
virtual |
Updates the selected mirror channel in the UI.
| channelName | The 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.
|
virtual |
Updates the VR hardware availability state in the UI.
| available | True 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.
|
virtual |
Updates the list of available mirror channels in the UI.
| names | Vector 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.
|
virtual |
Updates the list of available observers in the UI.
| names | Vector 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.
|
virtual |
Updates the selected attached observer in the UI.
| observerName | The 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.
|
virtual |
Updates the flip overlays setting in the UI.
| flip | True 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.
|
virtual |
Enables or disables the flip overlays control in the UI.
| enabled | True 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.
|
virtualslot |
Handles changes to the VR enabled checkbox.
| state | New 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.
|
virtualslot |
Handles changes to the mirroring mode dropdown.
| state | Index 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.
|
virtualslot |
Handles changes to the mirror channel dropdown.
| state | Index 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.
|
virtualslot |
Handles changes to the attached observer dropdown.
| state | Index 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.
|
virtualslot |
Handles changes to the flip overlays checkbox.
| state | New 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.
|
protected |
Reference to the display engine.
This reference is used to access VR system settings and other application services needed by the widget.