MNE-CPP  beta 1.0
Public Member Functions | Protected Member Functions | List of all members
XDISPLIB::RealTimeSampleArrayWidget Class Reference

The NewRealTimeSampleArrayWidget class provides a real-time curve display. More...

#include <realtimesamplearraywidget.h>

Inheritance diagram for XDISPLIB::RealTimeSampleArrayWidget:
XDISPLIB::NewMeasurementWidget

Public Member Functions

 RealTimeSampleArrayWidget (QSharedPointer< NewRealTimeSampleArray > &pRTSA, QSharedPointer< QTime > &pTime, QWidget *parent=0)
 
 ~RealTimeSampleArrayWidget ()
 
virtual void update (XMEASLIB::NewMeasurement::SPtr pMeasurement)
 
virtual void init ()
 
- Public Member Functions inherited from XDISPLIB::NewMeasurementWidget
 NewMeasurementWidget (QWidget *parent=0)
 
virtual ~NewMeasurementWidget ()
 
QList< QAction * > getDisplayActions ()
 
QList< QWidget * > getDisplayWidgets ()
 

Protected Member Functions

virtual void paintEvent (QPaintEvent *event)
 
virtual void resizeEvent (QResizeEvent *event)
 
virtual void mousePressEvent (QMouseEvent *mouseEvent)
 
virtual void mouseMoveEvent (QMouseEvent *mouseEvent)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
virtual void mouseDoubleClickEvent (QMouseEvent *event)
 
virtual void wheelEvent (QWheelEvent *wheelEvent)
 
- Protected Member Functions inherited from XDISPLIB::NewMeasurementWidget
void addDisplayAction (QAction *pAction)
 
void addDisplayWidget (QWidget *pWidget)
 

Detailed Description

The NewRealTimeSampleArrayWidget class provides a real-time curve display.

DECLARE CLASS NewRealTimeSampleArrayWidget

Definition at line 97 of file realtimesamplearraywidget.h.

Constructor & Destructor Documentation

RealTimeSampleArrayWidget::RealTimeSampleArrayWidget ( QSharedPointer< NewRealTimeSampleArray > &  pRTSA,
QSharedPointer< QTime > &  pTime,
QWidget *  parent = 0 
)

Constructs a RealTimeSampleArrayWidget which is a child of parent.

Parameters
[in]pRTSApointer to real-time sample array measurement.
[in]pTimepointer to application time.
[in]parentpointer 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 ( )

Destroys the NewRealTimeSampleArrayWidget.

Definition at line 124 of file realtimesamplearraywidget.cpp.

Member Function Documentation

void RealTimeSampleArrayWidget::init ( )
virtual

Initialise the NewRealTimeSampleArrayWidget.

Implements XDISPLIB::NewMeasurementWidget.

Definition at line 244 of file realtimesamplearraywidget.cpp.

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]eventpointer 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]mouseEventpointer 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]mouseEventpointer 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]eventpointer 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]eventpointer 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]eventpointer to ResizeEvent -> not used.

Definition at line 528 of file realtimesamplearraywidget.cpp.

void RealTimeSampleArrayWidget::update ( XMEASLIB::NewMeasurement::SPtr  pMeasurement)
virtual

Is called when new data are available.

Parameters
[in]pMeasurementpointer to measurement -> not used because its direct attached to the measurement.

Implements XDISPLIB::NewMeasurementWidget.

Definition at line 200 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]wheelEventpointer 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: