Rev | Line | |
---|
[16] | 1 | /*********************************************************************
|
---|
| 2 | // created: 2006/06/09 - 7:58
|
---|
| 3 | // filename: ImageViewer.h
|
---|
| 4 | //
|
---|
| 5 | // author: Gerald Dherbomez
|
---|
| 6 | //
|
---|
| 7 | // version: $Id: ImageViewer.h 1239 2012-11-28 16:30:00Z kurdejma $
|
---|
| 8 | //
|
---|
| 9 | // purpose: use this class to display an image
|
---|
| 10 | *********************************************************************/
|
---|
| 11 |
|
---|
| 12 | #ifndef IMAGEVIEWER_H
|
---|
| 13 | #define IMAGEVIEWER_H
|
---|
| 14 |
|
---|
| 15 | #include "StdDbtPlayerComponentsConfig.h"
|
---|
| 16 | #include "kernel/road_time.h"
|
---|
| 17 |
|
---|
| 18 | //# include "../../include/VisualMemoryManager/struct.h"
|
---|
| 19 |
|
---|
| 20 | #include <QFrame>
|
---|
| 21 |
|
---|
| 22 | class QMutex;
|
---|
| 23 |
|
---|
| 24 | class STDDBTPLAYERCOMPONENTS_API ImageViewer
|
---|
| 25 | : public QFrame
|
---|
| 26 | {
|
---|
| 27 | Q_OBJECT
|
---|
| 28 |
|
---|
| 29 | public:
|
---|
| 30 | ImageViewer();
|
---|
| 31 | ~ImageViewer();
|
---|
| 32 |
|
---|
| 33 | void setMutex(QMutex * imageMutex);
|
---|
| 34 |
|
---|
| 35 | public Q_SLOTS:
|
---|
| 36 | void display(QImage * image);
|
---|
| 37 |
|
---|
| 38 | protected Q_SLOTS:
|
---|
| 39 | void paintEvent(QPaintEvent * e);
|
---|
| 40 |
|
---|
| 41 | private:
|
---|
| 42 | QPixmap * imageBuffer_; // the pixmap that will be displayed
|
---|
| 43 | QMutex * imageMutex_; // the mutex that protects access to the shared image
|
---|
| 44 |
|
---|
| 45 | road_time_t tic_;
|
---|
| 46 | void tic();
|
---|
| 47 | void toc(char * text);
|
---|
| 48 | };
|
---|
| 49 |
|
---|
| 50 | #endif // IMAGEVIEWER_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.