VTK
vtkQtChartStyleManager.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQtChartStyleManager.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 _vtkQtChartStyleManager_h
25 #define _vtkQtChartStyleManager_h
26 
27 
28 #include "vtkQtChartExport.h"
29 #include <QObject>
30 
33 class vtkQtChartStyleManagerInternal;
34 class QString;
35 
36 
46 class VTKQTCHART_EXPORT vtkQtChartStyleManager : public QObject
47 {
48  Q_OBJECT
49 
50 public:
54  vtkQtChartStyleManager(QObject *parent=0);
55  virtual ~vtkQtChartStyleManager();
56 
58 
59  virtual int getStyleIndex(vtkQtChartSeriesLayer *layer,
60  vtkQtChartSeriesOptions *options) const = 0;
61 
62  virtual int insertStyle(vtkQtChartSeriesLayer *layer,
63  vtkQtChartSeriesOptions *options) = 0;
64 
65  virtual void removeStyle(vtkQtChartSeriesLayer *layer,
66  vtkQtChartSeriesOptions *options) = 0;
68 
70 
71  QObject *getGenerator(const QString &name) const;
72 
73  void setGenerator(const QString &name, QObject *generator);
74 
75  void removeGenerator(const QString &name);
76 
77  void removeGenerator(QObject *generator);
79 
80 private:
82  vtkQtChartStyleManagerInternal *Internal;
83 
84 private:
87 };
88 
89 #endif
The vtkQtChartSeriesLayer class is the base class for chart layers that use the chart series model...
The vtkQtChartStyleManager class allows several chart layers to share the same style generators...
The vtkQtChartSeriesOptions class stores the common series drawing options.