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

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

Gestion des output

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