VTK
vtkQtChartBasicStyleManager.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQtChartBasicStyleManager.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 _vtkQtChartBasicStyleManager_h
25 #define _vtkQtChartBasicStyleManager_h
26 
27 
28 #include "vtkQtChartExport.h"
29 #include "vtkQtChartStyleManager.h"
30 
31 class vtkQtChartBasicStyleManagerInternal;
32 class vtkQtChartColors;
34 
35 
45 class VTKQTCHART_EXPORT vtkQtChartBasicStyleManager :
47 {
48  Q_OBJECT
49 
50 public:
54  vtkQtChartBasicStyleManager(QObject *parent=0);
55  virtual ~vtkQtChartBasicStyleManager();
56 
58 
59  virtual int getStyleIndex(vtkQtChartSeriesLayer *layer,
60  vtkQtChartSeriesOptions *options) const;
61 
62  virtual int insertStyle(vtkQtChartSeriesLayer *layer,
63  vtkQtChartSeriesOptions *options);
64 
65  virtual void removeStyle(vtkQtChartSeriesLayer *layer,
66  vtkQtChartSeriesOptions *options);
68 
70 
71  vtkQtChartColors *getColors() {return this->Colors;}
76 
81  const vtkQtChartColors *getColors() const {return this->Colors;}
83 
84 private:
86  vtkQtChartBasicStyleManagerInternal *Internal;
87  vtkQtChartStyleRegistry *Styles;
88  vtkQtChartColors *Colors;
89 
90 private:
93 };
94 
95 #endif
const vtkQtChartColors * getColors() const
Gets the list of colors.
virtual void removeStyle(vtkQtChartSeriesLayer *layer, vtkQtChartSeriesOptions *options)=0
The vtkQtChartColors class stores a list of colors.
virtual int getStyleIndex(vtkQtChartSeriesLayer *layer, vtkQtChartSeriesOptions *options) const =0
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...
virtual int insertStyle(vtkQtChartSeriesLayer *layer, vtkQtChartSeriesOptions *options)=0
The vtkQtChartSeriesOptions class stores the common series drawing options.
The vtkQtChartBasicStyleManager class manages chart options using a vtkQtChartStyleRegistry.
The vtkQtChartStyleRegistry class keeps track of reserved style indexes.