VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkQtChartSeriesModelRange.h,v $ 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(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