Last change
on this file since 145 was 115, checked in by DHERBOMEZ Gérald, 9 years ago |
add outputs to image replay manager
|
File size:
1.6 KB
|
Rev | Line | |
---|
[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 |
|
---|
| 20 | class QImage;
|
---|
| 21 | class QMutex;
|
---|
| 22 |
|
---|
| 23 | namespace pacpus {
|
---|
| 24 |
|
---|
| 25 | class ShMem;
|
---|
[110] | 26 | class ImageViewer;
|
---|
[16] | 27 |
|
---|
| 28 | ///
|
---|
| 29 | /// shmem=STRING (name of output shared memory) default=IMAGE
|
---|
[111] | 30 | class STDDBTPLAYERCOMPONENTS_API DbtPlyImageManager
|
---|
[16] | 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_;
|
---|
[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.