Qwt User's Guide
svn
|
#include <qwt_plot_curve.h>
Inherits QwtPlotSeriesItem< QPointF >.
Public Types | |
enum | CurveAttribute { Inverted = 0x01, Fitted = 0x02 } |
typedef QFlags< CurveAttribute > | CurveAttributes |
enum | CurveStyle { NoCurve = -1, Lines, Sticks, Steps, Dots, UserCurve = 100 } |
enum | ItemAttribute { Legend = 0x01, AutoScale = 0x02 } |
typedef QFlags< ItemAttribute > | ItemAttributes |
enum | LegendAttribute { LegendNoAttribute = 0x00, LegendShowLine = 0x01, LegendShowSymbol = 0x02, LegendShowBrush = 0x04 } |
typedef QFlags< LegendAttribute > | LegendAttributes |
enum | PaintAttribute { ClipPolygons = 0x01, CacheSymbols = 0x02 } |
typedef QFlags< PaintAttribute > | PaintAttributes |
enum | RenderHint { RenderAntialiased = 1 } |
typedef QFlags< RenderHint > | RenderHints |
enum | RttiValues { Rtti_PlotItem = 0, Rtti_PlotGrid, Rtti_PlotScale, Rtti_PlotMarker, Rtti_PlotCurve, Rtti_PlotSpectroCurve, Rtti_PlotIntervalCurve, Rtti_PlotHistogram, Rtti_PlotSpectrogram, Rtti_PlotSVG, Rtti_PlotUserItem = 1000 } |
Public Member Functions | |
void | attach (QwtPlot *plot) |
double | baseline () const |
virtual QRectF | boundingRect () const |
const QBrush & | brush () const |
int | closestPoint (const QPoint &pos, double *dist=NULL) const |
QwtCurveFitter * | curveFitter () const |
QwtSeriesData< QPointF > * | data () |
const QwtSeriesData< QPointF > * | data () const |
size_t | dataSize () const |
void | detach () |
virtual void | draw (QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &) const |
virtual void | drawLegendIdentifier (QPainter *, const QRectF &) const |
virtual void | drawSeries (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const |
void | hide () |
bool | isVisible () const |
virtual void | itemChanged () |
virtual QWidget * | legendItem () const |
double | maxXValue () const |
double | maxYValue () const |
double | minXValue () const |
double | minYValue () const |
Qt::Orientation | orientation () const |
QRectF | paintRect (const QwtScaleMap &, const QwtScaleMap &) const |
const QPen & | pen () const |
QwtPlot * | plot () const |
QwtPlotCurve (const QString &title=QString::null) | |
QwtPlotCurve (const QwtText &title) | |
virtual int | rtti () const |
QPointF | sample (int index) const |
QRectF | scaleRect (const QwtScaleMap &, const QwtScaleMap &) const |
void | setAxes (int xAxis, int yAxis) |
void | setBaseline (double ref) |
void | setBrush (const QBrush &) |
void | setCurveAttribute (CurveAttribute, bool on=true) |
void | setCurveFitter (QwtCurveFitter *) |
void | setData (QwtSeriesData< QPointF > *) |
void | setItemAttribute (ItemAttribute, bool on=true) |
void | setLegendAttribute (LegendAttribute, bool on=true) |
void | setOrientation (Qt::Orientation) |
void | setPaintAttribute (PaintAttribute, bool on=true) |
void | setPen (const QPen &) |
void | setRawSamples (const double *xData, const double *yData, int size) |
void | setRenderHint (RenderHint, bool on=true) |
void | setSamples (const double *xData, const double *yData, int size) |
void | setSamples (const QVector< double > &xData, const QVector< double > &yData) |
void | setSamples (const QVector< QPointF > &) |
void | setStyle (CurveStyle style) |
void | setSymbol (const QwtSymbol *s) |
void | setTitle (const QString &title) |
void | setTitle (const QwtText &title) |
virtual void | setVisible (bool) |
void | setXAxis (int axis) |
void | setYAxis (int axis) |
void | setZ (double z) |
void | show () |
CurveStyle | style () const |
const QwtSymbol * | symbol () const |
bool | testCurveAttribute (CurveAttribute) const |
bool | testItemAttribute (ItemAttribute) const |
bool | testLegendAttribute (LegendAttribute) const |
bool | testPaintAttribute (PaintAttribute) const |
bool | testRenderHint (RenderHint) const |
const QwtText & | title () const |
virtual void | updateLegend (QwtLegend *) const |
virtual void | updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &) |
int | xAxis () const |
int | yAxis () const |
double | z () const |
virtual | ~QwtPlotCurve () |
Protected Member Functions | |
void | closePolyline (QPainter *, const QwtScaleMap &, const QwtScaleMap &, QPolygonF &) const |
virtual void | drawCurve (QPainter *p, int style, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const |
void | drawDots (QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const |
void | drawLines (QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const |
void | drawSteps (QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const |
void | drawSticks (QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const |
virtual void | drawSymbols (QPainter *p, const QwtSymbol &, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const |
virtual void | fillCurve (QPainter *, const QwtScaleMap &, const QwtScaleMap &, const QRectF &canvasRect, QPolygonF &) const |
void | init () |
Protected Attributes | |
QwtSeriesData< QPointF > * | d_series |
A plot item, that represents a series of points.
A curve is the representation of a series of points in the x-y plane. It supports different display styles, interpolation ( f.e. spline ) and symbols.
typedef QFlags<CurveAttribute> QwtPlotCurve::CurveAttributes |
Curve attributes.
typedef QFlags<ItemAttribute> QwtPlotItem::ItemAttributes [inherited] |
Plot Item Attributes.
typedef QFlags<LegendAttribute> QwtPlotCurve::LegendAttributes |
Legend attributes.
typedef QFlags<PaintAttribute> QwtPlotCurve::PaintAttributes |
Paint attributes.
typedef QFlags<RenderHint> QwtPlotItem::RenderHints [inherited] |
Render hints.
Attribute for drawing the curve
Inverted |
For QwtPlotCurve::Steps only. Draws a step function from the right to the left. |
Fitted |
Only in combination with QwtPlotCurve::Lines A QwtCurveFitter tries to interpolate/smooth the curve, before it is painted.
|
Curve styles.
NoCurve |
Don't draw a curve. Note: This doesn't affect the symbols. |
Lines |
Connect the points with straight lines. The lines might be interpolated depending on the 'Fitted' attribute. Curve fitting can be configured using setCurveFitter(). |
Sticks |
Draw vertical or horizontal sticks ( depending on the orientation() ) from a baseline which is defined by setBaseline(). |
Steps |
Connect the points with a step function. The step function is drawn from the left to the right or vice versa, depending on the QwtPlotCurve::Inverted attribute. |
Dots |
Draw dots at the locations of the data points. Note: This is different from a dotted line (see setPen()), and faster as a curve in QwtPlotCurve::NoStyle style and a symbol painting a point. |
UserCurve |
Styles >= QwtPlotCurve::UserCurve are reserved for derived classes of QwtPlotCurve that overload drawCurve() with additional application specific curve types. |
enum QwtPlotItem::ItemAttribute [inherited] |
Plot Item Attributes
Legend |
The item is represented on the legend. |
AutoScale |
The boundingRect() of the item is included in the autoscaling calculation. |
Attributes how to represent the curve on the legend
LegendNoAttribute |
QwtPlotCurve tries to find a color representing the curve and paints a rectangle with it. |
LegendShowLine |
If the style() is not QwtPlotCurve::NoCurve a line is painted with the curve pen(). |
LegendShowSymbol |
If the curve has a valid symbol it is painted. |
LegendShowBrush |
If the curve has a brush a rectangle filled with the curve brush() is painted. |
Attributes to modify the drawing algorithm. The default setting enables ClipPolygons
enum QwtPlotItem::RenderHint [inherited] |
enum QwtPlotItem::RttiValues [inherited] |
Runtime type information.
RttiValues is used to cast plot items, without having to enable runtime type information of the compiler.
Rtti_PlotItem |
Unspecific value, that can be used, when it doesn't matter. |
Rtti_PlotGrid |
For QwtPlotGrid. |
Rtti_PlotScale |
For QwtPlotScaleItem. |
Rtti_PlotMarker |
For QwtPlotMarker. |
Rtti_PlotCurve |
For QwtPlotCurve. |
Rtti_PlotSpectroCurve |
For QwtPlotSpectroCurve. |
Rtti_PlotIntervalCurve |
For QwtPlotIntervalCurve. |
Rtti_PlotHistogram |
For QwtPlotHistogram. |
Rtti_PlotSpectrogram |
For QwtPlotSpectrogram. |
Rtti_PlotSVG |
For QwtPlotSvgItem. |
Rtti_PlotUserItem |
Values >= Rtti_PlotUserItem are reserved for plot items not implemented in the Qwt library. |
QwtPlotCurve::QwtPlotCurve | ( | const QString & | title = QString::null | ) | [explicit] |
Constructor
title | Title of the curve |
QwtPlotCurve::QwtPlotCurve | ( | const QwtText & | title | ) | [explicit] |
Constructor
title | Title of the curve |
QwtPlotCurve::~QwtPlotCurve | ( | ) | [virtual] |
Destructor.
void QwtPlotItem::attach | ( | QwtPlot * | plot | ) | [inherited] |
Attach the item to a plot.
This method will attach a QwtPlotItem to the QwtPlot argument. It will first detach the QwtPlotItem from any plot from a previous call to attach (if necessary). If a NULL argument is passed, it will detach from any QwtPlot it was attached to.
plot | Plot widget |
double QwtPlotCurve::baseline | ( | ) | const |
virtual QRectF QwtPlotSeriesItem< QPointF >::boundingRect | ( | ) | const [virtual, inherited] |
Reimplemented from QwtPlotItem.
const QBrush & QwtPlotCurve::brush | ( | ) | const |
void QwtPlotCurve::closePolyline | ( | QPainter * | painter, |
const QwtScaleMap & | xMap, | ||
const QwtScaleMap & | yMap, | ||
QPolygonF & | polygon | ||
) | const [protected] |
Complete a polygon to be a closed polygon including the area between the original polygon and the baseline.
painter | Painter |
xMap | X map |
yMap | Y map |
polygon | Polygon to be completed |
int QwtPlotCurve::closestPoint | ( | const QPoint & | pos, |
double * | dist = NULL |
||
) | const |
Find the closest curve point for a specific position
pos | Position, where to look for the closest curve point |
dist | If dist != NULL, closestPoint() returns the distance between the position and the clostest curve point |
QwtCurveFitter * QwtPlotCurve::curveFitter | ( | ) | const |
Get the curve fitter. If curve fitting is disabled NULL is returned.
void QwtPlotItem::detach | ( | ) | [inherited] |
This method detaches a QwtPlotItem from any QwtPlot it has been associated with.
detach() is equivalent to calling attach( NULL )
void QwtPlotAbstractSeriesItem::draw | ( | QPainter * | painter, |
const QwtScaleMap & | xMap, | ||
const QwtScaleMap & | yMap, | ||
const QRectF & | canvasRect | ||
) | const [virtual, inherited] |
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.
void QwtPlotCurve::drawCurve | ( | QPainter * | painter, |
int | style, | ||
const QwtScaleMap & | xMap, | ||
const QwtScaleMap & | yMap, | ||
const QRectF & | canvasRect, | ||
int | from, | ||
int | to | ||
) | const [protected, virtual] |
Draw the line part (without symbols) of a curve interval.
painter | Painter |
style | curve style, see QwtPlotCurve::CurveStyle |
xMap | x map |
yMap | y map |
canvasRect | Contents rect of the canvas |
from | index of the first point to be painted |
to | index of the last point to be painted |
void QwtPlotCurve::drawDots | ( | QPainter * | painter, |
const QwtScaleMap & | xMap, | ||
const QwtScaleMap & | yMap, | ||
const QRectF & | canvasRect, | ||
int | from, | ||
int | to | ||
) | const [protected] |
Draw dots
painter | Painter |
xMap | x map |
yMap | y map |
canvasRect | Contents rect of the canvas |
from | index of the first point to be painted |
to | index of the last point to be painted |
void QwtPlotCurve::drawLegendIdentifier | ( | QPainter * | painter, |
const QRectF & | rect | ||
) | const [virtual] |
Draw the identifier representing the curve on the legend.
painter | Painter |
rect | Bounding rectangle for the identifier |
Reimplemented from QwtLegendItemManager.
void QwtPlotCurve::drawLines | ( | QPainter * | painter, |
const QwtScaleMap & | xMap, | ||
const QwtScaleMap & | yMap, | ||
const QRectF & | canvasRect, | ||
int | from, | ||
int | to | ||
) | const [protected] |
Draw lines.
If the CurveAttribute Fitted is enabled a QwtCurveFitter tries to interpolate/smooth the curve, before it is painted.
painter | Painter |
xMap | x map |
yMap | y map |
canvasRect | Contents rect of the canvas |
from | index of the first point to be painted |
to | index of the last point to be painted |
void QwtPlotCurve::drawSeries | ( | QPainter * | painter, |
const QwtScaleMap & | xMap, | ||
const QwtScaleMap & | yMap, | ||
const QRectF & | canvasRect, | ||
int | from, | ||
int | to | ||
) | const [virtual] |
Draw an interval of the curve
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. |
Implements QwtPlotAbstractSeriesItem.
void QwtPlotCurve::drawSteps | ( | QPainter * | painter, |
const QwtScaleMap & | xMap, | ||
const QwtScaleMap & | yMap, | ||
const QRectF & | canvasRect, | ||
int | from, | ||
int | to | ||
) | const [protected] |
Draw step function
The direction of the steps depends on Inverted attribute.
painter | Painter |
xMap | x map |
yMap | y map |
canvasRect | Contents rect of the canvas |
from | index of the first point to be painted |
to | index of the last point to be painted |
void QwtPlotCurve::drawSticks | ( | QPainter * | painter, |
const QwtScaleMap & | xMap, | ||
const QwtScaleMap & | yMap, | ||
const QRectF & | canvasRect, | ||
int | from, | ||
int | to | ||
) | const [protected] |
Draw sticks
painter | Painter |
xMap | x map |
yMap | y map |
canvasRect | Contents rect of the canvas |
from | index of the first point to be painted |
to | index of the last point to be painted |
void QwtPlotCurve::drawSymbols | ( | QPainter * | painter, |
const QwtSymbol & | symbol, | ||
const QwtScaleMap & | xMap, | ||
const QwtScaleMap & | yMap, | ||
const QRectF & | canvasRect, | ||
int | from, | ||
int | to | ||
) | const [protected, virtual] |
Draw symbols
painter | Painter |
symbol | Curve symbol |
xMap | x map |
yMap | y map |
canvasRect | Contents rect of the canvas |
from | Index of the first point to be painted |
to | Index of the last point to be painted |
void QwtPlotCurve::fillCurve | ( | QPainter * | painter, |
const QwtScaleMap & | xMap, | ||
const QwtScaleMap & | yMap, | ||
const QRectF & | canvasRect, | ||
QPolygonF & | polygon | ||
) | const [protected, virtual] |
Fill the area between the curve and the baseline with the curve brush
painter | Painter |
xMap | x map |
yMap | y map |
canvasRect | Contents rect of the canvas |
polygon | Polygon - will be modified ! |
void QwtPlotItem::hide | ( | ) | [inherited] |
Hide the item.
void QwtPlotCurve::init | ( | ) | [protected] |
Initialize internal members.
bool QwtPlotItem::isVisible | ( | ) | const [inherited] |
void QwtPlotItem::itemChanged | ( | ) | [virtual, inherited] |
Update the legend and call QwtPlot::autoRefresh for the parent plot.
QWidget * QwtPlotItem::legendItem | ( | ) | const [virtual, inherited] |
Allocate the widget that represents the item on the legend.
The default implementation returns a QwtLegendItem(), but an item could be represented by any type of widget, by overloading legendItem() and updateLegend().
Implements QwtLegendItemManager.
double QwtPlotCurve::maxXValue | ( | ) | const [inline] |
boundingRect().right()
double QwtPlotCurve::maxYValue | ( | ) | const [inline] |
boundingRect().bottom()
double QwtPlotCurve::minXValue | ( | ) | const [inline] |
boundingRect().left()
double QwtPlotCurve::minYValue | ( | ) | const [inline] |
boundingRect().top()
Qt::Orientation QwtPlotAbstractSeriesItem::orientation | ( | ) | const [inherited] |
QRectF QwtPlotItem::paintRect | ( | const QwtScaleMap & | xMap, |
const QwtScaleMap & | yMap | ||
) | const [inherited] |
Calculate the bounding paint rect of 2 maps.
xMap | X map |
yMap | X map |
const QPen & QwtPlotCurve::pen | ( | ) | const |
QwtPlot * QwtPlotItem::plot | ( | ) | const [inherited] |
Return attached plot.
int QwtPlotCurve::rtti | ( | ) | const [virtual] |
Reimplemented from QwtPlotItem.
QRectF QwtPlotItem::scaleRect | ( | const QwtScaleMap & | xMap, |
const QwtScaleMap & | yMap | ||
) | const [inherited] |
Calculate the bounding scale rect of 2 maps.
xMap | X map |
yMap | X map |
void QwtPlotItem::setAxes | ( | int | xAxis, |
int | yAxis | ||
) | [inherited] |
Set X and Y axis
The item will painted according to the coordinates its Axes.
xAxis | X Axis |
yAxis | Y Axis |
void QwtPlotCurve::setBaseline | ( | double | value | ) |
Set the value of the baseline.
The baseline is needed for filling the curve with a brush or the Sticks drawing style. The interpretation of the baseline depends on the CurveType. With QwtPlotCurve::Yfx, the baseline is interpreted as a horizontal line at y = baseline(), with QwtPlotCurve::Yfy, it is interpreted as a vertical line at x = baseline().
The default value is 0.0.
value | Value of the baseline |
void QwtPlotCurve::setBrush | ( | const QBrush & | brush | ) |
Assign a brush.
In case of brush.style() != QBrush::NoBrush and style() != QwtPlotCurve::Sticks the area between the curve and the baseline will be filled.
In case !brush.color().isValid() the area will be filled by pen.color(). The fill algorithm simply connects the first and the last curve point to the baseline. So the curve data has to be sorted (ascending or descending).
brush | New brush |
void QwtPlotCurve::setCurveAttribute | ( | CurveAttribute | attribute, |
bool | on = true |
||
) |
Specify an attribute for drawing the curve
attribute | Curve attribute |
on | On/Off |
void QwtPlotCurve::setCurveFitter | ( | QwtCurveFitter * | curveFitter | ) |
Assign a curve fitter
The curve fitter "smooths" the curve points, when the Fitted CurveAttribute is set. setCurveFitter(NULL) also disables curve fitting.
The curve fitter operates on the translated points ( = widget coordinates) to be functional for logarithmic scales. Obviously this is less performant for fitting algorithms, that reduce the number of points.
For situations, where curve fitting is used to improve the performance of painting huge series of points it might be better to execute the fitter on the curve points once and to cache the result in the QwtSeriesData object.
curveFitter() | Curve fitter |
void QwtPlotItem::setItemAttribute | ( | ItemAttribute | attribute, |
bool | on = true |
||
) | [inherited] |
Toggle an item attribute
attribute | Attribute type |
on | true/false |
void QwtPlotCurve::setLegendAttribute | ( | LegendAttribute | attribute, |
bool | on = true |
||
) |
Specify an attribute how to draw the legend identifier
attribute | Attribute |
on | On/Off /sa testLegendAttribute() |
void QwtPlotAbstractSeriesItem::setOrientation | ( | Qt::Orientation | orientation | ) | [inherited] |
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.
void QwtPlotCurve::setPaintAttribute | ( | PaintAttribute | attribute, |
bool | on = true |
||
) |
Specify an attribute how to draw the curve
attribute | Paint attribute |
on | On/Off |
void QwtPlotCurve::setPen | ( | const QPen & | pen | ) |
void QwtPlotCurve::setRawSamples | ( | const double * | xData, |
const double * | yData, | ||
int | size | ||
) |
Initialize the data by pointing to memory blocks which are not managed by QwtPlotCurve.
setRawSamples is provided for efficiency. It is important to keep the pointers during the lifetime of the underlying QwtCPointerData class.
xData | pointer to x data |
yData | pointer to y data |
size | size of x and y |
void QwtPlotItem::setRenderHint | ( | RenderHint | hint, |
bool | on = true |
||
) | [inherited] |
Toggle an render hint
hint | Render hint |
on | true/false |
void QwtPlotCurve::setSamples | ( | const double * | xData, |
const double * | yData, | ||
int | size | ||
) |
Set data by copying x- and y-values from specified memory blocks. Contrary to setRawSamples(), this function makes a 'deep copy' of the data.
xData | pointer to x values |
yData | pointer to y values |
size | size of xData and yData |
void QwtPlotCurve::setSamples | ( | const QVector< double > & | xData, |
const QVector< double > & | yData | ||
) |
Initialize data with x- and y-arrays (explicitly shared)
xData | x data |
yData | y data |
void QwtPlotCurve::setSamples | ( | const QVector< QPointF > & | samples | ) |
Initialize data with an array of points (explicitly shared).
samples | Vector of points |
void QwtPlotCurve::setStyle | ( | CurveStyle | style | ) |
void QwtPlotCurve::setSymbol | ( | const QwtSymbol * | symbol | ) |
void QwtPlotItem::setTitle | ( | const QString & | title | ) | [inherited] |
void QwtPlotItem::setTitle | ( | const QwtText & | title | ) | [inherited] |
void QwtPlotItem::setVisible | ( | bool | on | ) | [virtual, inherited] |
void QwtPlotItem::setXAxis | ( | int | axis | ) | [inherited] |
Set the X axis
The item will painted according to the coordinates its Axes.
axis | X Axis |
void QwtPlotItem::setYAxis | ( | int | axis | ) | [inherited] |
Set the Y axis
The item will painted according to the coordinates its Axes.
axis | Y Axis |
void QwtPlotItem::setZ | ( | double | z | ) | [inherited] |
Set the z value.
Plot items are painted in increasing z-order.
z | Z-value |
void QwtPlotItem::show | ( | ) | [inherited] |
Show the item.
QwtPlotCurve::CurveStyle QwtPlotCurve::style | ( | ) | const |
Return the current style
const QwtSymbol * QwtPlotCurve::symbol | ( | ) | const |
bool QwtPlotCurve::testCurveAttribute | ( | CurveAttribute | attribute | ) | const |
bool QwtPlotItem::testItemAttribute | ( | ItemAttribute | attribute | ) | const [inherited] |
Test an item attribute
attribute | Attribute type |
bool QwtPlotCurve::testLegendAttribute | ( | LegendAttribute | attribute | ) | const |
Return the current paint attributes.
bool QwtPlotCurve::testPaintAttribute | ( | PaintAttribute | attribute | ) | const |
Return the current paint attributes.
bool QwtPlotItem::testRenderHint | ( | RenderHint | hint | ) | const [inherited] |
Test a render hint
hint | Render hint |
const QwtText & QwtPlotItem::title | ( | ) | const [inherited] |
void QwtPlotCurve::updateLegend | ( | QwtLegend * | legend | ) | const [virtual] |
Update the widget that represents the item on the legend.
legend | Legend |
Reimplemented from QwtPlotItem.
virtual void QwtPlotSeriesItem< QPointF >::updateScaleDiv | ( | const QwtScaleDiv & | xScaleDiv, |
const QwtScaleDiv & | yScaleDiv | ||
) | [virtual, inherited] |
Update the rect of interest according to the current scale ranges
xScaleDiv | Scale division of the x-axis |
yScaleDiv | Scale division of the y-axis |
Reimplemented from QwtPlotItem.
int QwtPlotItem::xAxis | ( | ) | const [inherited] |
Return xAxis.
int QwtPlotItem::yAxis | ( | ) | const [inherited] |
Return yAxis.
double QwtPlotItem::z | ( | ) | const [inherited] |
Plot items are painted in increasing z-order.
QwtSeriesData<QPointF >* QwtPlotSeriesItem< QPointF >::d_series [protected, inherited] |
Series.