-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathscannerwindow.h
More file actions
108 lines (83 loc) · 2.49 KB
/
scannerwindow.h
File metadata and controls
108 lines (83 loc) · 2.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#ifndef SCANNERWINDOW_H
#define SCANNERWINDOW_H
#include <QDialog>
#include <QtSerialPort/QSerialPort>
#include <QObject>
#include <QtCore/QtGlobal>
#include <QMainWindow>
#include "qcustomplot.h"
#include "intensitymap.h"
#include "surfacegraph.h"
#include <QtWidgets/QApplication>
#include <QtWidgets/QWidget>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QRadioButton>
#include <QtWidgets/QSlider>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QLabel>
#include <QtWidgets/QMessageBox>
#include <QtGui/QPainter>
#include <QtGui/QScreen>
#include <QObject>
#include <QDebug>
#include <QImage>
class scannerwindow :public QObject
{
Q_OBJECT
public:
explicit scannerwindow(QList<int>, QMainWindow *parent = 0,bool load=0, QTextStream* stream=nullptr);
~scannerwindow();
QWidget* widget;
Q3DSurface *graph;
SurfaceGraph *modifier;
QList<QByteArray> mock;
void initializeBitmapForward(QCustomPlot*);
void initializeBitmapBackward(QCustomPlot*);
void initializeBitmapCombined(QCustomPlot*);
public slots:
void close();
void getBitmapScreen();
void AFMButtonHandler(bool);
void endScan();
void saveImage();
void realtimeDataSlotUpdate(QList <QByteArray>);
void ShowForwardContextMenu(const QPoint &pos);
void ShowBackwardContextMenu(const QPoint &pos);
void ShowCombinedContextMenu(const QPoint &pos);
void invertPlot(int);
void interpolatePlot(int);
void thermalPlot(int);
void grayscalePlot(int);
void hotPlot(int);
void coldPlot(int);
void polarPlot(int);
signals:
void AFMStart();
void AFMDone();
private:
double yIndex=0;
QCustomPlot *bitmapForward;
QCustomPlot *bitmapBackward;
QCustomPlot *bitmapCombined;
QCPColorMap *colorMapForward;
QCPColorScale *colorScaleForward;
QCPMarginGroup *marginGroupForward;
QCPColorMap *colorMapBackward;
QCPColorScale *colorScaleBackward;
QCPMarginGroup *marginGroupBackward;
QCPColorMap *colorMapCombined;
QCPColorScale *colorScaleCombined;
QCPMarginGroup *marginGroupCombined;
QWidget* container;
QList<int> parameters;
QPushButton *AFM_Scan_3D_RB;
QPushButton *BitmapView;
QPushButton *SaveSurface;
void realtimeDataSlotForward(QList <QByteArray>);
void realtimeDataSlotBackward(QList <QByteArray>);
void realtimeDataSlotCombined(QList <QByteArray>);
};
#endif // SCANNERWINDOW_H