VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkQtChartPenBrushGenerator.h,v $ 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 00023 00024 #ifndef _vtkQtChartPenBrushGenerator_h 00025 #define _vtkQtChartPenBrushGenerator_h 00026 00027 #include "vtkQtChartExport.h" 00028 #include "vtkQtChartStyleGenerator.h" 00029 00030 class vtkQtChartColors; 00031 class vtkQtChartPenBrushGeneratorInternal; 00032 00033 00038 class VTKQTCHART_EXPORT vtkQtChartPenBrushGenerator : 00039 public vtkQtChartStyleGenerator 00040 { 00041 Q_OBJECT 00042 00043 public: 00047 vtkQtChartPenBrushGenerator(QObject *parent=0); 00048 virtual ~vtkQtChartPenBrushGenerator(); 00049 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 00061 virtual QBrush getSeriesBrush(int index) const; 00062 00072 virtual QPen getSeriesPen(int index) const; 00074 00076 00077 00078 00079 00080 00081 int getNumberOfBrushes() const; 00082 00093 QBrush getBrush(int index) const; 00094 00102 void setBrush(int index, const QBrush &brush); 00103 00105 void clearBrushes(); 00106 00110 void addBrushes(const vtkQtChartColors &colors); 00111 00115 void addBrush(const QBrush &brush); 00116 00121 void insertBrush(int index, const QBrush &brush); 00122 00126 void removeBrush(int index); 00128 00130 00131 00132 00133 00134 00135 int getNumberOfPens() const; 00136 00147 QPen getPen(int index) const; 00148 00156 void setPen(int index, const QPen &pen); 00157 00159 void clearPens(); 00160 00164 void addPens(const vtkQtChartColors &colors); 00165 00169 void addPen(const QPen &pen); 00170 00175 void insertPen(int index, const QPen &pen); 00176 00180 void removePen(int index); 00182 00183 private: 00185 vtkQtChartPenBrushGeneratorInternal *Internal; 00186 }; 00187 00188 #endif