The NewRealTimeSampleArrayWidget class provides a real-time curve display.
More...
#include <realtimesamplearraywidget.h>
The NewRealTimeSampleArrayWidget class provides a real-time curve display.
DECLARE CLASS NewRealTimeSampleArrayWidget
Definition at line 97 of file realtimesamplearraywidget.h.
RealTimeSampleArrayWidget::RealTimeSampleArrayWidget |
( |
QSharedPointer< NewRealTimeSampleArray > & |
pRTSA, |
|
|
QSharedPointer< QTime > & |
pTime, |
|
|
QWidget * |
parent = 0 |
|
) |
| |
Constructs a RealTimeSampleArrayWidget which is a child of parent.
- Parameters
-
[in] | pRTSA | pointer to real-time sample array measurement. |
[in] | pTime | pointer to application time. |
[in] | parent | pointer to parent widget; If parent is 0, the new NumericWidget becomes a window. If parent is another widget, NumericWidget becomes a child window inside parent. NumericWidget is deleted when its parent is deleted. |
Definition at line 85 of file realtimesamplearraywidget.cpp.
RealTimeSampleArrayWidget::~RealTimeSampleArrayWidget |
( |
| ) |
|
void RealTimeSampleArrayWidget::init |
( |
| ) |
|
|
virtual |
void RealTimeSampleArrayWidget::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 realtimesamplearraywidget.cpp.
void RealTimeSampleArrayWidget::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 realtimesamplearraywidget.cpp.
void RealTimeSampleArrayWidget::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 realtimesamplearraywidget.cpp.
void RealTimeSampleArrayWidget::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 realtimesamplearraywidget.cpp.
void RealTimeSampleArrayWidget::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 realtimesamplearraywidget.cpp.
void RealTimeSampleArrayWidget::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
protectedvirtual |
Is called when NewRealTimeSampleArrayWidget is resized.
- Parameters
-
[in] | event | pointer to ResizeEvent -> not used. |
Definition at line 528 of file realtimesamplearraywidget.cpp.
void RealTimeSampleArrayWidget::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 realtimesamplearraywidget.cpp.
The documentation for this class was generated from the following files: