Subversion Repositories seema-scanner

Rev

Rev 20 | Rev 25 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 20 Rev 23
Line 6... Line 6...
6
*/
6
*/
7
 
7
 
8
#ifndef SMCaptureWorker_H
8
#ifndef SMCaptureWorker_H
9
#define SMCaptureWorker_H
9
#define SMCaptureWorker_H
10
 
10
 
11
#include <QObject>
11
#include "SMTypes.h"
-
 
12
#include "ProjectorOpenGL.h"
-
 
13
#include "Camera.h"
-
 
14
#include "RotationStage.h"
12
 
15
 
-
 
16
#include <QObject>
13
#include <opencv2/opencv.hpp>
17
#include <opencv2/opencv.hpp>
14
#include "Camera.h"
-
 
15
 
18
 
-
 
19
enum mode {
-
 
20
    modeIdle,
16
enum tAquisition{ aquisitionContinuous, aquisitionSingle };
21
    modeCalibrationSet,
-
 
22
    modeFrameSequence
-
 
23
};
17
 
24
 
18
class SMCaptureWorker : public QObject{
25
class SMCaptureWorker : public QObject{
19
    Q_OBJECT
26
    Q_OBJECT
20
 
27
 
21
    public:
28
    public:
22
        SMCaptureWorker(): isWorking(false){}
29
        SMCaptureWorker(){}
23
        ~SMCaptureWorker();
30
        ~SMCaptureWorker();
24
    public slots:
31
    public slots:
25
        void setup();
32
        void setup();
26
        void doWork();
33
        void doWork();
-
 
34
        void rotateTo(float angle);
-
 
35
        void acquireCalibrationSet(float angle);
-
 
36
        void acquireCalibrationSets(std::vector<float> angles);
-
 
37
        void acquireFrameSequence(float angle);
-
 
38
        void acquireFrameSequences(std::vector<float> angles);
-
 
39
        void abort();
27
        void stopWorking();
40
        void stopWork();
28
    signals:
41
    signals:
29
        void newFrame(unsigned int camID, cv::Mat frame);
42
        void newFrame(unsigned int camID, cv::Mat frame);
30
        void newFrameSet(std::vector<cv::Mat> frameSet);
43
        void newCalibrationSet(CalibrationSet frameSet);
-
 
44
        void newFrameSequence(FrameSequence frameSequence);
-
 
45
        void busy();
-
 
46
        void done();
31
        void finished();
47
        void finished();
32
    private:
48
    private:
33
        bool isWorking;
49
        bool working;
34
 
-
 
-
 
50
        Projector* projector;
35
        Camera* camera0;
51
        Camera* camera0;
36
        Camera* camera1;
52
        Camera* camera1;
37
 
-
 
-
 
53
        RotationStage* rotationStage;
38
};
54
};
39
 
55
 
40
#endif // SMCaptureWorker_H
56
#endif // SMCaptureWorker_H