VTK
dox/GUISupport/Qt/Chart/vtkQtChartSeriesOptionsModel.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkQtChartSeriesOptionsModel.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 
00021 #ifndef __vtkQtChartSeriesOptionsModel_h
00022 #define __vtkQtChartSeriesOptionsModel_h
00023 
00024 #include "vtkQtChartExport.h"
00025 #include <QObject>
00026 
00027 class vtkQtChartSeriesModel;
00028 class vtkQtChartSeriesOptions;
00029 
00036 class VTKQTCHART_EXPORT vtkQtChartSeriesOptionsModel : public QObject
00037 {
00038   Q_OBJECT
00039 
00040 public:
00041   typedef QObject Superclass;
00042 
00046   vtkQtChartSeriesOptionsModel(QObject* parent=0);
00047   virtual ~vtkQtChartSeriesOptionsModel() {}
00048 
00051   virtual int getNumberOfOptions() const = 0;
00052 
00058   virtual vtkQtChartSeriesOptions* getOptions(int series) const = 0;
00059 
00065   virtual int getOptionsIndex(vtkQtChartSeriesOptions *options) const = 0;
00066 
00067 public slots:
00070   virtual void reset()=0;
00071 
00072 signals:
00074   void modelAboutToBeReset();
00075 
00077   void modelReset();
00078 
00083   void optionsAboutToBeInserted(int first, int last);
00084 
00089   void optionsInserted(int first, int last);
00090 
00095   void optionsAboutToBeRemoved(int first, int last);
00096 
00101   void optionsRemoved(int first, int last);
00102 
00109   void optionsChanged(vtkQtChartSeriesOptions* options,
00110     int type, const QVariant& newValue, const QVariant& oldValue);
00111 
00112 protected:
00117   vtkQtChartSeriesOptions* newOptions(QObject* parent);
00118 
00120   void releaseOptions(vtkQtChartSeriesOptions* options);
00121 
00122 private slots:
00124   void optionsChanged(
00125     int type, const QVariant& newValue, const QVariant& oldValue);
00126 };
00127 
00128 #endif
00129 
00130