The plugin Core class. More...
#include </home/runner/work/yarp-documentation/yarp-documentation/yarp/src/guis/yarpscope/plugin/qtyarpscope.h>
Signals | |
void | setWindowTitle (QString title) |
void | setWindowPosition (int x, int y) |
void | setWindowSize (int w, int h) |
void | intervalLoaded (int interval) |
Public Member Functions | |
QtYARPScope (QQuickItem *parent=0) | |
Q_INVOKABLE bool | parseParameters (QStringList params) |
parse the parameters received from the main container in QstringList form | |
Q_INVOKABLE void | clear () |
clears the data in the current window | |
Q_INVOKABLE void | rescale () |
rescales the graphs in order to contains the maximum and minimum value visible in the window | |
Q_INVOKABLE void | changeInterval (int interval) |
changes the refresh interval | |
Q_INVOKABLE void | playPressed (int check) |
plays or pauses the data flow | |
~QtYARPScope () | |
void | usage () |
Prints the help menu. | |
void | paint (QPainter *painter) override |
paint method. | |
Protected Member Functions | |
void | routeMouseEvents (QMouseEvent *event) |
this function is used to route the mouse events on the core plugin to the relative QCustomPlot. | |
void | routeMouseEvents (QWheelEvent *event) |
this function is used to route the wheel mouse events on the core plugin to the relative QCustomPlot. | |
void | mousePressEvent (QMouseEvent *event) override |
the mouse press event | |
void | mouseReleaseEvent (QMouseEvent *event) override |
the mouse release event | |
void | mouseMoveEvent (QMouseEvent *event) override |
the mouse move event | |
void | mouseDoubleClickEvent (QMouseEvent *event) override |
the mouse double click event | |
void | wheelEvent (QWheelEvent *event) override |
the wheel mouse event | |
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. This Core plugin derived from QQuickPaintedItem and has the flag ItemHasContents set to true, so it can paint itself what it needs.
Definition at line 26 of file qtyarpscope.h.
QtYARPScope::QtYARPScope | ( | QQuickItem * | parent = 0 | ) |
Definition at line 16 of file qtyarpscope.cpp.
QtYARPScope::~QtYARPScope | ( | ) |
Definition at line 36 of file qtyarpscope.cpp.
void QtYARPScope::changeInterval | ( | int | interval | ) |
changes the refresh interval
interval | the interval |
Definition at line 193 of file qtyarpscope.cpp.
void QtYARPScope::clear | ( | ) |
clears the data in the current window
Definition at line 185 of file qtyarpscope.cpp.
|
signal |
|
overrideprotected |
the mouse double click event
event | the event |
Definition at line 342 of file qtyarpscope.cpp.
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
|
override |
paint method.
In this method each Plotter is grabbed from its own QCustomPlot Widget to a Pixmap and then drawed with the QPainter primitive drawPixmap
Definition at line 268 of file qtyarpscope.cpp.
bool QtYARPScope::parseParameters | ( | QStringList | params | ) |
parse the parameters received from the main container in QstringList form
params | the parameter list |
Definition at line 63 of file qtyarpscope.cpp.
void QtYARPScope::playPressed | ( | int | check | ) |
void QtYARPScope::rescale | ( | ) |
rescales the graphs in order to contains the maximum and minimum value visible in the window
Definition at line 201 of file qtyarpscope.cpp.
|
protected |
this function is used to route the mouse events on the core plugin to the relative QCustomPlot.
This method works fairly well but has some limitations on dragging
event | the event |
Definition at line 357 of file qtyarpscope.cpp.
|
protected |
this function is used to route the wheel mouse events on the core plugin to the relative QCustomPlot.
event | the event |
Definition at line 381 of file qtyarpscope.cpp.
|
signal |
|
signal |
|
signal |
void QtYARPScope::usage | ( | ) |
Prints the help menu.
Definition at line 207 of file qtyarpscope.cpp.
|
overrideprotected |