#include <qvgui/qvgui.h>
Signals | |
void | closed () |
Emited when the image canvas window closes. | |
Public Member Functions | |
QVGUI (QWidget *parent=0) | |
Constructs a QVGUI object, given the QVision object which work (properties, result images, etc...) will be inspected. | |
~QVGUI () | |
void | closeEvent (QCloseEvent *event) |
This class can be used to create an interactive widget that will offer to the user the possibility to control the execution of the different workers registered in the application, the flow of the input video camera objects, and modify the scalar input parameters defined and not linked at the workers (see Dynamic properties ).
This is a sample snapshot for a QVGUI window:
To be correctly initialized a sole instance object of the QVGUI class should be created after the QVApplication object in the main function, and before the call to exec(). For a general usage of this class in a real QVision application, see ProgrammingModel section.
Follows a description of the buttons and their functionality:
Pause button | ![]() | This button stops the camera from publishing new frames from the video source. If the camera is on real-time mode it will keep reading frames, but won't send them to the workers connected to it.
|
Resume button | ![]() | This button resumes grabbing of the images that the registered workers read from the cameras.
|
Step button | ![]() | When the camera is paused, this button makes it read the next frame in the video input, but keeps the camera paused.
|
Stop button | ![]() | This button stops the camera from reading frames from the input source.
|
Camera extended controls button | ![]() | This button opens a new window, with extended control functionality for the camera object, including buttons to control the playing speed. Also, it displays the following information: fps, reproduction speed, size of the video images, seconds elapsed (actual/total) and frames grabbed (read from the video source) / read (sent to the workers). ![]()
|
You can see a preview plot of CPU usage, and some buttons. Execution for the workers can be paused, resumed, stepped, and stopped with them, as if workers were cameras.
Pause button | ![]() | This button suspends the processing of the worker. Every worker synchronized with it will be stopped as well, until the resume button is pushed.
|
Resume button | ![]() | If the worker is paused, pushing this button resumes its execution.
|
Step button | ![]() | This button can be pushed when a worker is paused to make it process it its inputs one time. The worker will still be paused after that.
|
Stop button | ![]() | This button finish the processing of the worker. Its properties will be unlinked and with a freezed value, so any worker connected to it will read the same values from then on.
|
Cpu statistics button | ![]() | This button opens a detailed cpu usage plot for the worker. It shows a window with the cpu time statistical plot of the time flags defined in the iterate() function of the worker. You can see an example of this plot in the following figure:
![]() Function QVWorker::timeFlag() can be used in the body of the QVWorker::iterate() function to configure a time flag in the execution of a worker. |
Each of these widgets is connected to each input property (see section Dynamic properties) from the set of created workers
Definition at line 128 of file qvgui.h.
QVGUI::QVGUI | ( | QWidget * | parent = 0 |
) |