VTK
vtkQtChartSeriesModel.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQtChartSeriesModel.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
20 
23 
24 #ifndef _vtkQtChartSeriesModel_h
25 #define _vtkQtChartSeriesModel_h
26 
27 #include "vtkQtChartExport.h"
28 #include <QVariant> // Needed for return type.
29 #include <QList> // Needed for return type.
30 
31 
36 class VTKQTCHART_EXPORT vtkQtChartSeriesModel : public QObject
37 {
38  Q_OBJECT
39 
40 public:
44  vtkQtChartSeriesModel(QObject *parent=0);
46 
51  virtual int getNumberOfSeries() const = 0;
52 
58  virtual int getNumberOfSeriesValues(int series) const = 0;
59 
65  virtual QVariant getSeriesName(int series) const = 0;
66 
74  virtual QVariant getSeriesValue(int series, int index,
75  int component) const = 0;
76 
83  virtual QList<QVariant> getSeriesRange(int series, int component) const = 0;
84 
85 signals:
87  void modelAboutToBeReset();
88 
90  void modelReset();
91 
96  void seriesAboutToBeInserted(int first, int last);
97 
102  void seriesInserted(int first, int last);
103 
108  void seriesAboutToBeRemoved(int first, int last);
109 
114  void seriesRemoved(int first, int last);
115 };
116 
117 #endif
The vtkQtChartSeriesModel class is the base class for all chart series models.