VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
boeckb
code
depot
group-kitware
vtk
build-release
Utilities
Doxygen
dox
Charts
Core
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
38
class
VTKCHARTSCORE_EXPORT
vtkPlotPie
:
public
vtkPlot
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
84
virtual
vtkIdType
GetNearestPoint
(
const
vtkVector2f
&
point
,
85
const
vtkVector2f
& tolerance,
86
vtkVector2f
*
location
);
88
89
protected
:
90
vtkPlotPie
();
91
~
vtkPlotPie
();
92
94
bool
UpdateTableCache(
vtkTable
*table);
95
96
int
Dimensions[4];
97
99
vtkSmartPointer<vtkColorSeries>
ColorSeries
;
100
102
vtkPoints2D
*
Points
;
103
105
vtkTimeStamp
BuildTime
;
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
vtkX3D::location
Definition:
vtkX3D.h:406
vtkPlot::PaintLegend
virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf &rect, int legendIndex)
vtkAbstractContextItem::Paint
virtual bool Paint(vtkContext2D *painter)
vtkTimeStamp
record modification and/or execution time
Definition:
vtkTimeStamp.h:34
vtkPlotPie::ColorSeries
vtkSmartPointer< vtkColorSeries > ColorSeries
Definition:
vtkPlotPie.h:99
vtkSmartPointer< vtkColorSeries >
vtkIdType
int vtkIdType
Definition:
vtkType.h:275
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:56
vtkRectf
Definition:
vtkRect.h:96
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkPoints2D
represent and manipulate 2D points
Definition:
vtkPoints2D.h:35
vtkPlot
Abstract class for 2D plots.
Definition:
vtkPlot.h:51
vtkVector2f
Definition:
vtkVector.h:276
vtkPlot::GetNearestPoint
virtual vtkIdType GetNearestPoint(const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location)
vtkSmartPointer.h
vtkTable
A table, which contains similar-typed columns of data.
Definition:
vtkTable.h:67
vtkColorSeries
stores a list of colors.
Definition:
vtkColorSeries.h:53
vtkPlot::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkPlot.h
vtkX3D::point
Definition:
vtkX3D.h:236
vtkPlotPie::BuildTime
vtkTimeStamp BuildTime
Definition:
vtkPlotPie.h:105
vtkObject::New
static vtkObject * New()
vtkPlotPie
Class for drawing a Pie diagram.
Definition:
vtkPlotPie.h:38
vtkPlotPie::Points
vtkPoints2D * Points
Definition:
vtkPlotPie.h:102
VTKCHARTSCORE_EXPORT
#define VTKCHARTSCORE_EXPORT
Definition:
vtkChartsCoreModule.h:15
vtkChartsCoreModule.h
Generated by
1.8.9.1