VTK
dox
opt
build
vtk6-6.3.0+dfsg2
Charts
Core
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 "
vtkChartsCoreModule.h
"
// For export macro
30
#include "
vtkChart.h
"
31
32
class
vtkChartLegend
;
33
class
vtkTooltipItem
;
34
class
vtkChartPiePrivate;
35
36
class
VTKCHARTSCORE_EXPORT
vtkChartPie
:
public
vtkChart
37
{
38
public
:
39
vtkTypeMacro
(
vtkChartPie
,
vtkChart
);
40
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
41
43
static
vtkChartPie
*
New
();
44
48
virtual
void
Update
();
49
52
virtual
bool
Paint
(
vtkContext2D
*painter);
53
55
virtual
vtkPlot
*
AddPlot
(
int
type
);
56
58
60
virtual
vtkIdType
AddPlot
(
vtkPlot
* plot)
61
{
return
Superclass::AddPlot(plot); }
63
66
virtual
vtkPlot
*
GetPlot
(
vtkIdType
index
);
67
69
virtual
vtkIdType
GetNumberOfPlots
();
70
72
virtual
void
SetShowLegend
(
bool
visible);
73
76
virtual
vtkChartLegend
*
GetLegend
();
77
80
virtual
void
SetScene
(
vtkContextScene
*scene);
81
82
//BTX
84
virtual
bool
Hit
(
const
vtkContextMouseEvent
&mouse);
85
87
virtual
bool
MouseEnterEvent
(
const
vtkContextMouseEvent
&mouse);
88
90
virtual
bool
MouseMoveEvent
(
const
vtkContextMouseEvent
&mouse);
91
93
virtual
bool
MouseLeaveEvent
(
const
vtkContextMouseEvent
&mouse);
94
96
virtual
bool
MouseButtonPressEvent
(
const
vtkContextMouseEvent
&mouse);
97
99
virtual
bool
MouseButtonReleaseEvent
(
const
vtkContextMouseEvent
&mouse);
100
102
104
virtual
bool
MouseWheelEvent
(
const
vtkContextMouseEvent
&mouse,
int
delta);
105
//ETX
107
108
//BTX
109
protected
:
110
vtkChartPie
();
111
~vtkChartPie
();
112
114
void
RecalculatePlotTransforms
();
115
117
vtkChartLegend
*
Legend
;
118
121
vtkTooltipItem
*
Tooltip
;
122
124
bool
PlotTransformValid
;
125
126
private
:
127
vtkChartPie
(
const
vtkChartPie
&);
// Not implemented.
128
void
operator=(
const
vtkChartPie
&);
// Not implemented.
129
131
bool
LocatePointInPlots(
const
vtkContextMouseEvent
&mouse);
132
134
vtkChartPiePrivate *Private;
135
136
//ETX
137
};
138
139
#endif //vtkChartPie_h
vtkChart
Factory class for drawing 2D charts.
Definition:
vtkChart.h:50
vtkChartPie
Factory class for drawing pie charts.
Definition:
vtkChartPie.h:37
vtkChartPie::RecalculatePlotTransforms
void RecalculatePlotTransforms()
vtkChartsCoreModule.h
vtkChartPie::AddPlot
virtual vtkIdType AddPlot(vtkPlot *plot)
Definition:
vtkChartPie.h:60
vtkContextMouseEvent
data structure to represent mouse events.
Definition:
vtkContextMouseEvent.h:40
vtkChartPie::Hit
virtual bool Hit(const vtkContextMouseEvent &mouse)
vtkChartPie::GetPlot
virtual vtkPlot * GetPlot(vtkIdType index)
vtkChartPie::Legend
vtkChartLegend * Legend
Definition:
vtkChartPie.h:117
vtkIdType
int vtkIdType
Definition:
vtkType.h:275
vtkChartPie::PlotTransformValid
bool PlotTransformValid
Definition:
vtkChartPie.h:124
vtkChartPie::AddPlot
virtual vtkPlot * AddPlot(int type)
vtkChartPie::SetShowLegend
virtual void SetShowLegend(bool visible)
vtkChartPie::MouseMoveEvent
virtual bool MouseMoveEvent(const vtkContextMouseEvent &mouse)
vtkChartLegend
draw the chart legend
Definition:
vtkChartLegend.h:42
vtkChart.h
vtkChartPie::SetScene
virtual void SetScene(vtkContextScene *scene)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition:
vtkSetGet.h:642
vtkChartPie::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkTooltipItem
takes care of drawing 2D axes
Definition:
vtkTooltipItem.h:39
vtkChartPie::GetLegend
virtual vtkChartLegend * GetLegend()
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:57
vtkPlot
Abstract class for 2D plots.
Definition:
vtkPlot.h:52
vtkChartPie::GetNumberOfPlots
virtual vtkIdType GetNumberOfPlots()
vtkContextScene
Provides a 2D scene for vtkContextItem objects.
Definition:
vtkContextScene.h:50
vtkChartPie::Update
virtual void Update()
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkChartPie::MouseButtonReleaseEvent
virtual bool MouseButtonReleaseEvent(const vtkContextMouseEvent &mouse)
vtkChartPie::vtkChartPie
vtkChartPie()
vtkChartPie::MouseButtonPressEvent
virtual bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse)
vtkChartPie::~vtkChartPie
~vtkChartPie()
vtkChartPie::Tooltip
vtkTooltipItem * Tooltip
Definition:
vtkChartPie.h:121
vtkgl::index
GLuint index
Definition:
vtkgl.h:11983
vtkChartPie::MouseLeaveEvent
virtual bool MouseLeaveEvent(const vtkContextMouseEvent &mouse)
vtkChartPie::MouseWheelEvent
virtual bool MouseWheelEvent(const vtkContextMouseEvent &mouse, int delta)
VTKCHARTSCORE_EXPORT
#define VTKCHARTSCORE_EXPORT
Definition:
vtkChartsCoreModule.h:15
vtkgl::type
GLuint GLuint GLsizei GLenum type
Definition:
vtkgl.h:11315
vtkChartPie::New
static vtkChartPie * New()
vtkChartPie::Paint
virtual bool Paint(vtkContext2D *painter)
vtkChartPie::MouseEnterEvent
virtual bool MouseEnterEvent(const vtkContextMouseEvent &mouse)
Generated by
1.8.20