VTK
vtkQtChartColorGenerator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQtChartColorGenerator.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 _vtkQtChartColorGenerator_h
25 #define _vtkQtChartColorGenerator_h
26 
27 
28 #include "vtkQtChartExport.h"
29 #include "vtkQtChartStyleBrush.h"
30 
31 class vtkQtChartColors;
32 
33 
38 class VTKQTCHART_EXPORT vtkQtChartColorGenerator : public vtkQtChartStyleBrush
39 {
40  Q_OBJECT
41 
42 public:
46  vtkQtChartColorGenerator(QObject *parent=0);
48 
50 
51  virtual QBrush getStyleBrush(int index) const;
62 
64 
65  vtkQtChartColors *getColors() {return this->Colors;}
70 
75  const vtkQtChartColors *getColors() const {return this->Colors;}
76 
80  void setColors(vtkQtChartColors *colors) {this->Colors = colors;}
82 
83 private:
84  vtkQtChartColors *Colors;
85 
86 private:
89 };
90 
91 #endif