VTK
vtkPlotPie.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPlotPie.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 
25 #ifndef __vtkPlotPie_h
26 #define __vtkPlotPie_h
27 
28 #include "vtkChartsCoreModule.h" // For export macro
29 #include "vtkPlot.h"
30 #include "vtkSmartPointer.h" // To hold ColorSeries etc.
31 
32 class vtkContext2D;
33 class vtkColorSeries;
34 class vtkPoints2D;
35 
36 class vtkPlotPiePrivate;
37 
38 class VTKCHARTSCORE_EXPORT vtkPlotPie : public vtkPlot
39 {
40 public:
41  vtkTypeMacro(vtkPlotPie, vtkPlot);
42  virtual void PrintSelf(ostream &os, vtkIndent indent);
43 
44  static vtkPlotPie *New();
45 
47  virtual bool Paint(vtkContext2D *painter);
48 
54  bool PaintLegend(vtkContext2D *painter, const vtkRectf& rect, int legendIndex);
55 
59  void SetDimensions(int arg1, int arg2, int arg3, int arg4);
60 
64  void SetDimensions(int arg[4]);
65 
67 
70  vtkGetVector4Macro(Dimensions, int);
72 
74  void SetColorSeries(vtkColorSeries *colorSeries);
75 
77  vtkColorSeries *GetColorSeries();
78 
79 //BTX
81 
85  const vtkVector2f& tolerance,
88 
89 protected:
90  vtkPlotPie();
91  ~vtkPlotPie();
92 
94  bool UpdateTableCache(vtkTable *table);
95 
96  int Dimensions[4];
97 
100 
103 
106 
107 private:
108  vtkPlotPie(const vtkPlotPie &); // Not implemented.
109  void operator=(const vtkPlotPie &); // Not implemented.
110 
111  vtkPlotPiePrivate *Private;
112 //ETX
113 };
114 
115 #endif //__vtkPlotPie_h