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
VTK_CHARTS_EXPORT
#define VTK_CHARTS_EXPORT
Definition:
vtkWin32Header.h:285
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:33
vtkPlotPie::ColorSeries
vtkSmartPointer< vtkColorSeries > ColorSeries
Definition:
vtkPlotPie.h:98
vtkSmartPointer< vtkColorSeries >
vtkIdType
int vtkIdType
Definition:
vtkType.h:255
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:54
vtkRectf
Definition:
vtkRect.h:103
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:37
vtkPoints2D
represent and manipulate 2D points
Definition:
vtkPoints2D.h:34
vtkPlot
Abstract class for 2D plots.
Definition:
vtkPlot.h:50
vtkVector2f
Definition:
vtkVector.h:202
vtkPlot::GetNearestPoint
virtual vtkIdType GetNearestPoint(const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location)
vtkSmartPointer.h
vtkColorSeries
stores a list of colors.
Definition:
vtkColorSeries.h:35
vtkPlot::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkPlot.h
vtkPlotPie::BuildTime
vtkTimeStamp BuildTime
Definition:
vtkPlotPie.h:104
vtkObject::New
static vtkObject * New()
vtkPlotPie
Class for drawing a Pie diagram.
Definition:
vtkPlotPie.h:37
vtkPlotPie::Points
vtkPoints2D * Points
Definition:
vtkPlotPie.h:101
Generated on Thu Oct 24 2019 21:14:24 for VTK by
1.8.6