Vislab Project

VislabComponent.hpp
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(){}
39 VislabComponent(QString const& name);
40
42 ~VislabComponent();
43
45 virtual void stopActivity();
46
48 virtual void startActivity();
49
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 OutputInterface<lib3dv::image, VislabComponent>* ImageOutput;
65
66 protected:
67 VislabCamera camera;
68
69 };
70 }
71
72 #endif
pacpus::VislabCamera
Definition: VislabCamera.hpp:27
pacpus::VislabComponent
Definition: VislabComponent.hpp:30
pacpus
Definition: VislabCamera.hpp:25