API Documentation
Loading...
Searching...
No Matches
MagnetometerWidget.h
Go to the documentation of this file.
1
#pragma once
2
#include <QWidget>
3
namespace
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
:
32
Button
*
m_enable_button
=
nullptr
;
33
QCustomLabel
*
m_compass_label
=
nullptr
;
34
QCustomLineEdit
*
m_grid_compass_offset
=
nullptr
;
35
OrientationSensor
*
m_sensor
=
nullptr
;
36
ProgressWidget
*
m_intensity
=
nullptr
;
37
};
38
}
NDEVR::Button
Definition
Button.h:60
NDEVR::MagnetometerWidget
Widget for displaying the live state of a magnetometer object.
Definition
MagnetometerWidget.h:19
NDEVR::MagnetometerWidget::init
void init()
Definition
MagnetometerWidget.cpp:98
NDEVR::MagnetometerWidget::s_magnetic_calibration_function
static std::function< void(PopupInfo info, OrientationSensor *sensor)> s_magnetic_calibration_function
Definition
MagnetometerWidget.h:30
NDEVR::MagnetometerWidget::m_sensor
OrientationSensor * m_sensor
Definition
MagnetometerWidget.h:35
NDEVR::MagnetometerWidget::m_compass_label
QCustomLabel * m_compass_label
Definition
MagnetometerWidget.h:33
NDEVR::MagnetometerWidget::m_grid_compass_offset
QCustomLineEdit * m_grid_compass_offset
Definition
MagnetometerWidget.h:34
NDEVR::MagnetometerWidget::setSensor
void setSensor(OrientationSensor *sensor)
Definition
MagnetometerWidget.cpp:25
NDEVR::MagnetometerWidget::m_intensity
ProgressWidget * m_intensity
Definition
MagnetometerWidget.h:36
NDEVR::MagnetometerWidget::m_enable_button
Button * m_enable_button
Definition
MagnetometerWidget.h:32
NDEVR::MagnetometerWidget::MagnetometerWidget
MagnetometerWidget(QWidget *parent=nullptr)
Definition
MagnetometerWidget.cpp:20
NDEVR::MagnetometerWidget::onUpdatedSlot
void onUpdatedSlot()
Definition
MagnetometerWidget.cpp:44
NDEVR::MagnetometerWidget::SetMagneticCalibrationCallback
static void SetMagneticCalibrationCallback(const std::function< void(PopupInfo info, OrientationSensor *sensor)> &function)
Definition
MagnetometerWidget.cpp:40
NDEVR::OrientationSensor
Used to report the orientation of a Hardware object within 3D space.
Definition
OrientationSensor.h:88
NDEVR::ProgressWidget
Definition
ProgressWidget.h:43
NDEVR::QCustomLabel
Definition
QCustomLabel.h:42
NDEVR::QCustomLineEdit
Definition
QCustomLineEdit.h:118
NDEVR
Definition
ACIColor.h:37
NDEVR::PopupInfo
Definition
PopupInfo.h:10
HardwareWidgets
Headers
MagnetometerWidget.h