Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef QWT_PLOT_SERIES_ITEM_H
00011 #define QWT_PLOT_SERIES_ITEM_H
00012
00013 #include "qwt_global.h"
00014 #include "qwt_plot_item.h"
00015 #include "qwt_scale_div.h"
00016 #include "qwt_series_data.h"
00017 #include "qwt_series_store.h"
00018
00022 class QWT_EXPORT QwtPlotSeriesItem: public QwtPlotItem,
00023 public virtual QwtAbstractSeriesStore
00024 {
00025 public:
00026 explicit QwtPlotSeriesItem( const QString &title = QString::null );
00027 explicit QwtPlotSeriesItem( const QwtText &title );
00028
00029 virtual ~QwtPlotSeriesItem();
00030
00031 void setOrientation( Qt::Orientation );
00032 Qt::Orientation orientation() const;
00033
00034 virtual void draw( QPainter *p,
00035 const QwtScaleMap &xMap, const QwtScaleMap &yMap,
00036 const QRectF & ) const;
00037
00049 virtual void drawSeries( QPainter *painter,
00050 const QwtScaleMap &xMap, const QwtScaleMap &yMap,
00051 const QRectF &canvasRect, int from, int to ) const = 0;
00052
00053 virtual QRectF boundingRect() const;
00054
00055 virtual void updateScaleDiv(
00056 const QwtScaleDiv &, const QwtScaleDiv & );
00057
00058 protected:
00059 virtual void dataChanged();
00060
00061 private:
00062 class PrivateData;
00063 PrivateData *d_data;
00064 };
00065
00066 #endif