Changeset 9383 in ntrip for trunk/BNC/qwt/qwt_plot_multi_barchart.h
- Timestamp:
- Mar 19, 2021, 9:15:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/qwt/qwt_plot_multi_barchart.h
r8127 r9383 20 20 /*! 21 21 \brief QwtPlotMultiBarChart displays a series of a samples that consist 22 each of a set of values. 22 each of a set of values. 23 23 24 Each value is displayed as a bar, the bars of each set can be organized 24 Each value is displayed as a bar, the bars of each set can be organized 25 25 side by side or accumulated. 26 26 … … 29 29 by overloading specialSymbol() or overloading drawBar(). 30 30 31 Depending on its orientation() the bars are displayed horizontally 32 or vertically. The bars cover the interval between the baseline() 31 Depending on its orientation() the bars are displayed horizontally 32 or vertically. The bars cover the interval between the baseline() 33 33 and the value. 34 34 35 35 In opposite to most other plot items, QwtPlotMultiBarChart returns more 36 36 than one entry for the legend - one for each symbol. 37 37 38 38 \sa QwtPlotBarChart, QwtPlotHistogram 39 39 QwtPlotSeriesItem::orientation(), QwtPlotAbstractBarChart::baseline() 40 40 */ 41 class QWT_EXPORT QwtPlotMultiBarChart: 41 class QWT_EXPORT QwtPlotMultiBarChart: 42 42 public QwtPlotAbstractBarChart, public QwtSeriesStore<QwtSetSample> 43 43 { … … 62 62 }; 63 63 64 explicit QwtPlotMultiBarChart( const QString &title = QString ::null);64 explicit QwtPlotMultiBarChart( const QString &title = QString() ); 65 65 explicit QwtPlotMultiBarChart( const QwtText &title ); 66 66 … … 79 79 ChartStyle style() const; 80 80 81 void setSymbol( int barIndex, QwtColumnSymbol *symbol);82 const QwtColumnSymbol *symbol( int barIndex ) const;81 void setSymbol( int valueIndex, QwtColumnSymbol * ); 82 const QwtColumnSymbol *symbol( int valueIndex ) const; 83 83 84 84 void resetSymbolMap(); … … 95 95 96 96 protected: 97 QwtColumnSymbol *symbol( int barIndex );97 QwtColumnSymbol *symbol( int valueIndex ); 98 98 99 virtual QwtColumnSymbol *specialSymbol( 99 virtual QwtColumnSymbol *specialSymbol( 100 100 int sampleIndex, int valueIndex ) const; 101 101 … … 106 106 107 107 virtual void drawBar( QPainter *, int sampleIndex, 108 int barIndex, const QwtColumnRect & ) const;108 int valueIndex, const QwtColumnRect & ) const; 109 109 110 110 void drawStackedBars( QPainter *painter,
Note:
See TracChangeset
for help on using the changeset viewer.