source: pacpussensors/trunk/Vislab/VislabComponent.hpp@ 145

Last change on this file since 145 was 142, checked in by ldecherf, 7 years ago

Ajout de la classe outputter et modification d'openCV

File size: 1.3 KB
Line 
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#include <opencv2/opencv.hpp>
18#include <opencv2/highgui.hpp>
19
20#ifdef WIN32
21# ifdef VISLAB_COMPONENT_EXPORTS
22# define VISLAB_COMPONENT_API __declspec(dllexport)
23# else
24# define VISLAB_COMPONENT_API __declspec(dllimport)
25# endif
26#else
27# define VISLAB_COMPONENT_API
28#endif
29
30namespace pacpus
31{
32 class VISLAB_COMPONENT_API VislabComponent
33 : public QObject
34 , public ComponentBase
35 {
36 Q_OBJECT
37 public:
38
39 //device(){}
40 /// Ctor of VislabComponent.
41 VislabComponent(QString const& name);
42
43 /// Dtor of VislabComponent
44 ~VislabComponent();
45
46 /// Stop the processing thread.
47 virtual void stopActivity();
48
49 /// Start the processing thread.
50 virtual void startActivity();
51
52 /// Configure the component.
53 virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config);
54
55 public:
56 virtual void addOutputs();
57
58 private:
59 std::string mOutputFileName;
60
61 protected:
62 VislabCamera camera;
63
64 };
65}
66
67#endif
Note: See TracBrowser for help on using the repository browser.