#include <qvgui/qvisioninterface.h>
Signals | |
void | closed () |
Public Member Functions | |
QVisionInterface (QWidget *parent=0) | |
Constructs a QVisionInterface object, given the QVision object which work (properties, result images, etc...) will be inspected. | |
~QVisionInterface () | |
void | closeEvent (QCloseEvent *event) |
This is a class that should be used to create an unique GUI object for any QVision application. Creating this object in a QVision application is optional. If done so, the application will provide a window to the user with different sliders, checkboxes and buttons to control worker input properties (see Dynamic properties ) of integer, double and boolean type, and video input flow for the program:
This object should be created after the QVApplication object of the program, and before the call to exec(), generally in the main() function. For a general usage of this class in a real QVision application, see QVision's basic programming model. section.
Follows a description of the buttons and their functionallity:
Pause button ![]() | This button freezes the image that the camera offers to the workers registered in it. If the camera was open in real time mode, the video will continue in the background, but the workers will not read fresh frames. Otherwise the camera will continue exactly at the frame following the one where it was paused, when resuming.
|
Resume button ![]() | This button resumes actualizations 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 functionallity for the camera object, like reproduction speed, and information about the video source, like fps, size of the images, and so:
![]() |
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 ![]() | When a worker is paused, calls to QVWorker::iterate function are suspended, until the user pushes resume button. Any worker with an input property connected to an output property of a paused worker is also paused, until the latter resumes the execution.
|
Resume button ![]() | If the worker is paused, its execution can be resumed by the user pushing this button.
|
Step button ![]() | If this button is pushed when a worker is paused, function iterate() will be called one single time, and then worker status will return to paused.
|
Stop button ![]() | This button stops the worker. No more calls to iterate() function will be done, the properties will be unlinked from any other property holder, and freezed, allowing any other worker connected synchrounously to this to continue with those values.
|
Cpu statistics button ![]() | This button opens a detailed cpu usage plot. It shows a window with the cpu time stadistical plot of the timeflags defined in the iterate() function of the worker. You can see an example of this plot in the following figure:
![]() |
Definition at line 115 of file qvisioninterface.h.
QVisionInterface::QVisionInterface | ( | QWidget * | parent = 0 |
) |
Constructs a QVisionInterface object, given the QVision object which work (properties, result images, etc...) will be inspected.
name | identifier for the object to be created. |
Definition at line 27 of file qvisioninterface.cpp.
References closed(), QVPropertyHolder::getName(), and qvApp.
void QVisionInterface::closed | ( | ) | [signal] |
Emited when the image canvas window closes.
Referenced by closeEvent(), and QVisionInterface().