API Documentation
Loading...
Searching...
No Matches
CalibrationWidget.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#if NDEVR_CALIBRATION
4#include <NDEVR/BaseValues.h>
5#include <QWidget>
6namespace NDEVR
7{
8 class OrientationSensor;
9 class CalibrateGyroButton;
10 class PropertiesButton;
11 class QTModelManager;
12 class MagnetometerWidget;
13 class Button;
14 struct PopupInfo;
15 class HARDWARE_WIDGETS_API CalibrationWidget : public QWidget
16 {
17 Q_OBJECT
18 public:
19 CalibrationWidget(QTModelManager* manager, QWidget* parent = nullptr);
20 CalibrationWidget(QWidget* parent = nullptr);
21 void setModelManager(QTModelManager* manager);
22 void setSensor(OrientationSensor* sensor);
23 void showCalibrationOptionsPopup(PopupInfo info);
24 void showMagnetometerOptionsPopup(PopupInfo info);
25 CalibrateGyroButton* calibrationButton() const;
26 Button* magnetometerButton() const;
27 static void SetMagneticCalibrationCallback(const std::function<void(PopupInfo info, OrientationSensor* sensor)>& function);
28 signals:
29 void updatedSignal();
30 protected slots:
31 void updatedSlot();
32 protected:
33 void init();
34 protected:
35 static std::function<void(PopupInfo info, OrientationSensor* sensor)> s_magnetic_calibration_function;
36 protected:
37 CalibrateGyroButton* m_calibrate_button;
38 MagnetometerWidget* m_magnetometer_widget = nullptr;
39 Button* m_magnetometer_button;
40 PropertiesButton* m_properties_button;
41 OrientationSensor* m_sensor;
42 QTModelManager* m_manager;
43 uint01 m_last_state;
44 bool m_is_calibrating;
45 };
46}
47#endif
#define HARDWARE_WIDGETS_API
Definition DLLInfo.h:74
Definition ACIColor.h:37
uint8_t uint01
-Defines an alias representing a 1 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:98