NDEVR
API Documentation
MagnetometerCharts.h
1#pragma once
2#include "DLLInfo.h"
3#ifdef USE_MAGNET_CHARTS
4#include <NDEVR/QTModelManager.h>
5#include <QWidget>
6namespace Ui
7{
8 class MagnetometerCalibrationUI;
9}
10namespace NDEVR
11{
12 class MagnetCalibrationChart;
14 class QTModelManager;
24 class NDEVR_CHARTS_API MagnetometerCalibrationChartDialog : public QWidget
25 {
26 Q_OBJECT
27 public:
30 MagnetometerCalibrationDialog(QWidget* parent = nullptr);
32 void init();
35 void setModelManager(DesignObjectLookup* manager);
38 void setSensor(OrientationSensor* sensor);
41 void showSaveToPDF(bool show_save_button);
43 void toPDF();
44 bool event(QEvent* event) override;
47 bool isFinished() const;
48 protected slots:
50 void updateCalibrationObject();
51 protected:
55 FileChooserDialog* fileChooser(bool is_save);
57 void createFileChooser();
58 protected:
59 Ui::MagnetometerCalibrationUI* ui = nullptr;
60 OrientationSensor * m_sensor = nullptr;
61 DesignObjectLookup* m_manager = nullptr;
62 MagnetCalibrationChart* m_a_view;
63 MagnetCalibrationChart* m_b_view;
64 MagnetCalibrationChart* m_c_view;
65 FileChooserDialog* m_file_chooser = nullptr;
66 bool m_is_finished = false;
67 bool m_is_saving = false;
68 };
69}
70#endif
A dialog designed to allow the user to navigate a filesytem and select or create one or more files or...
Forward declaration for design object lookup service.
A wrapper around DesignObjectLookup that provides signal and slot functionality and adds rendering ca...
The primary namespace for the NDEVR SDK.