1 | #ifndef DEF_VISLAB_COMPONENT_HPP
|
---|
2 | #define DEF_VISLAB_COMPONENT_HPP
|
---|
3 |
|
---|
4 | // Includes, project.
|
---|
5 | #include "VislabCamera.hpp"
|
---|
6 |
|
---|
7 | // Includes, qt.
|
---|
8 | #include <QObject>
|
---|
9 |
|
---|
10 | // Includes, pacpus.
|
---|
11 | #include <Pacpus/kernel/ComponentBase.h>
|
---|
12 | #include <Pacpus/kernel/DbiteFile.h>
|
---|
13 | #include <Pacpus/kernel/pacpus.h>
|
---|
14 |
|
---|
15 | #include <lib3dv/device.h>
|
---|
16 |
|
---|
17 | #if (OPENCV_MAJOR == 3)
|
---|
18 | #include <opencv2/opencv.hpp>
|
---|
19 | #include <opencv2/highgui.hpp>
|
---|
20 | #else
|
---|
21 | #include <opencv/cv.h>
|
---|
22 | #include <opencv/highgui.h>
|
---|
23 | #endif
|
---|
24 |
|
---|
25 | #ifdef WIN32
|
---|
26 | # ifdef VISLAB_COMPONENT_EXPORTS
|
---|
27 | # define VISLAB_COMPONENT_API __declspec(dllexport)
|
---|
28 | # else
|
---|
29 | # define VISLAB_COMPONENT_API __declspec(dllimport)
|
---|
30 | # endif
|
---|
31 | #else
|
---|
32 | # define VISLAB_COMPONENT_API
|
---|
33 | #endif
|
---|
34 |
|
---|
35 | namespace pacpus
|
---|
36 | {
|
---|
37 | class VISLAB_COMPONENT_API VislabComponent
|
---|
38 | : public QObject
|
---|
39 | , public ComponentBase
|
---|
40 | {
|
---|
41 | Q_OBJECT
|
---|
42 | public:
|
---|
43 |
|
---|
44 | //device(){}
|
---|
45 | /// Ctor of VislabComponent.
|
---|
46 | VislabComponent(QString const& name);
|
---|
47 |
|
---|
48 | /// Dtor of VislabComponent
|
---|
49 | ~VislabComponent();
|
---|
50 |
|
---|
51 | /// Stop the processing thread.
|
---|
52 | virtual void stopActivity();
|
---|
53 |
|
---|
54 | /// Start the processing thread.
|
---|
55 | virtual void startActivity();
|
---|
56 |
|
---|
57 | /// Configure the component.
|
---|
58 | virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config);
|
---|
59 |
|
---|
60 | public:
|
---|
61 | virtual void addOutputs();
|
---|
62 |
|
---|
63 | private:
|
---|
64 | std::string mOutputFileName;
|
---|
65 |
|
---|
66 | protected:
|
---|
67 | VislabCamera camera;
|
---|
68 |
|
---|
69 | };
|
---|
70 | }
|
---|
71 |
|
---|
72 | #endif
|
---|