Go to the documentation of this file.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(vtkQtChartSeriesModel *model);
00048 ~vtkQtChartSeriesModelRange() {}
00049
00053 void initializeRanges(bool xShared=false);
00054
00059 bool isXRangeShared() const {return this->XRangeShared;}
00060
00067 QList<QVariant> getSeriesRange(int series, int component) const;
00068
00069 private slots:
00071 void resetSeries();
00072
00080 void insertSeries(int first, int last);
00081
00086 void removeSeries(int first, int last);
00087
00088 private:
00095 QList<QVariant> computeSeriesRange(int series, int component);
00096
00097 private:
00098 QList<QList<QVariant> > Range[2];
00099 vtkQtChartSeriesModel *Model;
00100 bool XRangeShared;
00101 };
00102
00103 #endif