API Documentation
Loading...
Searching...
No Matches
MagnetometerCalibrationDialog.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/QTModelManager.h>
4#include <NDEVR/Editor.h>
5#include <NDEVR/ApplicationOptions.h>
6#include <QWidget>
7namespace Ui
8{
9 class MagnetometerCalibrationUI;
10}
11namespace NDEVR
12{
13 class OrientationSensor;
14 class QTModelManager;
15 class Button;
16 class FileChooserDialog;
17 class MagneticCalibrationData;
18
19 /**--------------------------------------------------------------------------------------------------
20 \brief Dialog which allows user to edit or create a MagneticCalibrationData object
21 \ingroup Hardware Magnetometer Widget Dialog
22 **/
24 {
25 Q_OBJECT
26 public:
27 MagnetometerCalibrationDialog(const DynamicPointer<QTDesignObject>& object, QWidget* parent = nullptr);
28 MagnetometerCalibrationDialog(QWidget* parent = nullptr);
29 void init();
32 #if NDEVR_VIEWPORT
33 void toPDF();
34 #endif
35 bool event(QEvent* event) override;
36 bool isFinished() const;
38 void cancel();
40 void showMatrix(bool show_matrix);
41 void showClear(bool show_clear);
43 void updateValues() override;
44 signals:
46 protected:
49 public:
52 protected:
53 Ui::MagnetometerCalibrationUI* ui = nullptr;
54 OrientationSensor* m_sensor = nullptr;
55 DesignObjectLookup* m_manager = nullptr;
56 FileChooserDialog* m_file_chooser = nullptr;
57 QTimer* m_countdown_timer = nullptr;
58 Button* m_clear_button = nullptr;
60 bool m_show_popup = true;
61 bool m_is_finished = false;
62 bool m_is_activated = false;
63 bool m_is_saving = false;
64 bool m_show_matrix = true;
65 };
66}
#define HARDWARE_WIDGETS_API
Definition DLLInfo.h:56
The default object to store data of any type that should persist through sessions of the application.
Definition Button.h:57
A core widget that allows the user to click one of many button types.
Definition Button.h:66
A core class where all Design Objects including models, materials, and geometries are stored....
Definition DesignObjectLookup.h:65
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:320
A base class for displaying options for editing a single DesignObject, typically a Model.
Definition Editor.h:48
A dialog designed to allow the user to navigate a filesytem and select or create one or more files or...
Definition FileChooserDialog.h:79
Stores magnetic calibration data as a Model including the transformation and calibration points.
Definition MagneticCalibration.h:14
Dialog which allows user to edit or create a MagneticCalibrationData object.
Definition MagnetometerCalibrationDialog.h:24
DesignObjectLookup * manager()
static ApplicationOption< bool > default_show_matrix
Definition MagnetometerCalibrationDialog.h:50
void showMatrix(bool show_matrix)
bool event(QEvent *event) override
FileChooserDialog * fileChooser(bool is_save)
void setSensor(OrientationSensor *sensor)
void setModelManager(DesignObjectLookup *manager)
MagnetometerCalibrationDialog(QWidget *parent=nullptr)
MagneticCalibrationData calibrationData() const
static ApplicationOption< bool > default_show_clear
Definition MagnetometerCalibrationDialog.h:51
MagnetometerCalibrationDialog(const DynamicPointer< QTDesignObject > &object, QWidget *parent=nullptr)
Used to report the orientation of a Hardware object within 3D space.
Definition OrientationSensor.h:86
Represents a timestamp with utilities for manipulation and conversion.
Definition Time.h:54
Definition ACIColor.h:37
Definition FontEditor.h:6
Defines for a given type (such as sint04, fltp08, UUID, etc) a maximum, minimum, and reserved 'invali...
Definition BaseValues.hpp:233