source: pacpussensors/trunk/StdDbtPlayerComponents/ImageViewer.h@ 16

Last change on this file since 16 was 16, checked in by DHERBOMEZ Gérald, 11 years ago

add standards replay components for some sensors that has to be used with DBITEPlayer application: StdDbtPlayerComponents

File size: 1.1 KB
Line 
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
22class QMutex;
23
24class STDDBTPLAYERCOMPONENTS_API ImageViewer
25 : public QFrame
26{
27 Q_OBJECT
28
29public:
30 ImageViewer();
31 ~ImageViewer();
32
33 void setMutex(QMutex * imageMutex);
34
35public Q_SLOTS:
36 void display(QImage * image);
37
38protected Q_SLOTS:
39 void paintEvent(QPaintEvent * e);
40
41private:
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.