- bookworm 6.1.4-2
- testing 6.1.4-2
- unstable 6.1.4-2
- experimental 6.2.0-1
QwtPlotSeriesItem(3) | Qwt User's Guide | QwtPlotSeriesItem(3) |
NAME¶
QwtPlotSeriesItem - Base class for plot items representing a series of samples.
SYNOPSIS¶
#include <qwt_plot_seriesitem.h>
Inherits QwtPlotItem, and QwtAbstractSeriesStore.
Inherited by QwtPlotAbstractBarChart, QwtPlotCurve, QwtPlotHistogram, QwtPlotIntervalCurve, QwtPlotSpectroCurve, QwtPlotTradingCurve, and QwtPlotVectorField.
Public Member Functions¶
QwtPlotSeriesItem (const QString
&title=QString())
QwtPlotSeriesItem (const QwtText &title)
virtual ~QwtPlotSeriesItem ()
Destructor. void setOrientation (Qt::Orientation)
Qt::Orientation orientation () const
virtual void draw (QPainter *, const QwtScaleMap &xMap,
const QwtScaleMap &yMap, const QRectF &canvasRect) const
override
Draw the complete series. virtual void drawSeries (QPainter *painter,
const QwtScaleMap &xMap, const QwtScaleMap &yMap,
const QRectF &canvasRect, int from, int to) const =0
virtual QRectF boundingRect () const override
virtual void updateScaleDiv (const QwtScaleDiv &, const
QwtScaleDiv &) override
Update the item to changes of the axes scale division.
Protected Member Functions¶
virtual void dataChanged () override
dataChanged() indicates, that the series has been changed.
Additional Inherited Members¶
Detailed Description¶
Base class for plot items representing a series of samples.
Definition at line 24 of file qwt_plot_seriesitem.h.
Constructor & Destructor Documentation¶
QwtPlotSeriesItem::QwtPlotSeriesItem (const QString & title = QString()) [explicit]¶
Constructor
Parameters
Definition at line 40 of file qwt_plot_seriesitem.cpp.
QwtPlotSeriesItem::QwtPlotSeriesItem (const QwtText & title) [explicit]¶
Constructor
Parameters
Definition at line 29 of file qwt_plot_seriesitem.cpp.
Member Function Documentation¶
QRectF QwtPlotSeriesItem::boundingRect () const [override], [virtual]¶
Returns
Note
Reimplemented from QwtPlotItem.
Reimplemented in QwtPlotVectorField, QwtPlotTradingCurve, QwtPlotMultiBarChart, QwtPlotIntervalCurve, QwtPlotHistogram, and QwtPlotBarChart.
Definition at line 97 of file qwt_plot_seriesitem.cpp.
void QwtPlotSeriesItem::draw (QPainter * painter, const QwtScaleMap & xMap, const QwtScaleMap & yMap, const QRectF & canvasRect) const [override], [virtual]¶
Draw the complete series.
Parameters
xMap Maps x-values into pixel coordinates.
yMap Maps y-values into pixel coordinates.
canvasRect Contents rectangle of the canvas
Implements QwtPlotItem.
Definition at line 90 of file qwt_plot_seriesitem.cpp.
virtual void QwtPlotSeriesItem::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
Parameters
xMap Maps x-values into pixel coordinates.
yMap Maps y-values into pixel coordinates.
canvasRect Contents rectangle 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 QwtPlotVectorField, QwtPlotTradingCurve, QwtPlotSpectroCurve, QwtPlotMultiBarChart, QwtPlotIntervalCurve, QwtPlotHistogram, QwtPlotCurve, and QwtPlotBarChart.
Qt::Orientation QwtPlotSeriesItem::orientation () const¶
Returns
See also
Definition at line 77 of file qwt_plot_seriesitem.cpp.
void QwtPlotSeriesItem::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.
See also
Definition at line 62 of file qwt_plot_seriesitem.cpp.
void QwtPlotSeriesItem::updateScaleDiv (const QwtScaleDiv & xScaleDiv, const QwtScaleDiv & yScaleDiv) [override], [virtual]¶
Update the item to changes of the axes scale division. Update the item, when the axes of plot have changed. The default implementation does nothing, but items that depend on the scale division (like QwtPlotGrid()) have to reimplement updateScaleDiv()
updateScaleDiv() is only called when the ScaleInterest interest is enabled. The default implementation does nothing.
Parameters
yScaleDiv Scale division of the y-axis
See also
Reimplemented from QwtPlotItem.
Definition at line 102 of file qwt_plot_seriesitem.cpp.
Author¶
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Sun Jul 18 2021 | Version 6.2.0 |