Public Types | |
enum | CurveStyle { NoCurve, Tube, UserCurve = 100 } |
Public Member Functions | |
QwtPlotIntervalCurve (const QString &title=QString::null) | |
QwtPlotIntervalCurve (const QwtText &title) | |
virtual | ~QwtPlotIntervalCurve () |
virtual int | rtti () const |
void | setSamples (const QVector< QwtIntervalSample > &) |
void | setPen (const QPen &) |
const QPen & | pen () const |
void | setBrush (const QBrush &) |
const QBrush & | brush () const |
void | setCurveStyle (CurveStyle style) |
CurveStyle | curveStyle () const |
void | setSymbol (const QwtIntervalSymbol &) |
const QwtIntervalSymbol & | symbol () const |
virtual void | drawSeries (QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const |
virtual QRectF | boundingRect () const |
virtual void | drawLegendIdentifier (QPainter *, const QRectF &) const |
Protected Member Functions | |
void | init () |
virtual void | drawTube (QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const |
virtual void | drawSymbols (QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const |
QwtPlotIntervalCurve::QwtPlotIntervalCurve | ( | const QString & | title = QString::null |
) | [explicit] |
Ctor.
title | title of the curve |
QwtPlotIntervalCurve::QwtPlotIntervalCurve | ( | const QwtText & | title | ) | [explicit] |
Ctor.
title | title of the curve |
QwtPlotIntervalCurve::~QwtPlotIntervalCurve | ( | ) | [virtual] |
Dtor.
QRectF QwtPlotIntervalCurve::boundingRect | ( | ) | const [virtual] |
Reimplemented from QwtPlotSeriesItem< QwtIntervalSample >.
QwtPlotIntervalCurve::CurveStyle QwtPlotIntervalCurve::curveStyle | ( | ) | const |
Return the current style.
void QwtPlotIntervalCurve::drawLegendIdentifier | ( | QPainter * | , | |
const QRectF & | ||||
) | const [virtual] |
QwtLegendItem can display an icon-identifier followed by a text. The icon helps to identify a plot item on the plot canvas and depends on the type of information, that is displayed.
The default implementation paints nothing.
Reimplemented from QwtLegendItemManager.
void QwtPlotIntervalCurve::init | ( | ) | [protected] |
Initialize data members.
const QPen & QwtPlotIntervalCurve::pen | ( | ) | const |
Return the pen used to draw the lines.
int QwtPlotIntervalCurve::rtti | ( | ) | const [virtual] |
Return rtti for the specific class represented. QwtPlotItem is simply a virtual interface class, and base classes will implement this method with specific rtti values so a user can differentiate them.
The rtti value is useful for environments, where the runtime type information is disabled and it is not possible to do a dynamic_cast<...>.
Reimplemented from QwtPlotItem.
void QwtPlotIntervalCurve::setPen | ( | const QPen & | p | ) |