|
VR-Engage
2.2
|
This abstract class defines the interface for interacting with the virtual reality settings GUI. It provides signals that are emitted when the user changes settings in the UI, and setter methods that allow the application to update the UI to reflect current settings. Implementations of this interface serve as the bridge between the UI and the underlying virtual reality system.
#include <DtVirtualRealitySettingsInterface.h>
Public Member Functions | |
| virtual | ~DtVirtualRealitySettingsInterface () |
UI Update Methods | |
| virtual void | setEnabled (bool enabled)=0 |
| virtual void | setMirroring (makArchives::DtVirtualRealitySettingsRecord::DtMirroring view)=0 |
| virtual void | setMirrorChannel (const std::string &channelName)=0 |
| virtual void | setVirtualRealityAvailable (bool available)=0 |
| virtual void | setChannelNames (const std::vector< std::string > &names)=0 |
| virtual void | setObserverNames (const std::vector< std::string > &names)=0 |
| virtual void | setAttachedObserver (const std::string &observerName)=0 |
| virtual void | setFlipOverlay (bool flip)=0 |
| virtual void | setFlipOverlayEnabled (bool enabled)=0 |
Public Attributes | |||
Signal Declarations | |||
Signal emitted when the VR enabled state is changed This signal is emitted when the user toggles the virtual reality enabled checkbox in the UI.
| |||
| 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 | ||
|
virtual |
Virtual destructor.
Ensures proper cleanup of resources in derived classes.
|
pure 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. This should be called when the VR enabled state changes outside the UI.
Implemented in makVrv::DtVirtualRealitySettingsWidget.
|
pure 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. This should be called when the mirroring mode changes outside the UI.
Implemented in makVrv::DtVirtualRealitySettingsWidget.
|
pure 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. This should be called when the mirror channel changes outside the UI.
Implemented in makVrv::DtVirtualRealitySettingsWidget.
|
pure 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 should indicate this and disable controls that require hardware to function.
Implemented in makVrv::DtVirtualRealitySettingsWidget.
|
pure 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. This should be called when the available channels change.
Implemented in makVrv::DtVirtualRealitySettingsWidget.
|
pure 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. This should be called when the available observers change.
Implemented in makVrv::DtVirtualRealitySettingsWidget.
|
pure 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. This should be called when the attached observer changes outside the UI.
Implemented in makVrv::DtVirtualRealitySettingsWidget.
|
pure 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. This should be called when the flip overlays setting changes outside the UI.
Implemented in makVrv::DtVirtualRealitySettingsWidget.
|
pure 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.
Implemented in makVrv::DtVirtualRealitySettingsWidget.
| boost::signalslib::signal<void(bool)> makVrv::DtVirtualRealitySettingsInterface::signal_enabledChanged |
Signal emitted when the mirroring mode is changed.
This signal is emitted when the user selects a different mirroring option from the dropdown in the UI.
| mirroring | The new mirroring mode selected |
| boost::signalslib::signal<void(makArchives::DtVirtualRealitySettingsRecord::DtMirroring)> makVrv::DtVirtualRealitySettingsInterface::signal_mirroringChanged |
Signal emitted when the mirroring mode is changed.
This signal is emitted when the user selects a different mirroring option from the dropdown in the UI.
| mirroring | The new mirroring mode selected |
| boost::signalslib::signal<void(std::string)> makVrv::DtVirtualRealitySettingsInterface::signal_mirrorChannelChanged |
Signal emitted when the mirror channel is changed.
This signal is emitted when the user selects a different channel for mirroring the HMD view in the UI.
| channelName | The name of the selected mirror channel |
| boost::signalslib::signal<void(std::string)> makVrv::DtVirtualRealitySettingsInterface::signal_attachedObserverChanged |
Signal emitted when the attached observer is changed.
This signal is emitted when the user selects a different observer to attach the HMD view to in the UI.
| observerName | The name of the selected observer |
| boost::signalslib::signal<void(bool)> makVrv::DtVirtualRealitySettingsInterface::signal_flipOverlaysChanged |
Signal emitted when the flip overlays setting is changed.
This signal is emitted when the user toggles the flip overlays checkbox in the UI. Flipping overlays may be necessary to correct their orientation on certain HMD models.
| flip | True if overlays should be flipped, false otherwise |