The plugin Core class. More...
#include </home/runner/work/yarp-documentation/yarp-documentation/yarp/src/guis/yarpview/plugin/qtyarpview.h>
Signals | |
void | optionsSet () |
void | refreshIntervalChanged () |
void | videoProducerChanged () |
void | posXChanged () |
void | posYChanged () |
void | widthChanged () |
void | heightChanged () |
void | sizeChanged () |
void | sendPortFps (QString avg, QString min, QString max) |
void | sendDisplayFps (QString avg, QString min, QString max) |
void | synchRate (bool check) |
void | autosize (bool check) |
void | setName (QString name) |
void | setTitle (QString inputTitle) |
Public Member Functions | |
QtYARPView (QQuickItem *parent=0) | |
~QtYARPView () | |
Q_INVOKABLE void | freeze (bool check) |
Freeze the video stream. | |
Q_INVOKABLE void | synchDisplayPeriod (bool check) |
Synchs the video stream to the display. | |
Q_INVOKABLE void | synchDisplaySize (bool check) |
Synchs the size of the window with the size of the video stream. | |
Q_INVOKABLE void | changeRefreshInterval (int) |
Changes the refresh interval. | |
Q_INVOKABLE void | saveFrame () |
Saves the current frame. | |
Q_INVOKABLE void | setFileName (QUrl url) |
Sets the current filename of the frame is going to be saved. | |
Q_INVOKABLE void | setFilesName (QUrl url) |
Sets the current filename of the frame set is going to be saved. | |
Q_INVOKABLE void | startDumpFrames () |
Saves the current frame set. | |
Q_INVOKABLE void | stopDumpFrames () |
Stops the current frame set save mode. | |
Q_INVOKABLE bool | parseParameters (QStringList) |
parse the parameters received from the main container in QstringList form | |
Q_INVOKABLE bool | rightClickEnabled () |
Q_INVOKABLE void | clickCoords_2 (int x, int y) |
Q_INVOKABLE void | clickCoords_4 (int start_x, int start_y, int end_x, int end_y) |
Q_INVOKABLE void | rightClickCoords_2 (int x, int y) |
Q_INVOKABLE void | rightClickCoords_4 (int start_x, int start_y, int end_x, int end_y) |
Q_INVOKABLE QString | getPixelAsStr (int x, int y) |
Pics the rgb value of the pixel specified by x and y and return it as a string. | |
QObject * | getVideoProducer () |
returns the videoproducer that acts as bridge between C++ code and QML VideoOutput. | |
int | posX () |
int | posY () |
int | windowWidth () |
int | windowHeight () |
int | refreshInterval () |
Properties | |
QObject * | videoProducer |
int | posX |
Returns the x position from the options. | |
int | posY |
Returns the y position from the options. | |
int | windowWidth |
Returns the width from the options. | |
int | windowHeight |
Returns the height from the options. | |
int | refreshInterval |
Gets the refresh interval from options. | |
The plugin Core class.
this is the plugin core class which acts as bridge between the QML and c++. in the C++ code is implemented the backend logic, instead in the QML is implemented the Visual part.
Definition at line 56 of file qtyarpview.h.
QtYARPView::QtYARPView | ( | QQuickItem * | parent = 0 | ) |
Definition at line 10 of file qtyarpview.cpp.
QtYARPView::~QtYARPView | ( | ) |
Definition at line 30 of file qtyarpview.cpp.
|
signal |
Changes the refresh interval.
interval | an int value representing the interval |
Definition at line 105 of file qtyarpview.cpp.
Definition at line 539 of file qtyarpview.cpp.
Definition at line 513 of file qtyarpview.cpp.
Freeze the video stream.
check | a bool parameter that enables or disables the freeze state |
Definition at line 44 of file qtyarpview.cpp.
Pics the rgb value of the pixel specified by x and y and return it as a string.
x | Integer: The x coordinate of the pixel |
y | Integer: The y coordinate of the pixel |
Definition at line 151 of file qtyarpview.cpp.
QObject * QtYARPView::getVideoProducer | ( | ) |
returns the videoproducer that acts as bridge between C++ code and QML VideoOutput.
Definition at line 53 of file qtyarpview.cpp.
|
signal |
|
signal |
bool QtYARPView::parseParameters | ( | QStringList | params | ) |
parse the parameters received from the main container in QstringList form
params | the parameter list |
Definition at line 231 of file qtyarpview.cpp.
int QtYARPView::posX | ( | ) |
|
signal |
int QtYARPView::posY | ( | ) |
|
signal |
int QtYARPView::refreshInterval | ( | ) |
|
signal |
Definition at line 588 of file qtyarpview.cpp.
Definition at line 562 of file qtyarpview.cpp.
bool QtYARPView::rightClickEnabled | ( | ) |
Definition at line 611 of file qtyarpview.cpp.
void QtYARPView::saveFrame | ( | ) |
Saves the current frame.
Definition at line 111 of file qtyarpview.cpp.
|
signal |
|
signal |
Sets the current filename of the frame is going to be saved.
url | the url to the file |
Definition at line 120 of file qtyarpview.cpp.
Sets the current filename of the frame set is going to be saved.
url | the url to the file |
Definition at line 129 of file qtyarpview.cpp.
|
signal |
|
signal |
|
signal |
void QtYARPView::startDumpFrames | ( | ) |
Saves the current frame set.
Definition at line 135 of file qtyarpview.cpp.
void QtYARPView::stopDumpFrames | ( | ) |
Stops the current frame set save mode.
Definition at line 141 of file qtyarpview.cpp.
Synchs the video stream to the display.
check | a bool parameter that enables or disables the synch option |
Definition at line 87 of file qtyarpview.cpp.
Synchs the size of the window with the size of the video stream.
check | a bool parameter that enables or disables the synch option |
Definition at line 96 of file qtyarpview.cpp.
|
signal |
|
signal |
|
signal |
int QtYARPView::windowHeight | ( | ) |
int QtYARPView::windowWidth | ( | ) |
|
read |
Returns the x position from the options.
Definition at line 62 of file qtyarpview.h.
|
read |
Returns the y position from the options.
Definition at line 63 of file qtyarpview.h.
|
read |
Gets the refresh interval from options.
Definition at line 66 of file qtyarpview.h.
|
read |
Definition at line 61 of file qtyarpview.h.
|
read |
Returns the height from the options.
Definition at line 65 of file qtyarpview.h.
|
read |
Returns the width from the options.
Definition at line 64 of file qtyarpview.h.