source: pacpussensors/trunk/StdDbtPlayerComponents/DbtPlyImageManager.h@ 110

Last change on this file since 110 was 110, checked in by DHERBOMEZ Gérald, 9 years ago
  • minor modifications about dllexport and dllimport macros usages
File size: 1.5 KB
Line 
1/*********************************************************************
2// created: 2007/04/12 - 16:30
3
4//
5// author: Elie Al Alam & Gerald Dherbomez
6//
7// version: $Id: $
8//
9// purpose: Dbite Player Image Manager header file
10*********************************************************************/
11
12#ifndef DBTPLYIMAGEMANAGER_H
13#define DBTPLYIMAGEMANAGER_H
14
15#include <qobject.h>
16
17#include "Pacpus/DbitePlayer/DbtPlyFileManager.h"
18
19
20class QImage;
21class QMutex;
22
23namespace pacpus {
24
25class ShMem;
26class ImageViewer;
27
28///
29/// shmem=STRING (name of output shared memory) default=IMAGE
30class PACPUSLIB_API DbtPlyImageManager
31 : public DbtPlyFileManager
32{
33 Q_OBJECT
34
35public:
36 DbtPlyImageManager(QString name);
37 ~DbtPlyImageManager();
38
39 virtual COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config);
40
41 void displayUI();
42
43private:
44 QString mShMemName;
45 QString imageFile_;
46 QImage * im_;
47
48 ImageViewer * imviewer_;
49
50protected:
51 void processData(road_time_t, road_timerange_t, void * dataBuffer);
52 virtual void startActivity();
53 virtual void stopActivity();
54
55Q_SIGNALS:
56 void displayIm(QImage *);
57
58private:
59 QMutex * imageMutex_;
60 ShMem * shMem_;
61 bool firstTime;
62
63 road_time_t tic_;
64 void tic();
65 void toc(char * text);
66
67 void YtoRGB32(unsigned char * dest, unsigned char * src);
68};
69
70} // namespace pacpus
71
72#endif // DBTPLYIMAGEMANAGER_H
Note: See TracBrowser for help on using the repository browser.