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 
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
virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf &rect, int legendIndex)
virtual bool Paint(vtkContext2D *painter)
record modification and/or execution time
Definition: vtkTimeStamp.h:34
vtkSmartPointer< vtkColorSeries > ColorSeries
Definition: vtkPlotPie.h:99
int vtkIdType
Definition: vtkType.h:275
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:56
a simple class to control print indentation
Definition: vtkIndent.h:38
represent and manipulate 2D points
Definition: vtkPoints2D.h:35
Abstract class for 2D plots.
Definition: vtkPlot.h:51
virtual vtkIdType GetNearestPoint(const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location)
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:67
stores a list of colors.
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkTimeStamp BuildTime
Definition: vtkPlotPie.h:105
static vtkObject * New()
Class for drawing a Pie diagram.
Definition: vtkPlotPie.h:38
vtkPoints2D * Points
Definition: vtkPlotPie.h:102
#define VTKCHARTSCORE_EXPORT