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 | #include <20150310_lib3dv-1.2.0/src/display.h>
|
---|
15 |
|
---|
16 | #include <lib3dv-1.2.0/lib3dv/device.h>
|
---|
17 |
|
---|
18 | #ifdef WIN32
|
---|
19 | # ifdef VISLAB_COMPONENT_EXPORTS
|
---|
20 | # define VISLAB_COMPONENT_API __declspec(dllexport)
|
---|
21 | # else
|
---|
22 | # define VISLAB_COMPONENT_API __declspec(dllimport)
|
---|
23 | # endif
|
---|
24 | #else
|
---|
25 | # define VISLAB_COMPONENT_API
|
---|
26 | #endif
|
---|
27 |
|
---|
28 | namespace pacpus
|
---|
29 | {
|
---|
30 | class VISLAB_COMPONENT_API VislabComponent
|
---|
31 | : public QObject
|
---|
32 | , public ComponentBase
|
---|
33 | {
|
---|
34 | Q_OBJECT
|
---|
35 | public:
|
---|
36 |
|
---|
37 | //device(){}
|
---|
38 | /// Ctor of VislabComponent.
|
---|
39 | VislabComponent(QString const& name);
|
---|
40 |
|
---|
41 | /// Dtor of VislabComponent
|
---|
42 | ~VislabComponent();
|
---|
43 |
|
---|
44 | /// Stop the processing thread.
|
---|
45 | virtual void stopActivity();
|
---|
46 |
|
---|
47 | /// Start the processing thread.
|
---|
48 | virtual void startActivity();
|
---|
49 |
|
---|
50 | /// Configure the component.
|
---|
51 | virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config);
|
---|
52 |
|
---|
53 |
|
---|
54 | // Working thread, grabbing frame from a webcam.
|
---|
55 | DbiteFile mDBTFile;
|
---|
56 |
|
---|
57 | public:
|
---|
58 | virtual void addOutputs();
|
---|
59 | //device(){}
|
---|
60 |
|
---|
61 | private:
|
---|
62 | std::string mOutputFileName;
|
---|
63 |
|
---|
64 | protected:
|
---|
65 | VislabCamera camera;
|
---|
66 |
|
---|
67 | };
|
---|
68 | }
|
---|
69 |
|
---|
70 | #endif
|
---|