source: pacpusframework/branches/2.0-beta1/include/PacpusCityVIP/Video/commun/ImageViewer.h@ 89

Last change on this file since 89 was 89, checked in by morasjul, 11 years ago

PACPUS 2.0 Beta deployed in new branch

Major changes:
-Add communication interface between components
-Add examples for communications interface (TestComponents)
-Move to Qt5 support

  • Property svn:executable set to *
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 "DbtPlyVisionConfig.h"
16#include "kernel/road_time.h"
17
18//# include "../../include/VisualMemoryManager/struct.h"
19
20#include <QFrame>
21
22class QMutex;
23
24class DBTPLYVISION_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.