Flair
Framework Libre Air
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties
SimuCamera.h
Go to the documentation of this file.
1 // %flair:license{
2 // This file is part of the Flair framework distributed under the
3 // CECILL-C License, Version 1.0.
4 // %flair:license}
13 #ifndef SIMUCAMERA_H
14 #define SIMUCAMERA_H
15 
16 #include <Camera.h>
17 #include <Thread.h>
18 #include <cxcore.h>
19 
20 namespace flair {
21 namespace core {
22 class SharedMem;
23 }
24 namespace gui {
25 class SpinBox;
26 }
27 }
28 
29 namespace flair {
30 namespace sensor {
35 class SimuCamera : public core::Thread, public Camera {
36 public:
50  SimuCamera(const core::FrameworkManager *parent, std::string name,
51  uint16_t width, uint16_t height, uint8_t channels, uint32_t dev_id,
52  uint8_t priority);
53 
67  SimuCamera(const core::IODevice *parent, std::string name, uint16_t width,
68  uint16_t height, uint8_t channels, uint32_t dev_id);
69 
74  ~SimuCamera();
75 
76 protected:
82 
83 private:
90  void Run(void);
91 
99  void UpdateFrom(const core::io_data *data){};
100 
101  gui::SpinBox *data_rate;
102  size_t buf_size;
103  IplImage *img;
104 };
105 } // end namespace sensor
106 } // end namespace flair
107 #endif // SIMUCAMERA_H
Abstract class for data types.
Definition: io_data.h:77
Base class for Camera.
Definition: Camera.h:39
Abstract class for input/ouput system.
Definition: IODevice.h:44
Class displaying a QSpinBox on the ground station.
Definition: SpinBox.h:28
core::SharedMem * shmem
SharedMem to access datas.
Definition: SimuCamera.h:81
Main class of the Framework library.
Definition: FrameworkManager.h:45
Abstract class for a thread.
Class defining a shared memory.
Definition: SharedMem.h:32
Abstract class for a thread.
Definition: Thread.h:38
Base class for Camera.
SimuCamera(const core::FrameworkManager *parent, std::string name, uint16_t width, uint16_t height, uint8_t channels, uint32_t dev_id, uint8_t priority)
Constructor.
Class for a simulation camera.
Definition: SimuCamera.h:35