VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Graphics
vtkCylinderSource.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkCylinderSource.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
=========================================================================*/
31
#ifndef __vtkCylinderSource_h
32
#define __vtkCylinderSource_h
33
34
#include "
vtkPolyDataAlgorithm.h
"
35
36
#include "
vtkCell.h
"
// Needed for VTK_CELL_SIZE
37
38
class
VTK_GRAPHICS_EXPORT
vtkCylinderSource
:
public
vtkPolyDataAlgorithm
39
{
40
public
:
41
static
vtkCylinderSource
*
New
();
42
vtkTypeMacro(
vtkCylinderSource
,
vtkPolyDataAlgorithm
);
43
void
PrintSelf
(ostream& os,
vtkIndent
indent);
44
46
47
vtkSetClampMacro(Height,
double
,0.0,
VTK_DOUBLE_MAX
)
48
vtkGetMacro(Height,
double
);
50
52
53
vtkSetClampMacro(Radius,
double
,0.0,
VTK_DOUBLE_MAX
)
54
vtkGetMacro(Radius,
double
);
56
58
59
vtkSetVector3Macro(Center,
double
);
60
vtkGetVectorMacro(Center,
double
,3);
62
64
65
vtkSetClampMacro(Resolution,
int
,2,
VTK_CELL_SIZE
)
66
vtkGetMacro(Resolution,
int
);
68
70
72
vtkSetMacro(Capping,
int
);
73
vtkGetMacro(Capping,
int
);
74
vtkBooleanMacro(Capping,
int
);
76
77
protected:
78
vtkCylinderSource
(
int
res=6);
79
~
vtkCylinderSource
() {};
80
81
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
82
double
Height
;
83
double
Radius
;
84
double
Center[3];
85
int
Resolution
;
86
int
Capping
;
87
88
private
:
89
vtkCylinderSource
(
const
vtkCylinderSource
&);
// Not implemented.
90
void
operator=(
const
vtkCylinderSource
&);
// Not implemented.
91
};
92
93
#endif
Generated on Wed Nov 21 2012 21:33:47 for VTK by
1.8.2