VTK
dox
Filters
Sources
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
=========================================================================*/
28
#ifndef vtkCylinderSource_h
29
#define vtkCylinderSource_h
30
31
#include "vtkFiltersSourcesModule.h"
// For export macro
32
#include "
vtkPolyDataAlgorithm.h
"
33
34
#include "
vtkCell.h
"
// Needed for VTK_CELL_SIZE
35
36
class
VTKFILTERSSOURCES_EXPORT
vtkCylinderSource
:
public
vtkPolyDataAlgorithm
37
{
38
public
:
39
static
vtkCylinderSource
*
New
();
40
vtkTypeMacro(
vtkCylinderSource
,
vtkPolyDataAlgorithm
);
41
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
42
44
47
vtkSetClampMacro(Height,
double
,0.0,
VTK_DOUBLE_MAX
)
48
vtkGetMacro(Height,
double
);
50
52
55
vtkSetClampMacro(Radius,
double
,0.0,
VTK_DOUBLE_MAX
)
56
vtkGetMacro(Radius,
double
);
58
60
63
vtkSetVector3Macro(Center,
double
);
64
vtkGetVectorMacro(Center,
double
,3);
66
68
71
vtkSetClampMacro(Resolution,
int
,2,
VTK_CELL_SIZE
)
72
vtkGetMacro(Resolution,
int
);
74
76
79
vtkSetMacro(Capping,
vtkTypeBool
);
80
vtkGetMacro(Capping,
vtkTypeBool
);
81
vtkBooleanMacro(Capping,
vtkTypeBool
);
83
85
90
vtkSetMacro(OutputPointsPrecision,
int
);
91
vtkGetMacro(OutputPointsPrecision,
int
);
93
94
protected
:
95
vtkCylinderSource
(
int
res=6);
96
~vtkCylinderSource
()
override
{}
97
98
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
99
double
Height
;
100
double
Radius
;
101
double
Center[3];
102
int
Resolution
;
103
vtkTypeBool
Capping
;
104
int
OutputPointsPrecision
;
105
106
private
:
107
vtkCylinderSource
(
const
vtkCylinderSource
&) =
delete
;
108
void
operator=(
const
vtkCylinderSource
&) =
delete
;
109
};
110
111
#endif
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:35
vtkCylinderSource::Radius
double Radius
Definition:
vtkCylinderSource.h:100
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCell.h
vtkPolyDataAlgorithm.h
vtkCylinderSource::Height
double Height
Definition:
vtkCylinderSource.h:99
VTK_CELL_SIZE
#define VTK_CELL_SIZE
Definition:
vtkCell.h:40
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkCylinderSource::Resolution
int Resolution
Definition:
vtkCylinderSource.h:102
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkCylinderSource::OutputPointsPrecision
int OutputPointsPrecision
Definition:
vtkCylinderSource.h:104
vtkCylinderSource
generate a cylinder centered at origin
Definition:
vtkCylinderSource.h:36
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:80
vtkCylinderSource::~vtkCylinderSource
~vtkCylinderSource() override
Definition:
vtkCylinderSource.h:96
vtkCylinderSource::Capping
vtkTypeBool Capping
Definition:
vtkCylinderSource.h:103
VTK_DOUBLE_MAX
#define VTK_DOUBLE_MAX
Definition:
vtkType.h:169
vtkTypeBool
int vtkTypeBool
Definition:
vtkABI.h:69
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition:
vtkPolyDataAlgorithm.h:41
Generated by
1.8.16