API Documentation
Loading...
Searching...
No Matches
CalibrateGyroButton.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;
11 {
12 Q_OBJECT
13 public:
14 explicit CalibrateGyroButton(QWidget* parent = nullptr);
15 void setSensor(OrientationSensor* sensor);
16 void setIgnoreSounds(bool ignore_sounds);
17 void setShowWide(bool show_wide);
18 void showCalibrationOptionsPopup(PopupInfo info);
19 void setAllowNewCalibration(bool allow);
20 void setAllowVerifyCalibration(bool allow);
21 void setAllowEditCalibration(bool allow);
22 signals:
26 protected slots:
27 void updatedSlot();
28 void sensorDestroyedSlot();
29 protected:
30 void calibrateGyro(PopupInfo info);
31 void verifyGyro(PopupInfo info);
32 protected:
33 Time m_last_time = Time(0);
36 QTimer* m_stale_value_timer = nullptr;
39 bool m_allow_new_calibration = true;
40 bool m_allow_verify_calibration = true;
41 bool m_allow_edit_calibration = true;
42 };
43}
#define HARDWARE_WIDGETS_API
Definition DLLInfo.h:74
Definition Button.h:60
Definition CalibrateGyroButton.h:11
OrientationSensor * m_sensor
Definition CalibrateGyroButton.h:35
bool m_ignore_sounds
Definition CalibrateGyroButton.h:38
GyroState m_last_gyro_state
Definition CalibrateGyroButton.h:34
bool m_show_wide
Definition CalibrateGyroButton.h:37
Used to report the orientation of a Hardware object within 3D space.
Definition OrientationSensor.h:88
Represents a timestamp with utilities for manipulation and conversion.
Definition Time.h:54
Definition ACIColor.h:37
GyroState
Definition OrientationSensor.h:39
Definition PopupInfo.h:10