|
| | QwtPlotHistogram (const QString &title=QString()) |
| | Constructor.
|
| |
| | QwtPlotHistogram (const QwtText &title) |
| | Constructor.
|
| |
|
virtual | ~QwtPlotHistogram () |
| | Destructor.
|
| |
| virtual int | rtti () const QWT_OVERRIDE |
| |
| void | setPen (const QColor &, qreal width=0.0, Qt::PenStyle=Qt::SolidLine) |
| | Build and assign a pen.
|
| |
| void | setPen (const QPen &) |
| | Assign a pen, that is used in a style() depending way.
|
| |
| const QPen & | pen () const |
| |
| void | setBrush (const QBrush &) |
| | Assign a brush, that is used in a style() depending way.
|
| |
| const QBrush & | brush () const |
| |
| void | setSamples (const QVector< QwtIntervalSample > &) |
| | Initialize data with an array of samples.
|
| |
| void | setSamples (QwtSeriesData< QwtIntervalSample > *) |
| | Assign a series of samples.
|
| |
| void | setBaseline (double) |
| | Set the value of the baseline.
|
| |
| double | baseline () const |
| |
| void | setStyle (HistogramStyle style) |
| | Set the histogram's drawing style.
|
| |
| HistogramStyle | style () const |
| |
| void | setSymbol (const QwtColumnSymbol *) |
| | Assign a symbol.
|
| |
| const QwtColumnSymbol * | symbol () const |
| |
| virtual void | drawSeries (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const QWT_OVERRIDE |
| | Draw a subset of the histogram samples.
|
| |
| virtual QRectF | boundingRect () const QWT_OVERRIDE |
| |
| virtual QwtGraphic | legendIcon (int index, const QSizeF &) const QWT_OVERRIDE |
| | A plain rectangle without pen using the brush()
|
| |
| | QwtPlotSeriesItem (const QString &title=QString()) |
| | Constructor.
|
| |
| | QwtPlotSeriesItem (const QwtText &title) |
| | Constructor.
|
| |
|
virtual | ~QwtPlotSeriesItem () |
| | Destructor.
|
| |
| void | setOrientation (Qt::Orientation) |
| | Set the orientation of the item.
|
| |
| Qt::Orientation | orientation () const |
| |
| virtual void | draw (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect) const QWT_OVERRIDE |
| | Draw the complete series.
|
| |
| virtual void | updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &) QWT_OVERRIDE |
| | Update the item to changes of the axes scale division.
|
| |
|
| QwtPlotItem () |
| | Constructor.
|
| |
| | QwtPlotItem (const QString &title) |
| | Constructor.
|
| |
| | QwtPlotItem (const QwtText &title) |
| | Constructor.
|
| |
|
virtual | ~QwtPlotItem () |
| | Destroy the QwtPlotItem.
|
| |
| void | attach (QwtPlot *plot) |
| | Attach the item to a plot.
|
| |
| void | detach () |
| | This method detaches a QwtPlotItem from any QwtPlot it has been associated with.
|
| |
|
QwtPlot * | plot () const |
| | Return attached plot.
|
| |
| void | setTitle (const QString &title) |
| | Set a new title.
|
| |
| void | setTitle (const QwtText &title) |
| | Set a new title.
|
| |
| const QwtText & | title () const |
| |
| void | setItemAttribute (ItemAttribute, bool on=true) |
| | Toggle an item attribute.
|
| |
| bool | testItemAttribute (ItemAttribute) const |
| | Test an item attribute.
|
| |
| void | setItemInterest (ItemInterest, bool on=true) |
| | Toggle an item interest.
|
| |
| bool | testItemInterest (ItemInterest) const |
| | Test an item interest.
|
| |
| void | setRenderHint (RenderHint, bool on=true) |
| | Toggle an render hint.
|
| |
| bool | testRenderHint (RenderHint) const |
| | Test a render hint.
|
| |
| void | setRenderThreadCount (uint numThreads) |
| | On multi core systems rendering of certain plot item ( f.e QwtPlotRasterItem ) can be done in parallel in several threads.
|
| |
| uint | renderThreadCount () const |
| |
| void | setLegendIconSize (const QSize &) |
| | Set the size of the legend icon.
|
| |
| QSize | legendIconSize () const |
| |
| double | z () const |
| | Plot items are painted in increasing z-order.
|
| |
| void | setZ (double z) |
| | Set the z value.
|
| |
|
void | show () |
| | Show the item.
|
| |
|
void | hide () |
| | Hide the item.
|
| |
| virtual void | setVisible (bool) |
| | Show/Hide the item.
|
| |
| bool | isVisible () const |
| |
| void | setAxes (QwtAxisId xAxis, QwtAxisId yAxis) |
| | Set X and Y axis.
|
| |
| void | setXAxis (QwtAxisId) |
| | Set the X axis.
|
| |
|
QwtAxisId | xAxis () const |
| | Return xAxis.
|
| |
| void | setYAxis (QwtAxisId) |
| | Set the Y axis.
|
| |
|
QwtAxisId | yAxis () const |
| | Return yAxis.
|
| |
| virtual void | itemChanged () |
| | Update the legend and call QwtPlot::autoRefresh() for the parent plot.
|
| |
| virtual void | legendChanged () |
| | Update the legend of the parent plot.
|
| |
| virtual void | getCanvasMarginHint (const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, double &left, double &top, double &right, double &bottom) const |
| | Calculate a hint for the canvas margin.
|
| |
| virtual void | updateLegend (const QwtPlotItem *, const QList< QwtLegendData > &) |
| | Update the item to changes of the legend info.
|
| |
| QRectF | scaleRect (const QwtScaleMap &, const QwtScaleMap &) const |
| | Calculate the bounding scale rectangle of 2 maps.
|
| |
| QRectF | paintRect (const QwtScaleMap &, const QwtScaleMap &) const |
| | Calculate the bounding paint rectangle of 2 maps.
|
| |
| virtual QList< QwtLegendData > | legendData () const |
| | Return all information, that is needed to represent the item on the legend.
|
| |
|
virtual | ~QwtAbstractSeriesStore () |
| | Destructor.
|
| |
|
| QwtSeriesStore () |
| | Constructor The store contains no series.
|
| |
|
| ~QwtSeriesStore () |
| | Destructor.
|
| |
| void | setData (QwtSeriesData< QwtIntervalSample > *series) |
| | Assign a series of samples.
|
| |
| QwtSeriesData< QwtIntervalSample > * | data () |
| |
| const QwtSeriesData< QwtIntervalSample > * | data () const |
| |
| QwtIntervalSample | sample (size_t index) const |
| |
| virtual size_t | dataSize () const QWT_OVERRIDE |
| |
| virtual QRectF | dataRect () const QWT_OVERRIDE |
| |
| virtual void | setRectOfInterest (const QRectF &rect) QWT_OVERRIDE |
| | Set a the "rect of interest" for the series.
|
| |
| QwtSeriesData< QwtIntervalSample > * | swapData (QwtSeriesData< QwtIntervalSample > *series) |
| | Replace a series without deleting the previous one.
|
| |
|
| virtual QwtColumnRect | columnRect (const QwtIntervalSample &, const QwtScaleMap &, const QwtScaleMap &) const |
| | Calculate the area that is covered by a sample.
|
| |
| virtual void | drawColumn (QPainter *, const QwtColumnRect &, const QwtIntervalSample &) const |
| | Draw a column for a sample in Columns style().
|
| |
| void | drawColumns (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const |
| | Draw a histogram in Columns style()
|
| |
| void | drawOutline (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const |
| | Draw a histogram in Outline style()
|
| |
| void | drawLines (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, int from, int to) const |
| | Draw a histogram in Lines style()
|
| |
| virtual void | dataChanged () QWT_OVERRIDE |
| | dataChanged() indicates, that the series has been changed.
|
| |
| QwtGraphic | defaultIcon (const QBrush &, const QSizeF &) const |
| | Return a default icon from a brush.
|
| |
QwtPlotHistogram represents a series of samples, where an interval is associated with a value (
).
The representation depends on the style() and an optional symbol() that is displayed for each interval.
- Note
- The term "histogram" is used in a different way in the areas of digital image processing and statistics. Wikipedia introduces the terms "image histogram" and "color histogram" to avoid confusions. While "image histograms" can be displayed by a QwtPlotCurve there is no applicable plot item for a "color histogram" yet.
- See also
- QwtPlotBarChart, QwtPlotMultiBarChart