GNU Radio's DISPLAY Package
showpngpicture.h
Go to the documentation of this file.
1#ifndef SHOWPNGPICTURE_HH
2#define SHOWPNGPICTURE_HH
3
4#include <QWidget>
5
6class QTimer;
7class QImage;
8
9namespace Ui {
10class ShowPngPicture;
11}
12
13class ShowPngPicture : public QWidget
14{
15 Q_OBJECT
16
17public:
18 explicit ShowPngPicture(int width, int height, QWidget* parent = 0);
20
21 void presetBottomUp(bool order);
22
23private:
25 int picWidth;
26 int picHeight;
27 int col;
28 int row;
29 bool reverseOrder;
30
31 QImage* p;
32 QRgb* line;
33 QWidget* displayWidget;
34 // QTimer *displayTimer;
35
36 void setNextPixel(int);
37 bool saveImage(QString);
38
39
40public slots:
41 void setPixel(const unsigned char*, int);
43 void storeReverse(bool order);
44
45protected:
46 void paintEvent(QPaintEvent*);
47};
48
49#endif // SHOWPNGPICTURE_HH
void saveImage2File()
void paintEvent(QPaintEvent *)
void setPixel(const unsigned char *, int)
void presetBottomUp(bool order)
void storeReverse(bool order)
ShowPngPicture(int width, int height, QWidget *parent=0)
Definition ui_showpngpicture.h:89
Definition ui_showpngpicture.h:88