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

Last change on this file since 118 was 115, checked in by DHERBOMEZ Gérald, 9 years ago

add outputs to image replay manager

File size: 1.6 KB
RevLine 
[16]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
[50]17#include "Pacpus/DbitePlayer/DbtPlyFileManager.h"
[111]18#include "StdDbtPlayerComponentsConfig.h"
[16]19
20class QImage;
21class QMutex;
22
23namespace pacpus {
24
25class ShMem;
[110]26class ImageViewer;
[16]27
28///
29/// shmem=STRING (name of output shared memory) default=IMAGE
[111]30class STDDBTPLAYERCOMPONENTS_API DbtPlyImageManager
[16]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_;
[111]60 // ShMem * shMem_; // deprecated
[16]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);
[115]68
69 virtual void addInputs();
70 virtual void addOutputs();
[16]71};
72
73} // namespace pacpus
74
75#endif // DBTPLYIMAGEMANAGER_H
Note: See TracBrowser for help on using the repository browser.