05Robot 3.0

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

ProcessorWindow.h
Go to the documentation of this file.
1
7 #ifndef PROCESSORWINDOW_H
8 #define PROCESSORWINDOW_H
9
10 #include <QWidget>
11 #include <QAction>
12 #include <QDialog>
13 #include <QMenu>
14 #include "ProcessorObject.h"
15 #include "ProcessorThread.h"
16
17 #include "CameraPreview.h"
18
19 //#include "GLScene.h"
20
21 #include <opencv2/opencv.hpp>
22 #include <opencv2/highgui/highgui.hpp>
23 #include <opencv2/imgproc/imgproc.hpp>
24 #include <QPropertyEditorWidget.h>
25
32 class ProcessorWindow : public QWidget
33 {
34 Q_OBJECT
35
36 public:
44 ProcessorWindow(ProcessorThread*,QWidget *parent = 0, Qt::WindowFlags flags = 0);
48 ~ProcessorWindow();
55 virtual void updateLists(QList<CameraPreview*>, QList<ProcessorWindow*>){};
56
57 public slots:
64 virtual void frameIn(int id, cv::Mat* frame);
68 void Properties();
72 virtual void contextMenuRequested(QPoint point);
76 virtual void contextMenuEvent ( QContextMenuEvent * event );
77
78
79 signals:
83 void closing(ProcessorWindow*);
87 void connectInputs(QList<CameraObject*>, QList<ProcessorObject*>);
91 void signalSpecial(QString);
92 protected:
93 QPropertyEditorWidget *prop;
94 public:
98 ProcessorThread * pt;
99 private:
100 void closeEvent(QCloseEvent * event);
101 QDialog *dlg;
102 QMenu* contextMenu;
103 QAction* actionProperties;
104 QAction* actionClose;
105
106 };
108 #endif // PROCESSORWINDOW_H
ProcessorWindow::ProcessorWindow
ProcessorWindow(ProcessorThread *, QWidget *parent=0, Qt::WindowFlags flags=0)
Default constructor, initializes processor calibration window.
ProcessorWindow
Generic camera processor window base class.
Definition: ProcessorWindow.h:32
ProcessorThread.h
CameraPreview.h
ProcessorWindow::signalSpecial
void signalSpecial(QString)
For communication between ProcessorObject and ProcessorWindow.
ProcessorWindow::Properties
void Properties()
Opens properties dialog.
ProcessorWindow::updateLists
virtual void updateLists(QList< CameraPreview * >, QList< ProcessorWindow * >)
Allows derived classes to update list of input cameras and processors, empty in base class...
Definition: ProcessorWindow.h:55
ProcessorWindow::~ProcessorWindow
~ProcessorWindow()
Default destructor, cleans up.
ProcessorThread
Wrapper object containing single processor working thread.
Definition: ProcessorThread.h:18
ProcessorWindow::frameIn
virtual void frameIn(int id, cv::Mat *frame)
Update displayed picture.
ProcessorWindow::prop
QPropertyEditorWidget * prop
Definition: ProcessorWindow.h:93
ProcessorWindow::closing
void closing(ProcessorWindow *)
Emitted on window close.
ProcessorObject.h
ProcessorWindow::contextMenuEvent
virtual void contextMenuEvent(QContextMenuEvent *event)
Triggers context menu event.
ProcessorWindow::pt
ProcessorThread * pt
Pointer to corresponding ProcessorThread.
Definition: ProcessorWindow.h:98
ProcessorWindow::connectInputs
void connectInputs(QList< CameraObject * >, QList< ProcessorObject * >)
Updates connected devices list.
ProcessorWindow::contextMenuRequested
virtual void contextMenuRequested(QPoint point)
Opens context menu.