A plotting widget that handles incremental addition of data.
More...
#include <IncrementalPlot.hh>
Inherits QwtPlot.
|
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...
|
|
A plotting widget that handles incremental addition of data.
§ IncrementalPlot()
Constructor.
- Parameters
-
[in] | _parent | Pointer to a parent widget |
§ ~IncrementalPlot()
§ Add [1/2]
void Add |
( |
const QString & |
_label, |
|
|
const QPointF & |
_pt |
|
) |
| |
|
slot |
Add a new point to a curve.
- Parameters
-
[in] | _label | Name of the curve to add a point to. A curve will be added if it doesn't exist. |
[in] | _pt | Point to add. |
§ Add [2/2]
void Add |
( |
const QString & |
_label, |
|
|
const std::list< QPointF > & |
_pts |
|
) |
| |
|
slot |
Add new points to a curve.
- Parameters
-
[in] | _label | Name of the curve to add a point to. A curve will be added if it doesn't exist. |
[in] | _pt | Points to add. |
§ Clear() [1/2]
void Clear |
( |
const QString & |
_label | ) |
|
Clear a single curve from the plot.
- Parameters
-
[in] | _label | Name of the curve to remove. |
§ Clear() [2/2]
Clear all points from the plot.
§ dragEnterEvent()
void dragEnterEvent |
( |
QDragEnterEvent * |
_evt | ) |
|
|
protected |
Used to accept drag enter events.
- Parameters
-
§ dropEvent()
void dropEvent |
( |
QDropEvent * |
_evt | ) |
|
|
protected |
Used to accept drop events.
- Parameters
-
§ HasCurve()
bool HasCurve |
( |
const QString & |
_label | ) |
|
Return true if the plot has the labled curve.
- Parameters
-
[in] | _label | Name 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()
Update all the curves in the plot.
The documentation for this class was generated from the following file: