API Documentation
Loading...
Searching...
No Matches
MagnetometerWidget.h
Go to the documentation of this file.
1#pragma once
2#include <QWidget>
3namespace NDEVR
4{
5 class ProgressWidget;
6 struct PopupInfo;
7 class Button;
8 class QCustomLabel;
9 class OrientationSensor;
10 class QCustomLineEdit;
11
12 /**--------------------------------------------------------------------------------------------------
13 Class: MagneticDeclinationDialog
14
15 \brief Widget for displaying the live state of a magnetometer object
16 \ingroup Hardware Magnetometer Widget
17 *-----------------------------------------------------------------------------------------------**/
18 class MagnetometerWidget : public QWidget
19 {
20 public:
21 MagnetometerWidget(QWidget* parent = nullptr);
22 void setSensor(OrientationSensor* sensor);
23 public:
24 static void SetMagneticCalibrationCallback(const std::function<void(PopupInfo info, OrientationSensor* sensor)>& function);
25 protected:
26 void init();
27 protected slots:
28 void onUpdatedSlot();
29 protected:
30 static std::function<void(PopupInfo info, OrientationSensor* sensor)> s_magnetic_calibration_function;
31 protected:
37 };
38}
Definition Button.h:60
Widget for displaying the live state of a magnetometer object.
Definition MagnetometerWidget.h:19
void init()
Definition MagnetometerWidget.cpp:98
static std::function< void(PopupInfo info, OrientationSensor *sensor)> s_magnetic_calibration_function
Definition MagnetometerWidget.h:30
OrientationSensor * m_sensor
Definition MagnetometerWidget.h:35
QCustomLabel * m_compass_label
Definition MagnetometerWidget.h:33
QCustomLineEdit * m_grid_compass_offset
Definition MagnetometerWidget.h:34
void setSensor(OrientationSensor *sensor)
Definition MagnetometerWidget.cpp:25
ProgressWidget * m_intensity
Definition MagnetometerWidget.h:36
Button * m_enable_button
Definition MagnetometerWidget.h:32
MagnetometerWidget(QWidget *parent=nullptr)
Definition MagnetometerWidget.cpp:20
void onUpdatedSlot()
Definition MagnetometerWidget.cpp:44
static void SetMagneticCalibrationCallback(const std::function< void(PopupInfo info, OrientationSensor *sensor)> &function)
Definition MagnetometerWidget.cpp:40
Used to report the orientation of a Hardware object within 3D space.
Definition OrientationSensor.h:88
Definition ProgressWidget.h:43
Definition QCustomLabel.h:42
Definition QCustomLineEdit.h:118
Definition ACIColor.h:37
Definition PopupInfo.h:10