VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkQtChartSeriesModelRange.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 /*------------------------------------------------------------------------- 00016 Copyright 2008 Sandia Corporation. 00017 Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00018 the U.S. Government retains certain rights in this software. 00019 -------------------------------------------------------------------------*/ 00020 00023 00024 #ifndef _vtkQtChartSeriesModelRange_h 00025 #define _vtkQtChartSeriesModelRange_h 00026 00027 #include "vtkQtChartExport.h" 00028 #include <QObject> 00029 #include <QList> // Needed for return type. 00030 #include <QVariant> // Needed for return type. 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