Public Types | |
enum | CurveStyle { NoCurve, Outline, Columns, Lines, UserCurve = 100 } |
Public Member Functions | |
QwtPlotHistogram (const QString &title=QString::null) | |
QwtPlotHistogram (const QwtText &title) | |
virtual int | rtti () const |
void | setPen (const QPen &) |
const QPen & | pen () const |
void | setBrush (const QBrush &) |
const QBrush & | brush () const |
void | setSamples (const QVector< QwtIntervalSample > &) |
void | setBaseline (double reference) |
double | baseline () const |
void | setStyle (CurveStyle style) |
CurveStyle | style () const |
void | setSymbol (const QwtColumnSymbol &) |
const QwtColumnSymbol & | 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 | |
virtual QRect | columnRect (const QwtIntervalSample &, const QwtScaleMap &, const QwtScaleMap &, QwtColumnSymbol::Direction &) const |
virtual void | drawColumn (QPainter *, const QRect &, QwtColumnSymbol::Direction, const QwtIntervalSample &) const |
void | drawColumns (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const |
void | drawOutline (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const |
void | drawLines (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const |
QRectF QwtPlotHistogram::boundingRect | ( | ) | const [virtual] |
Reimplemented from QwtPlotSeriesItem< QwtIntervalSample >.
void QwtPlotHistogram::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.
int QwtPlotHistogram::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.