Subversion Repositories seema-scanner

Rev

Rev 42 | Rev 67 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 jakw 1
#ifndef SMSCANNER_H
2
#define SMSCANNER_H
3
 
4
#include <QMainWindow>
4 jakw 5
#include <QSettings>
6
#include <QThread>
7
#include <QCloseEvent>
27 jakw 8
#include <QModelIndex>
44 jakw 9
#include <QListWidgetItem>
1 jakw 10
 
9 jakw 11
#include "SMPreferenceDialog.h"
4 jakw 12
#include "SMCaptureWorker.h"
27 jakw 13
#include "SMCalibrationWorker.h"
14
#include "SMReconstructionWorker.h"
4 jakw 15
 
16
#include <opencv2/opencv.hpp>
17
#include <pcl/point_cloud.h>
18
#include <pcl/point_types.h>
19
 
23 jakw 20
 
1 jakw 21
namespace Ui {
23 jakw 22
    class SMScanner;
1 jakw 23
}
24
 
23 jakw 25
class SMScanner : public QMainWindow{
1 jakw 26
    Q_OBJECT
27
 
23 jakw 28
    public:
29
        explicit SMScanner(QWidget *parent = 0);
30
        void closeEvent(QCloseEvent *event);
31
        ~SMScanner();
1 jakw 32
 
23 jakw 33
    private slots:
34
        void on_actionPreferences_triggered();
4 jakw 35
 
23 jakw 36
        void onReceiveFrame(unsigned int camId, cv::Mat frame);
27 jakw 37
        void onReceiveCalibrationSet(SMCalibrationSet calibrationSet);
38
        void onReceiveFrameSequence(SMFrameSequence frameSequence);
30 jakw 39
        void onReceiveRotatedTo(float angle);
27 jakw 40
 
26 jakw 41
        void onCalibrationSetProcessed(int idx);
29 jakw 42
        void onCalibrationFrameResult(int idx, int camID, bool success, cv::Mat result);
27 jakw 43
 
23 jakw 44
        void on_singleCalibrationButton_clicked();
45
 
27 jakw 46
        void on_calibrateButton_clicked();
47
 
48
        void onCalibrationDone();
49
        void on_calibrationListWidget_itemSelectionChanged();
50
 
51
        void on_singleCaptureButton_clicked();
52
 
53
 
23 jakw 54
        void on_calibrationRotationDial_sliderReleased();
55
 
27 jakw 56
        void on_captureRotationDial_sliderReleased();
25 jakw 57
 
27 jakw 58
        void on_captureTreeWidget_itemSelectionChanged();
25 jakw 59
 
30 jakw 60
        void on_batchCalibrationButton_clicked();
61
 
62
        void on_batchCaptureButton_clicked();
63
 
36 jakw 64
        void on_actionExport_Sets_triggered();
65
 
66
        void on_actionExport_Sequences_triggered();
67
 
41 jakw 68
        void on_reconstructButton_clicked();
42 jakw 69
        void onNewPointCloud(SMPointCloud pc);
41 jakw 70
 
44 jakw 71
        void on_actionExport_Point_Clouds_triggered();
42 jakw 72
 
44 jakw 73
        void on_pointCloudsListWidget_itemChanged(QListWidgetItem *item);
74
 
75
        void on_actionExport_Parameters_triggered();
76
 
1 jakw 77
private:
23 jakw 78
        Ui::SMScanner *ui;
4 jakw 79
 
23 jakw 80
        QSettings settings;
4 jakw 81
 
23 jakw 82
        SMPreferenceDialog preferenceDialog;
4 jakw 83
 
23 jakw 84
        SMCaptureWorker *captureWorker;
85
        QThread *captureWorkerThread;
4 jakw 86
 
27 jakw 87
        SMCalibrationWorker *calibrationWorker;
88
        QThread *calibrationWorkerThread;
4 jakw 89
 
27 jakw 90
        SMReconstructionWorker *reconstructionWorker;
91
        QThread *reconstructionWorkerThread;
92
 
93
        std::vector< SMCalibrationSet > calibrationData;
94
        std::vector< SMFrameSequence > captureData;
41 jakw 95
        std::vector< SMPointCloud > pointCloudData;
25 jakw 96
 
97
        bool calibrationReviewMode;
27 jakw 98
        bool captureReviewMode;
1 jakw 99
};
100
 
101
#endif // SMSCANNER_H