Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef QWT_PLOT_ABSTRACT_BAR_CHART_H
00011 #define QWT_PLOT_ABSTRACT_BAR_CHART_H
00012
00013 #include "qwt_global.h"
00014 #include "qwt_plot_seriesitem.h"
00015 #include "qwt_series_data.h"
00016
00025 class QWT_EXPORT QwtPlotAbstractBarChart: public QwtPlotSeriesItem
00026 {
00027 public:
00033 enum LayoutPolicy
00034 {
00042 AutoAdjustSamples,
00043
00047 ScaleSamplesToAxes,
00048
00055 ScaleSampleToCanvas,
00056
00060 FixedSampleSize
00061 };
00062
00063 explicit QwtPlotAbstractBarChart( const QwtText &title );
00064 virtual ~QwtPlotAbstractBarChart();
00065
00066 void setLayoutPolicy( LayoutPolicy );
00067 LayoutPolicy layoutPolicy() const;
00068
00069 void setLayoutHint( double );
00070 double layoutHint() const;
00071
00072 void setSpacing( int );
00073 int spacing() const;
00074
00075 void setMargin( int );
00076 int margin() const;
00077
00078 void setBaseline( double );
00079 double baseline() const;
00080
00081 virtual void getCanvasMarginHint(
00082 const QwtScaleMap &xMap, const QwtScaleMap &yMap,
00083 const QRectF &canvasRect,
00084 double &left, double &top, double &right, double &bottom) const;
00085
00086
00087 protected:
00088 double sampleWidth( const QwtScaleMap &map,
00089 double canvasSize, double dataSize,
00090 double value ) const;
00091
00092 private:
00093 class PrivateData;
00094 PrivateData *d_data;
00095 };
00096
00097 #endif