VTK
dox
opt
build
vtk6-6.3.0+dfsg2
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
vtkPoints2D
represent and manipulate 2D points
Definition:
vtkPoints2D.h:36
vtkChartsCoreModule.h
vtkPlot.h
vtkIdType
int vtkIdType
Definition:
vtkType.h:275
vtkTable
A table, which contains similar-typed columns of data.
Definition:
vtkTable.h:68
vtkColorSeries
stores a list of colors.
Definition:
vtkColorSeries.h:54
vtkPlotPie::SetDimensions
void SetDimensions(int arg1, int arg2, int arg3, int arg4)
vtkTimeStamp
record modification and/or execution time
Definition:
vtkTimeStamp.h:35
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition:
vtkSetGet.h:642
vtkSmartPointer< vtkColorSeries >
vtkPlotPie::UpdateTableCache
bool UpdateTableCache(vtkTable *table)
vtkPlotPie::SetDimensions
void SetDimensions(int arg[4])
vtkgl::table
GLenum GLsizei GLenum GLenum const GLvoid * table
Definition:
vtkgl.h:11332
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:57
vtkPlotPie::PaintLegend
bool PaintLegend(vtkContext2D *painter, const vtkRectf &rect, int legendIndex)
vtkPlot
Abstract class for 2D plots.
Definition:
vtkPlot.h:52
vtkgl::arg3
GLuint GLuint GLuint GLuint GLuint GLuint GLuint GLuint GLuint GLuint arg3
Definition:
vtkgl.h:16717
vtkPlotPie::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkX3D::point
@ point
Definition:
vtkX3D.h:236
vtkPlotPie::Points
vtkPoints2D * Points
Definition:
vtkPlotPie.h:102
vtkPlotPie::BuildTime
vtkTimeStamp BuildTime
Definition:
vtkPlotPie.h:105
vtkgl::arg2
GLuint GLuint GLuint GLuint GLuint GLuint GLuint arg2
Definition:
vtkgl.h:16716
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkPlotPie::SetColorSeries
void SetColorSeries(vtkColorSeries *colorSeries)
vtkSmartPointer.h
vtkPlotPie::Paint
virtual bool Paint(vtkContext2D *painter)
vtkPlotPie::GetNearestPoint
virtual vtkIdType GetNearestPoint(const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location)
vtkPlotPie::New
static vtkPlotPie * New()
vtkPlotPie
Class for drawing a Pie diagram.
Definition:
vtkPlotPie.h:39
vtkPlotPie::ColorSeries
vtkSmartPointer< vtkColorSeries > ColorSeries
Definition:
vtkPlotPie.h:99
vtkgl::location
GLint location
Definition:
vtkgl.h:12002
vtkPlotPie::vtkPlotPie
vtkPlotPie()
vtkgl::arg1
GLuint GLuint GLuint GLuint arg1
Definition:
vtkgl.h:16715
VTKCHARTSCORE_EXPORT
#define VTKCHARTSCORE_EXPORT
Definition:
vtkChartsCoreModule.h:15
vtkGetVector4Macro
#define vtkGetVector4Macro(name, type)
Definition:
vtkSetGet.h:341
vtkRectf
Definition:
vtkRect.h:97
vtkVector2f
Definition:
vtkVector.h:277
vtkPlotPie::GetColorSeries
vtkColorSeries * GetColorSeries()
vtkPlotPie::~vtkPlotPie
~vtkPlotPie()
Generated by
1.8.20