|
Qwt User's Guide 6.0.0
|
Base class for plot items representing a series of samples. More...
#include <qwt_plot_seriesitem.h>

Public Member Functions | |
| QwtPlotAbstractSeriesItem (const QString &title=QString::null) | |
| QwtPlotAbstractSeriesItem (const QwtText &title) | |
| virtual | ~QwtPlotAbstractSeriesItem () |
| void | setOrientation (Qt::Orientation) |
| Qt::Orientation | orientation () const |
| virtual void | draw (QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &) const |
| virtual void | drawSeries (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const =0 |
Base class for plot items representing a series of samples.
| QwtPlotAbstractSeriesItem::QwtPlotAbstractSeriesItem | ( | const QString & | title = QString::null | ) | [explicit] |
Constructor
| title | Title of the curve |
| QwtPlotAbstractSeriesItem::QwtPlotAbstractSeriesItem | ( | const QwtText & | title | ) | [explicit] |
Constructor
| title | Title of the curve |
| QwtPlotAbstractSeriesItem::~QwtPlotAbstractSeriesItem | ( | ) | [virtual] |
Destructor.
| void QwtPlotAbstractSeriesItem::draw | ( | QPainter * | painter, |
| const QwtScaleMap & | xMap, | ||
| const QwtScaleMap & | yMap, | ||
| const QRectF & | canvasRect | ||
| ) | const [virtual] |
Draw the complete series.
| painter | Painter |
| xMap | Maps x-values into pixel coordinates. |
| yMap | Maps y-values into pixel coordinates. |
| canvasRect | Contents rect of the canvas |
Implements QwtPlotItem.
| virtual void QwtPlotAbstractSeriesItem::drawSeries | ( | QPainter * | painter, |
| const QwtScaleMap & | xMap, | ||
| const QwtScaleMap & | yMap, | ||
| const QRectF & | canvasRect, | ||
| int | from, | ||
| int | to | ||
| ) | const [pure virtual] |
Draw a subset of the samples
| painter | Painter |
| xMap | Maps x-values into pixel coordinates. |
| yMap | Maps y-values into pixel coordinates. |
| canvasRect | Contents rect of the canvas |
| from | Index of the first point to be painted |
| to | Index of the last point to be painted. If to < 0 the curve will be painted to its last point. |
Implemented in QwtPlotCurve, QwtPlotHistogram, QwtPlotIntervalCurve, and QwtPlotSpectroCurve.
| Qt::Orientation QwtPlotAbstractSeriesItem::orientation | ( | ) | const |
| void QwtPlotAbstractSeriesItem::setOrientation | ( | Qt::Orientation | orientation | ) |
Set the orientation of the item.
The orientation() might be used in specific way by a plot item. F.e. a QwtPlotCurve uses it to identify how to display the curve int QwtPlotCurve::Steps or QwtPlotCurve::Sticks style.
1.7.3