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 |
|
---|
20 | class QImage;
|
---|
21 | class QMutex;
|
---|
22 |
|
---|
23 | namespace pacpus {
|
---|
24 |
|
---|
25 | class ShMem;
|
---|
26 | class ImageViewer;
|
---|
27 |
|
---|
28 | ///
|
---|
29 | /// shmem=STRING (name of output shared memory) default=IMAGE
|
---|
30 | class PACPUSLIB_API DbtPlyImageManager
|
---|
31 | : public DbtPlyFileManager
|
---|
32 | {
|
---|
33 | Q_OBJECT
|
---|
34 |
|
---|
35 | public:
|
---|
36 | DbtPlyImageManager(QString name);
|
---|
37 | ~DbtPlyImageManager();
|
---|
38 |
|
---|
39 | virtual COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config);
|
---|
40 |
|
---|
41 | void displayUI();
|
---|
42 |
|
---|
43 | private:
|
---|
44 | QString mShMemName;
|
---|
45 | QString imageFile_;
|
---|
46 | QImage * im_;
|
---|
47 |
|
---|
48 | ImageViewer * imviewer_;
|
---|
49 |
|
---|
50 | protected:
|
---|
51 | void processData(road_time_t, road_timerange_t, void * dataBuffer);
|
---|
52 | virtual void startActivity();
|
---|
53 | virtual void stopActivity();
|
---|
54 |
|
---|
55 | Q_SIGNALS:
|
---|
56 | void displayIm(QImage *);
|
---|
57 |
|
---|
58 | private:
|
---|
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.