Subversion Repositories seema-scanner

Rev

Rev 24 | Rev 26 | 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>
1 jakw 8
 
9 jakw 9
#include "SMPreferenceDialog.h"
4 jakw 10
#include "SMCaptureWorker.h"
24 jakw 11
#include "SMTriangulator.h"
4 jakw 12
 
13
#include <opencv2/opencv.hpp>
14
#include <pcl/point_cloud.h>
15
#include <pcl/point_types.h>
16
 
23 jakw 17
 
1 jakw 18
namespace Ui {
23 jakw 19
    class SMScanner;
1 jakw 20
}
21
 
23 jakw 22
class SMScanner : public QMainWindow{
1 jakw 23
    Q_OBJECT
24
 
23 jakw 25
    public:
26
        explicit SMScanner(QWidget *parent = 0);
27
        void closeEvent(QCloseEvent *event);
28
        ~SMScanner();
1 jakw 29
 
23 jakw 30
    private slots:
31
        void on_actionPreferences_triggered();
4 jakw 32
 
23 jakw 33
        void onReceiveFrame(unsigned int camId, cv::Mat frame);
34
        void onReceiveCalibrationSet(CalibrationSet calibrationSet);
35
 
36
        void on_singleCalibrationButton_clicked();
37
 
38
        void on_calibrationRotationDial_sliderReleased();
39
 
25 jakw 40
        void on_calibrationListWidget_currentRowChanged(int currentRow);
41
 
42
        void on_calibrateButton_clicked();
43
 
1 jakw 44
private:
23 jakw 45
        Ui::SMScanner *ui;
4 jakw 46
 
23 jakw 47
        QSettings settings;
4 jakw 48
 
23 jakw 49
        SMPreferenceDialog preferenceDialog;
4 jakw 50
 
23 jakw 51
        SMCaptureWorker *captureWorker;
52
        QThread *captureWorkerThread;
4 jakw 53
 
24 jakw 54
        SMTriangulator *triangulator;
4 jakw 55
 
23 jakw 56
        std::vector< CalibrationSet > calibrationData;
57
        std::vector< FrameSequence > captureData;
58
        std::vector< pcl::PointCloud<pcl::PointXYZRGB>::Ptr > pointClouds;
25 jakw 59
 
60
        bool calibrationReviewMode;
1 jakw 61
};
62
 
63
#endif // SMSCANNER_H