The NewRealTimeSampleArrayWidget class provides a real-time curve display.
More...
#include <newrealtimesamplearraywidget.h>
The NewRealTimeSampleArrayWidget class provides a real-time curve display.
DECLARE CLASS NewRealTimeSampleArrayWidget
Definition at line 97 of file newrealtimesamplearraywidget.h.
NewRealTimeSampleArrayWidget::NewRealTimeSampleArrayWidget |
( |
QSharedPointer< NewRealTimeSampleArray > & |
pRTSA, |
|
|
QSharedPointer< QTime > & |
pTime, |
|
|
QWidget * |
parent = 0 |
|
) |
| |
NewRealTimeSampleArrayWidget::~NewRealTimeSampleArrayWidget |
( |
| ) |
|
void NewRealTimeSampleArrayWidget::init |
( |
| ) |
|
|
virtual |
void NewRealTimeSampleArrayWidget::mouseDoubleClickEvent |
( |
QMouseEvent * |
event | ) |
|
|
protectedvirtual |
Is called when mouse button is double clicked. Depending on the current selected tool: Function is (un-)freezing the real-time curve or an annotation point is set.
- Parameters
-
[in] | event | pointer to MouseEvent -> not used. |
Definition at line 573 of file newrealtimesamplearraywidget.cpp.
void NewRealTimeSampleArrayWidget::mouseMoveEvent |
( |
QMouseEvent * |
mouseEvent | ) |
|
|
protectedvirtual |
Is called when mouse is moved. Function is getting the current mouse position for measurement of the real-time curve and to zoom in or out.
- Parameters
-
[in] | mouseEvent | pointer to MouseEvent. |
Definition at line 554 of file newrealtimesamplearraywidget.cpp.
void NewRealTimeSampleArrayWidget::mousePressEvent |
( |
QMouseEvent * |
mouseEvent | ) |
|
|
protectedvirtual |
Is called when mouse button is pressed. Function is getting the current mouse position and to differ between left(measure curve) and right(zoom) mouse button.
- Parameters
-
[in] | mouseEvent | pointer to MouseEvent. |
Definition at line 536 of file newrealtimesamplearraywidget.cpp.
void NewRealTimeSampleArrayWidget::mouseReleaseEvent |
( |
QMouseEvent * |
event | ) |
|
|
protectedvirtual |
Is called when mouse button is released. Function is stopping measurement of the real-time curve or the zooming.
- Parameters
-
[in] | event | pointer to MouseEvent -> not used. |
Definition at line 563 of file newrealtimesamplearraywidget.cpp.
void NewRealTimeSampleArrayWidget::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
protectedvirtual |
Is called to paint the incoming real-time data. Function is painting the real-time curve, the grid, the measurement curve (when left button is pressed) and is calculating the zoom (when right button is pressed -> ToDo it's maybe better done in press event directly).
- Parameters
-
[in] | event | pointer to PaintEvent -> not used. |
Definition at line 270 of file newrealtimesamplearraywidget.cpp.
void NewRealTimeSampleArrayWidget::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
protectedvirtual |
void NewRealTimeSampleArrayWidget::wheelEvent |
( |
QWheelEvent * |
wheelEvent | ) |
|
|
protectedvirtual |
Is called when mouse wheel is used. Function is selecting the tool (freezing/annotation);
- Parameters
-
[in] | wheelEvent | pointer to WheelEvent. Depending on the delta movement a tool is selected. |
Definition at line 595 of file newrealtimesamplearraywidget.cpp.
The documentation for this class was generated from the following files: