VTK: Filters/Modeling/vtkRotationalExtrusionFilter.h Source File

| VTK 9.3.1

vtkRotationalExtrusionFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
59 #ifndef vtkRotationalExtrusionFilter_h
60 #define vtkRotationalExtrusionFilter_h
61
62 #include "vtkFiltersModelingModule.h" // For export macro
63 #include "vtkPolyDataAlgorithm.h"
64
65 VTK_ABI_NAMESPACE_BEGIN
66 class VTKFILTERSMODELING_EXPORT vtkRotationalExtrusionFilter : public vtkPolyDataAlgorithm
67 {
68 public:
69 vtkTypeMacro(vtkRotationalExtrusionFilter, vtkPolyDataAlgorithm);
70 void PrintSelf(ostream& os, vtkIndent indent) override;
71
77 static vtkRotationalExtrusionFilter* New();
78
80
84 vtkSetClampMacro(Resolution, int, 1, VTK_INT_MAX);
85 vtkGetMacro(Resolution, int);
87
89
92 vtkSetMacro(Capping, vtkTypeBool);
93 vtkGetMacro(Capping, vtkTypeBool);
94 vtkBooleanMacro(Capping, vtkTypeBool);
96
98
101 vtkSetMacro(Angle, double);
102 vtkGetMacro(Angle, double);
104
106
109 vtkSetMacro(Translation, double);
110 vtkGetMacro(Translation, double);
112
114
117 vtkSetMacro(DeltaRadius, double);
118 vtkGetMacro(DeltaRadius, double);
120
122
125 vtkSetVector3Macro(RotationAxis, double);
126 vtkGetVector3Macro(RotationAxis, double);
128
129 protected:
130 vtkRotationalExtrusionFilter();
131 ~vtkRotationalExtrusionFilter() override = default;
132
133 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
134 int Resolution;
135 vtkTypeBool Capping;
136 double Angle;
137 double Translation;
138 double DeltaRadius;
139 double RotationAxis[3] = { 0, 0, 1 };
140
141 private:
142 vtkRotationalExtrusionFilter(const vtkRotationalExtrusionFilter&) = delete;
143 void operator=(const vtkRotationalExtrusionFilter&) = delete;
144 };
145
146 VTK_ABI_NAMESPACE_END
147 #endif
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:43
vtkRotationalExtrusionFilter
sweep polygonal data creating "skirt" from free edges and lines, and lines from vertices
Definition: vtkRotationalExtrusionFilter.h:67
vtkRotationalExtrusionFilter::Angle
double Angle
Definition: vtkRotationalExtrusionFilter.h:136
vtkRotationalExtrusionFilter::~vtkRotationalExtrusionFilter
~vtkRotationalExtrusionFilter() override=default
vtkRotationalExtrusionFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkRotationalExtrusionFilter::DeltaRadius
double DeltaRadius
Definition: vtkRotationalExtrusionFilter.h:138
vtkRotationalExtrusionFilter::vtkRotationalExtrusionFilter
vtkRotationalExtrusionFilter()
vtkRotationalExtrusionFilter::Capping
vtkTypeBool Capping
Definition: vtkRotationalExtrusionFilter.h:135
vtkRotationalExtrusionFilter::New
static vtkRotationalExtrusionFilter * New()
Create object with capping on, angle of 360 degrees, resolution = 12, and no translation along z-axis...
vtkRotationalExtrusionFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkRotationalExtrusionFilter::Resolution
int Resolution
Definition: vtkRotationalExtrusionFilter.h:134
vtkRotationalExtrusionFilter::Translation
double Translation
Definition: vtkRotationalExtrusionFilter.h:137
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:64
vtkPolyDataAlgorithm.h
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:144