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 "vtkPlot.h"
29 #include "vtkSmartPointer.h" // To hold ColorSeries etc.
30 
31 class vtkContext2D;
32 class vtkColorSeries;
33 class vtkPoints2D;
34 
35 class vtkPlotPiePrivate;
36 
38 {
39 public:
40  vtkTypeMacro(vtkPlotPie, vtkPlot);
41  virtual void PrintSelf(ostream &os, vtkIndent indent);
42 
43  static vtkPlotPie *New();
44 
46  virtual bool Paint(vtkContext2D *painter);
47 
53  bool PaintLegend(vtkContext2D *painter, const vtkRectf& rect, int legendIndex);
54 
58  void SetDimensions(int arg1, int arg2, int arg3, int arg4);
59 
63  void SetDimensions(int arg[4]);
64 
66 
69  vtkGetVector4Macro(Dimensions, int);
71 
73  void SetColorSeries(vtkColorSeries *colorSeries);
74 
76  vtkColorSeries *GetColorSeries();
77 
78 //BTX
80 
83  virtual vtkIdType GetNearestPoint(const vtkVector2f& point,
84  const vtkVector2f& tolerance,
85  vtkVector2f* location);
87 
88 protected:
89  vtkPlotPie();
90  ~vtkPlotPie();
91 
93  bool UpdateTableCache(vtkTable *table);
94 
95  int Dimensions[4];
96 
99 
102 
105 
106 private:
107  vtkPlotPie(const vtkPlotPie &); // Not implemented.
108  void operator=(const vtkPlotPie &); // Not implemented.
109 
110  vtkPlotPiePrivate *Private;
111 //ETX
112 };
113 
114 #endif //__vtkPlotPie_h
#define VTK_CHARTS_EXPORT
virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf &rect, int legendIndex)
virtual bool Paint(vtkContext2D *painter)
record modification and/or execution time
Definition: vtkTimeStamp.h:33
vtkSmartPointer< vtkColorSeries > ColorSeries
Definition: vtkPlotPie.h:98
int vtkIdType
Definition: vtkType.h:255
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:54
a simple class to control print indentation
Definition: vtkIndent.h:37
represent and manipulate 2D points
Definition: vtkPoints2D.h:34
Abstract class for 2D plots.
Definition: vtkPlot.h:50
virtual vtkIdType GetNearestPoint(const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location)
stores a list of colors.
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkTimeStamp BuildTime
Definition: vtkPlotPie.h:104
static vtkObject * New()
Class for drawing a Pie diagram.
Definition: vtkPlotPie.h:37
vtkPoints2D * Points
Definition: vtkPlotPie.h:101