|
| | QwtPlotMultiBarChart (const QString &title=QString()) |
| | Constructor.
|
| |
| | QwtPlotMultiBarChart (const QwtText &title) |
| | Constructor.
|
| |
|
virtual | ~QwtPlotMultiBarChart () |
| | Destructor.
|
| |
| virtual int | rtti () const QWT_OVERRIDE |
| |
| void | setBarTitles (const QList< QwtText > &) |
| | Set the titles for the bars.
|
| |
| QList< QwtText > | barTitles () const |
| |
| void | setSamples (const QVector< QwtSetSample > &) |
| | Initialize data with an array of samples.
|
| |
| void | setSamples (const QVector< QVector< double > > &) |
| | Initialize data with an array of samples.
|
| |
| void | setSamples (QwtSeriesData< QwtSetSample > *) |
| | Assign a series of samples.
|
| |
| void | setStyle (ChartStyle style) |
| | Set the style of the chart.
|
| |
| ChartStyle | style () const |
| |
| void | setSymbol (int valueIndex, QwtColumnSymbol *) |
| | Add a symbol to the symbol map.
|
| |
| const QwtColumnSymbol * | symbol (int valueIndex) const |
| | Find a symbol in the symbol map.
|
| |
|
void | resetSymbolMap () |
| | Remove all symbols from the symbol map.
|
| |
| virtual void | drawSeries (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const QWT_OVERRIDE |
| | Draw an interval of the bar chart.
|
| |
| virtual QRectF | boundingRect () const QWT_OVERRIDE |
| |
| virtual QList< QwtLegendData > | legendData () const QWT_OVERRIDE |
| |
| virtual QwtGraphic | legendIcon (int index, const QSizeF &) const QWT_OVERRIDE |
| |
| | QwtPlotAbstractBarChart (const QwtText &title) |
| | Constructor.
|
| |
|
virtual | ~QwtPlotAbstractBarChart () |
| | Destructor.
|
| |
| void | setLayoutPolicy (LayoutPolicy) |
| | The combination of layoutPolicy() and layoutHint() define how the width of the bars is calculated.
|
| |
| LayoutPolicy | layoutPolicy () const |
| | The combination of layoutPolicy() and layoutHint() define how the width of the bars is calculated.
|
| |
| void | setLayoutHint (double) |
| | The combination of layoutPolicy() and layoutHint() define how the width of the bars is calculated.
|
| |
| double | layoutHint () const |
| | The combination of layoutPolicy() and layoutHint() define how the width of the bars is calculated.
|
| |
| void | setSpacing (int) |
| | Set the spacing.
|
| |
| int | spacing () const |
| |
| void | setMargin (int) |
| | Set the margin.
|
| |
| int | margin () const |
| |
| void | setBaseline (double) |
| | Set the baseline.
|
| |
| double | baseline () const |
| |
| virtual void | getCanvasMarginHint (const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, double &left, double &top, double &right, double &bottom) const QWT_OVERRIDE |
| | Calculate a hint for the canvas margin.
|
| |
| | 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 | 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 | ~QwtAbstractSeriesStore () |
| | Destructor.
|
| |
|
| QwtSeriesStore () |
| | Constructor The store contains no series.
|
| |
|
| ~QwtSeriesStore () |
| | Destructor.
|
| |
| void | setData (QwtSeriesData< QwtSetSample > *series) |
| | Assign a series of samples.
|
| |
| QwtSeriesData< QwtSetSample > * | data () |
| |
| const QwtSeriesData< QwtSetSample > * | data () const |
| |
| QwtSetSample | 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< QwtSetSample > * | swapData (QwtSeriesData< QwtSetSample > *series) |
| | Replace a series without deleting the previous one.
|
| |
|
| QwtColumnSymbol * | symbol (int valueIndex) |
| | Find a symbol in the symbol map.
|
| |
| virtual QwtColumnSymbol * | specialSymbol (int sampleIndex, int valueIndex) const |
| | Create a symbol for special values.
|
| |
| virtual void | drawSample (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, const QwtInterval &boundingInterval, int index, const QwtSetSample &) const |
| | Draw a sample.
|
| |
| virtual void | drawBar (QPainter *, int sampleIndex, int valueIndex, const QwtColumnRect &) const |
| | Draw a bar.
|
| |
| void | drawStackedBars (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int index, double sampleWidth, const QwtSetSample &) const |
| | Draw a stacked sample.
|
| |
| void | drawGroupedBars (QPainter *, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int index, double sampleWidth, const QwtSetSample &) const |
| | Draw a grouped sample.
|
| |
| double | sampleWidth (const QwtScaleMap &map, double canvasSize, double boundingSize, double value) const |
| | Calculate the width for a sample in paint device coordinates.
|
| |
| 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.
|
| |
QwtPlotMultiBarChart displays a series of a samples that consist each of a set of values.
Each value is displayed as a bar, the bars of each set can be organized side by side or accumulated.
Each bar of a set is rendered by a QwtColumnSymbol, that is set by setSymbol(). The bars of different sets use the same symbols. Exceptions are possible by overloading specialSymbol() or overloading drawBar().
Depending on its orientation() the bars are displayed horizontally or vertically. The bars cover the interval between the baseline() and the value.
In opposite to most other plot items, QwtPlotMultiBarChart returns more than one entry for the legend - one for each symbol.
- See also
- QwtPlotBarChart, QwtPlotHistogram QwtPlotSeriesItem::orientation(), QwtPlotAbstractBarChart::baseline()