NDEVR
API Documentation
DeploymentWidget

A widget used for allowing the user to quickly setup an OrientationSensor for a Deployment. More...

Collaboration diagram for DeploymentWidget:
[legend]

Public Member Functions

 DeploymentWidget (QWidget *parent=nullptr)
 Constructs a DeploymentWidget.
QPalette mainButtonPalette () const
 Returns the palette currently used by the main deployment button.
void requestMagnetometerCalibrationSignal ()
 Emitted when magnetometer calibration is requested.
void setAllowModeSwitch (bool allow)
 Sets whether the user is allowed to switch deployment modes.
void setDeploymentWidgetEnabled (bool enabled)
 Enables or disables the deployment widget and its child controls.
void setIgnoreSounds (bool ignore_sounds)
 Sets whether to suppress deployment-related audio cues.
void setModelManager (QTModelManager *manager)
 Sets the model manager used for design object lookups.
void setSensor (OrientationSensor *sensor)
 Sets the orientation sensor to configure for deployment.
void setupBubbleLevelButton (Button *button)
 Registers a button for bubble level status and control.
void setupGyroButton (Button *button)
 Registers a button for gyroscope status and control.
void setupMagnetometerButton (Button *button)
 Registers a button for magnetometer status and control.
void setupMainButton (Button *button)
 Registers a button as the main deployment action button.
void showBubbleLevelPopup (PopupInfo info)
 Displays a popup with bubble level options.
void showMagnetometerOptionsPopup (PopupInfo info)
 Displays a popup with magnetometer options.

Protected Member Functions

void destroyedSlot ()
 Slot called when the sensor is destroyed.
void updatedSlot ()
 Slot called when the sensor state is updated.

Protected Attributes

AlignmentWidget * m_alignment_widget
 Widget for alignment configuration.
Buffer< QPointer< Button > > m_bubble_level_buttons
 Collection of registered bubble level buttons.
Buffer< QPointer< Button > > m_gyro_buttons
 Collection of registered gyroscope buttons.
bool m_is_enabled = true
 Whether the deployment widget is currently enabled.
Buffer< QPointer< Button > > m_magnetometer_buttons
 Collection of registered magnetometer buttons.
Buffer< QPointer< Button > > m_main_buttons
 Collection of registered main deployment buttons.
DeploymentModeComboboxm_mode_combo
 Combobox for deployment mode selection.
OrientationSensorm_sensor
 The orientation sensor being managed.

Detailed Description

A widget used for allowing the user to quickly setup an OrientationSensor for a Deployment.


Definition at line 140 of file DeploymentWidgets.h.

Constructor & Destructor Documentation

◆ DeploymentWidget()

DeploymentWidget::DeploymentWidget ( QWidget * parent = nullptr)
explicit

Constructs a DeploymentWidget.

Parameters
[in]parentThe parent widget.

Member Function Documentation

◆ mainButtonPalette()

QPalette DeploymentWidget::mainButtonPalette ( ) const

Returns the palette currently used by the main deployment button.

Returns
The QPalette of the main button.

◆ setAllowModeSwitch()

void DeploymentWidget::setAllowModeSwitch ( bool allow)

Sets whether the user is allowed to switch deployment modes.

Parameters
[in]allowWhether mode switching is permitted.

◆ setDeploymentWidgetEnabled()

void DeploymentWidget::setDeploymentWidgetEnabled ( bool enabled)

Enables or disables the deployment widget and its child controls.

Parameters
[in]enabledWhether the widget should be enabled.

◆ setIgnoreSounds()

void DeploymentWidget::setIgnoreSounds ( bool ignore_sounds)

Sets whether to suppress deployment-related audio cues.

Parameters
[in]ignore_soundsWhether to ignore sounds.

◆ setModelManager()

void DeploymentWidget::setModelManager ( QTModelManager * manager)

Sets the model manager used for design object lookups.

Parameters
[in]managerThe QTModelManager instance.

◆ setSensor()

void DeploymentWidget::setSensor ( OrientationSensor * sensor)

Sets the orientation sensor to configure for deployment.

Parameters
[in]sensorThe OrientationSensor to use.

◆ setupBubbleLevelButton()

void DeploymentWidget::setupBubbleLevelButton ( Button * button)

Registers a button for bubble level status and control.

Parameters
[in]buttonThe Button to set up for bubble level interaction.

◆ setupGyroButton()

void DeploymentWidget::setupGyroButton ( Button * button)

Registers a button for gyroscope status and control.

Parameters
[in]buttonThe Button to set up for gyroscope interaction.

◆ setupMagnetometerButton()

void DeploymentWidget::setupMagnetometerButton ( Button * button)

Registers a button for magnetometer status and control.

Parameters
[in]buttonThe Button to set up for magnetometer interaction.

◆ setupMainButton()

void DeploymentWidget::setupMainButton ( Button * button)

Registers a button as the main deployment action button.

Parameters
[in]buttonThe Button to set up as the main deployment button.

◆ showBubbleLevelPopup()

void DeploymentWidget::showBubbleLevelPopup ( PopupInfo info)

Displays a popup with bubble level options.

Parameters
[in]infoThe PopupInfo controlling popup appearance and behavior.

◆ showMagnetometerOptionsPopup()

void DeploymentWidget::showMagnetometerOptionsPopup ( PopupInfo info)

Displays a popup with magnetometer options.

Parameters
[in]infoThe PopupInfo controlling popup appearance and behavior.

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