VTK
vtkQtChartSeriesOptionsModel.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQtChartSeriesOptionsModel.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 __vtkQtChartSeriesOptionsModel_h
22 #define __vtkQtChartSeriesOptionsModel_h
23 
24 #include "vtkQtChartExport.h"
25 #include <QObject>
26 
29 
36 class VTKQTCHART_EXPORT vtkQtChartSeriesOptionsModel : public QObject
37 {
38  Q_OBJECT
39 
40 public:
41  typedef QObject Superclass;
42 
46  vtkQtChartSeriesOptionsModel(QObject* parent=0);
48 
51  virtual int getNumberOfOptions() const = 0;
52 
58  virtual vtkQtChartSeriesOptions* getOptions(int series) const = 0;
59 
65  virtual int getOptionsIndex(vtkQtChartSeriesOptions *options) const = 0;
66 
67 public slots:
70  virtual void reset()=0;
71 
72 signals:
74  void modelAboutToBeReset();
75 
77  void modelReset();
78 
83  void optionsAboutToBeInserted(int first, int last);
84 
89  void optionsInserted(int first, int last);
90 
95  void optionsAboutToBeRemoved(int first, int last);
96 
101  void optionsRemoved(int first, int last);
102 
109  void optionsChanged(vtkQtChartSeriesOptions* options,
110  int type, const QVariant& newValue, const QVariant& oldValue);
111 
112 protected:
117  vtkQtChartSeriesOptions* newOptions(QObject* parent);
118 
120  void releaseOptions(vtkQtChartSeriesOptions* options);
121 
122 private slots:
124  void optionsChanged(
125  int type, const QVariant& newValue, const QVariant& oldValue);
126 };
127 
128 #endif
129 
130 
The vtkQtChartSeriesModel class is the base class for all chart series models.
vtkQtChartSeriesOptionsModel is the base class for all chart series options models.
The vtkQtChartSeriesOptions class stores the common series drawing options.