VTK
vtkQtChartColorStyleGenerator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQtChartColorStyleGenerator.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 _vtkQtChartColorStyleGenerator_h
25 #define _vtkQtChartColorStyleGenerator_h
26 
27 #include "vtkQtChartExport.h"
28 #include "vtkQtChartStylePen.h"
29 
30 class vtkQtChartColors;
31 class vtkQtChartColorStyleGeneratorInternal;
32 
33 
38 class VTKQTCHART_EXPORT vtkQtChartColorStyleGenerator :
39  public vtkQtChartStylePen
40 {
41  Q_OBJECT
42 
43 public:
47  vtkQtChartColorStyleGenerator(QObject *parent=0);
49 
51 
52  virtual QPen getStylePen(int index) const;
64 
66 
67  vtkQtChartColors *getColors() {return this->Colors;}
72 
77  const vtkQtChartColors *getColors() const {return this->Colors;}
78 
82  void setColors(vtkQtChartColors *colors) {this->Colors = colors;}
84 
86 
87  int getNumberOfStyles() const;
92 
103  Qt::PenStyle getPenStyle(int index) const;
104 
112  void setPenStyle(int index, Qt::PenStyle style);
113 
115  void clearPenStyles();
116 
120  void addPenStyle(Qt::PenStyle style);
121 
126  void insertPenStyle(int index, Qt::PenStyle style);
127 
131  void removePenStyle(int index);
133 
134 private:
136  vtkQtChartColorStyleGeneratorInternal *Internal;
137  vtkQtChartColors *Colors;
138 
139 private:
143 };
144 
145 #endif