00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
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