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 \brief Widget for displaying the live state of a magnetometer object
14 \ingroup Hardware Magnetometer Widget
15 **/
16 class MagnetometerWidget : public QWidget
17 {
18 public:
19 MagnetometerWidget(QWidget* parent = nullptr);
21 public:
22 static void SetMagneticCalibrationCallback(const std::function<void(PopupInfo info, OrientationSensor* sensor)>& function);
23 protected:
24 void init();
25 protected slots:
27 protected:
28 static std::function<void(PopupInfo info, OrientationSensor* sensor)> s_magnetic_calibration_function;
29 protected:
35 };
36}
A core widget that allows the user to click one of many button types.
Definition Button.h:66
Widget for displaying the live state of a magnetometer object.
Definition MagnetometerWidget.h:17
static std::function< void(PopupInfo info, OrientationSensor *sensor)> s_magnetic_calibration_function
Definition MagnetometerWidget.h:28
OrientationSensor * m_sensor
Definition MagnetometerWidget.h:33
QCustomLabel * m_compass_label
Definition MagnetometerWidget.h:31
QCustomLineEdit * m_grid_compass_offset
Definition MagnetometerWidget.h:32
void setSensor(OrientationSensor *sensor)
ProgressWidget * m_intensity
Definition MagnetometerWidget.h:34
Button * m_enable_button
Definition MagnetometerWidget.h:30
MagnetometerWidget(QWidget *parent=nullptr)
static void SetMagneticCalibrationCallback(const std::function< void(PopupInfo info, OrientationSensor *sensor)> &function)
Used to report the orientation of a Hardware object within 3D space.
Definition OrientationSensor.h:86
Displays the progress, either horizontally as a bar or as a roand spin dial. Contains various options...
Definition ProgressWidget.h:47
Displays translated text. No user interaction functionality is provided. The visual appearance of the...
Definition QCustomLabel.h:46
A line edit allows users to enter and edit a single line of plain text with useful editing functions,...
Definition QCustomLineEdit.h:56
Definition ACIColor.h:37
Class which is used to pass arguments and requests for creating a popup dialog or widget....
Definition PopupInfo.h:15