VTK
vtkQtChartSeriesOptionsModelCollection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQtChartSeriesOptionsModelCollection.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 
21 #ifndef __vtkQtChartSeriesOptionsModelCollection_h
22 #define __vtkQtChartSeriesOptionsModelCollection_h
23 
25 
35 
36 class VTKQTCHART_EXPORT vtkQtChartSeriesOptionsModelCollection :
38 {
39  Q_OBJECT
40 public:
42 
46  vtkQtChartSeriesOptionsModelCollection(QObject* parent=0);
48 
50 
51 
52 
53  virtual int getNumberOfOptions() const;
54 
60  virtual vtkQtChartSeriesOptions* getOptions(int series) const;
61 
67  virtual int getOptionsIndex(vtkQtChartSeriesOptions *options) const;
69 
73  void addSeriesOptionsModel(vtkQtChartSeriesOptionsModel *model);
74 
78  void removeSeriesOptionsModel(vtkQtChartSeriesOptionsModel* model);
79 
84  int getNumberOfSeriesOptionsModels() const;
85 
91  vtkQtChartSeriesOptionsModel* getSeriesOptionsModel(int index) const;
92 
100  int mapSeriesIndexToCollectionIndex(
101  vtkQtChartSeriesOptionsModel* model, int index) const;
102 
103 public slots:
106  virtual void reset();
107 
108 protected slots:
118  void onOptionsAboutToBeInserted(int first, int last);
119 
124  void onOptionsInserted(int first, int last);
125 
130  void onOptionsAboutToBeRemoved(int first, int last);
131 
136  void onOptionsRemoved(int first, int last);
137 
138 private:
145  vtkQtChartSeriesOptionsModel *modelForSeries(int &series) const;
146 
152  int seriesForModel(vtkQtChartSeriesOptionsModel *model) const;
153 
154 private:
155  QList<vtkQtChartSeriesOptionsModel*> Models;
156 
157 private:
160  void operator=(
162 };
163 
164 #endif
165 
166