API Documentation
Loading...
Searching...
No Matches
AlignGyroButton.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/Button.h>
4#include <NDEVR/OrientationSensor.h>
5namespace NDEVR
6{
7 class OrientationSensor;
8 class WindowManager;
9 struct PopupInfo;
10 /**--------------------------------------------------------------------------------------------------
11 \brief A button that allows the user to align, or define the orientation, for a OrientationSensor.
12 **/
14 {
15 Q_OBJECT
16 public:
17 explicit AlignGyroButton(QWidget* parent = nullptr);
19 void setIgnoreSounds(bool ignore_sounds);
20 void setShowWide(bool show_wide);
22 void setAllowNewCalibration(bool allow);
23 void setAllowVerifyCalibration(bool allow);
24 void setAllowEditCalibration(bool allow);
25 signals:
29 protected slots:
32 protected:
35 protected:
36 Time m_last_time = Time(0);
39 QTimer* m_stale_value_timer = nullptr;
42 bool m_allow_new_calibration = true;
43 bool m_allow_verify_calibration = true;
44 bool m_allow_edit_calibration = true;
45 };
46}
#define HARDWARE_WIDGETS_API
Definition DLLInfo.h:56
A button that allows the user to align, or define the orientation, for a OrientationSensor.
Definition AlignGyroButton.h:14
void setAllowNewCalibration(bool allow)
void calibrateGyro(PopupInfo info)
void setIgnoreSounds(bool ignore_sounds)
void setAllowVerifyCalibration(bool allow)
OrientationSensor * m_sensor
Definition AlignGyroButton.h:38
void setSensor(OrientationSensor *sensor)
bool m_ignore_sounds
Definition AlignGyroButton.h:41
GyroState m_last_gyro_state
Definition AlignGyroButton.h:37
void showCalibrationOptionsPopup(PopupInfo info)
AlignGyroButton(QWidget *parent=nullptr)
void verifyGyro(PopupInfo info)
void setAllowEditCalibration(bool allow)
void setShowWide(bool show_wide)
bool m_show_wide
Definition AlignGyroButton.h:40
A core widget that allows the user to click one of many button types.
Definition Button.h:66
Used to report the orientation of a Hardware object within 3D space.
Definition OrientationSensor.h:86
Represents a timestamp with utilities for manipulation and conversion.
Definition Time.h:54
Definition ACIColor.h:37
GyroState
Used by OrientationSensor to display the current state of any available gyro.
Definition OrientationSensor.h:43
Class which is used to pass arguments and requests for creating a popup dialog or widget....
Definition PopupInfo.h:15