05Robot 3.0

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

CameraPreview.h
Go to the documentation of this file.
1
7 #ifndef CameraPreview_H
8 #define CameraPreview_H
9
10 #include <QWidget>
11 #include "ui_CameraPreview.h"
12 #include "CameraObject.h"
13 #include "CameraThread.h"
14 #include <QMenu>
15
16 #include <opencv2/opencv.hpp>
17 #include <opencv2/highgui/highgui.hpp>
18 #include <opencv2/imgproc/imgproc.hpp>
25 class CameraPreview : public QWidget
26 {
27 Q_OBJECT
28
29 public:
30 CameraThread * ct;
31 CameraPreview(CameraThread*,QWidget *parent = 0, Qt::WindowFlags flags = 0);
32 ~CameraPreview();
33
34 public:
35 Ui::CameraPreview ui;
36
37 public slots:
44 void frameIn(cv::Mat*, int, int);
48 void Properties();
52 virtual void contextMenuRequested(QPoint point);
56 virtual void contextMenuEvent ( QContextMenuEvent * event );
57
58
59
60 signals:
64 void closing(CameraPreview*);
65
66 private:
67 void closeEvent(QCloseEvent * event);
68 QDialog *dlg;
69 QMenu* contextMenu;
70 QAction* actionProperties;
71 QAction* actionClose;
72 };
74 #endif // MOCAP_H
CameraPreview::CameraPreview
CameraPreview(CameraThread *, QWidget *parent=0, Qt::WindowFlags flags=0)
CameraPreview::frameIn
void frameIn(cv::Mat *, int, int)
Update displayed picture.
CameraPreview::contextMenuEvent
virtual void contextMenuEvent(QContextMenuEvent *event)
Triggers context menu event.
CameraThread.h
CameraPreview::ct
CameraThread * ct
Definition: CameraPreview.h:30
CameraThread
Wrapper object containing single camera working thread.
Definition: CameraThread.h:18
CameraPreview::contextMenuRequested
virtual void contextMenuRequested(QPoint point)
Opens context menu.
CameraPreview
Camera preview widget.
Definition: CameraPreview.h:25
CameraObject.h
CameraPreview::closing
void closing(CameraPreview *)
Emitted on window close.
CameraPreview::~CameraPreview
~CameraPreview()
CameraPreview::Properties
void Properties()
Opens properties dialog.