VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Charts
vtkChartPie.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkChartPie.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
26
#ifndef __vtkChartPie_h
27
#define __vtkChartPie_h
28
29
#include "
vtkChart.h
"
30
31
class
vtkChartLegend
;
32
class
vtkTooltipItem
;
33
class
vtkChartPiePrivate;
34
35
class
VTK_CHARTS_EXPORT
vtkChartPie
:
public
vtkChart
36
{
37
public
:
38
vtkTypeMacro(
vtkChartPie
,
vtkChart
);
39
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
40
42
static
vtkChartPie
*
New
();
43
47
virtual
void
Update
();
48
51
virtual
bool
Paint
(
vtkContext2D
*painter);
52
54
virtual
vtkPlot
*
AddPlot
(
int
type);
55
57
59
virtual
vtkIdType
AddPlot
(
vtkPlot
* plot)
60
{
return
Superclass::AddPlot(plot); }
62
65
virtual
vtkPlot
*
GetPlot
(
vtkIdType
index);
66
68
virtual
vtkIdType
GetNumberOfPlots
();
69
71
virtual
void
SetShowLegend
(
bool
visible);
72
75
virtual
vtkChartLegend
*
GetLegend
();
76
79
virtual
void
SetScene
(
vtkContextScene
*scene);
80
81
//BTX
83
virtual
bool
Hit
(
const
vtkContextMouseEvent
&mouse);
84
86
virtual
bool
MouseEnterEvent
(
const
vtkContextMouseEvent
&mouse);
87
89
virtual
bool
MouseMoveEvent
(
const
vtkContextMouseEvent
&mouse);
90
92
virtual
bool
MouseLeaveEvent
(
const
vtkContextMouseEvent
&mouse);
93
95
virtual
bool
MouseButtonPressEvent
(
const
vtkContextMouseEvent
&mouse);
96
98
virtual
bool
MouseButtonReleaseEvent
(
const
vtkContextMouseEvent
&mouse);
99
101
103
virtual
bool
MouseWheelEvent
(
const
vtkContextMouseEvent
&mouse,
int
delta);
104
//ETX
106
107
//BTX
108
protected
:
109
vtkChartPie
();
110
~
vtkChartPie
();
111
113
void
RecalculatePlotTransforms();
114
116
vtkChartLegend
*
Legend
;
117
120
vtkTooltipItem
*
Tooltip
;
121
123
bool
PlotTransformValid
;
124
125
private
:
126
vtkChartPie
(
const
vtkChartPie
&);
// Not implemented.
127
void
operator=(
const
vtkChartPie
&);
// Not implemented.
128
130
bool
LocatePointInPlots(
const
vtkContextMouseEvent
&mouse);
131
133
vtkChartPiePrivate *Private;
134
135
//ETX
136
};
137
138
#endif //__vtkChartPie_h
Generated on Sun Sep 15 2013 03:44:18 for VTK by
1.8.4