IncrementalPlot Class Reference

A plotting widget that handles incremental addition of data. More...

#include <IncrementalPlot.hh>

Inherits QwtPlot.

Public Slots

void Add (const QString &_label, const QPointF &_pt)
 Add a new point to a curve. More...
 
void Add (const QString &_label, const std::list< QPointF > &_pts)
 Add new points to a curve. More...
 

Public Member Functions

 IncrementalPlot (QWidget *_parent=NULL)
 Constructor. More...
 
virtual ~IncrementalPlot ()
 Destructor. More...
 
void Clear (const QString &_label)
 Clear a single curve from the plot. More...
 
void Clear ()
 Clear all points from the plot. More...
 
bool HasCurve (const QString &_label)
 Return true if the plot has the labled curve. More...
 
virtual QSize sizeHint () const
 Give QT a size hint. More...
 
void Update ()
 Update all the curves in the plot. More...
 

Protected Member Functions

void dragEnterEvent (QDragEnterEvent *_evt)
 Used to accept drag enter events. More...
 
void dropEvent (QDropEvent *_evt)
 Used to accept drop events. More...
 

Detailed Description

A plotting widget that handles incremental addition of data.

Constructor & Destructor Documentation

§ IncrementalPlot()

IncrementalPlot ( QWidget *  _parent = NULL)

Constructor.

Parameters
[in]_parentPointer to a parent widget

§ ~IncrementalPlot()

virtual ~IncrementalPlot ( )
virtual

Destructor.

Member Function Documentation

§ Add [1/2]

void Add ( const QString &  _label,
const QPointF &  _pt 
)
slot

Add a new point to a curve.

Parameters
[in]_labelName of the curve to add a point to. A curve will be added if it doesn't exist.
[in]_ptPoint to add.

§ Add [2/2]

void Add ( const QString &  _label,
const std::list< QPointF > &  _pts 
)
slot

Add new points to a curve.

Parameters
[in]_labelName of the curve to add a point to. A curve will be added if it doesn't exist.
[in]_ptPoints to add.

§ Clear() [1/2]

void Clear ( const QString &  _label)

Clear a single curve from the plot.

Parameters
[in]_labelName of the curve to remove.

§ Clear() [2/2]

void Clear ( )

Clear all points from the plot.

§ dragEnterEvent()

void dragEnterEvent ( QDragEnterEvent *  _evt)
protected

Used to accept drag enter events.

Parameters
[in]_evtThe drag event.

§ dropEvent()

void dropEvent ( QDropEvent *  _evt)
protected

Used to accept drop events.

Parameters
[in]_evtThe drop event.

§ HasCurve()

bool HasCurve ( const QString &  _label)

Return true if the plot has the labled curve.

Parameters
[in]_labelName of the curve to check for.
Returns
True if _label is currently plotted.

§ sizeHint()

virtual QSize sizeHint ( ) const
virtual

Give QT a size hint.

Returns
Default size of the plot.

§ Update()

void Update ( )

Update all the curves in the plot.


The documentation for this class was generated from the following file: