API Documentation
Loading...
Searching...
No Matches
CalibratorWidget.h
Go to the documentation of this file.
1
#pragma once
2
#include "
DLLInfo.h
"
3
#include <QWidget>
4
namespace
NDEVR
5
{
6
class
ProgressWidget;
7
class
Button;
8
class
IMUCalibrator;
9
class
FileChooserDialog;
10
class
FileFormat;
11
class
HARDWARE_WIDGETS_API
CalibratorWidget
:
public
QWidget
12
{
13
public
:
14
CalibratorWidget
(QWidget* parent =
nullptr
);
15
CalibratorWidget
(
IMUCalibrator
* calibrator, QWidget* parent =
nullptr
);
16
static
FileFormat
CalibrationTemplateFormat();
17
void
setCalibrator(
IMUCalibrator
* calibrator);
18
void
startCalibration();
19
void
cancelCalibration();
20
void
saveToLocation();
21
void
saveCalibration();
22
protected
:
23
void
init();
24
protected
slots:
25
void
onUpdatedSlot();
26
protected
:
27
ProgressWidget
*
m_progress_widget
;
28
Button
* m_start_button =
nullptr
;
29
Button
* m_save_button =
nullptr
;
30
Button
* m_save_as_button =
nullptr
;
31
IMUCalibrator
*
m_calibrator
;
32
FileChooserDialog
* m_file_dialog =
nullptr
;
33
bool
m_is_calibrating =
false
;
34
};
35
}
DLLInfo.h
HARDWARE_WIDGETS_API
#define HARDWARE_WIDGETS_API
Definition
DLLInfo.h:74
NDEVR::Button
Definition
Button.h:60
NDEVR::CalibratorWidget
Definition
CalibratorWidget.h:12
NDEVR::CalibratorWidget::m_calibrator
IMUCalibrator * m_calibrator
Definition
CalibratorWidget.h:31
NDEVR::CalibratorWidget::m_progress_widget
ProgressWidget * m_progress_widget
Definition
CalibratorWidget.h:27
NDEVR::FileChooserDialog
Definition
FileChooserDialog.h:68
NDEVR::FileFormat
Definition
FileFormat.h:38
NDEVR::IMUCalibrator
Definition
IMUCalibrator.h:27
NDEVR::ProgressWidget
Definition
ProgressWidget.h:43
NDEVR
Definition
ACIColor.h:37
HardwareWidgets
Headers
CalibratorWidget.h