00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00023 
00024 #ifndef _vtkQtChartSeriesModelRange_h
00025 #define _vtkQtChartSeriesModelRange_h
00026 
00027 #include "vtkQtChartExport.h"
00028 #include <QObject>
00029 #include <QList>    
00030 #include <QVariant> 
00031 
00032 class vtkQtChartSeriesModel;
00033 
00034 
00039 class VTKQTCHART_EXPORT vtkQtChartSeriesModelRange : public QObject
00040 {
00041   Q_OBJECT
00042 
00043 public:
00047   vtkQtChartSeriesModelRange(QObject *parent=0);
00048   ~vtkQtChartSeriesModelRange() {}
00049 
00054   vtkQtChartSeriesModel *getModel() const {return this->Model;}
00055 
00060   void setModel(vtkQtChartSeriesModel *model, bool xShared=false);
00061 
00066   bool isXRangeShared() const {return this->XRangeShared;}
00067 
00074   QList<QVariant> getSeriesRange(int series, int component) const;
00075 
00076 private slots:
00078   void resetSeries();
00079 
00087   void insertSeries(int first, int last);
00088 
00093   void removeSeries(int first, int last);
00094 
00095 private:
00102   QList<QVariant> computeSeriesRange(int series, int component);
00103 
00104 private:
00105   QList<QList<QVariant> > Range[2]; 
00106   vtkQtChartSeriesModel *Model;     
00107   bool XRangeShared; 
00108 };
00109 
00110 #endif