VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Charts
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
37
class
VTK_CHARTS_EXPORT
vtkPlotPie
:
public
vtkPlot
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
98
vtkSmartPointer<vtkColorSeries>
ColorSeries
;
99
101
vtkPoints2D
*
Points
;
102
104
vtkTimeStamp
BuildTime
;
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
Generated on Thu Mar 13 2014 08:09:43 for VTK by
1.8.1.2