VTK  9.1.0
vtkRotationalExtrusionFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkRotationalExtrusionFilter.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 =========================================================================*/
59 #ifndef vtkRotationalExtrusionFilter_h
60 #define vtkRotationalExtrusionFilter_h
61 
62 #include "vtkFiltersModelingModule.h" // For export macro
63 #include "vtkPolyDataAlgorithm.h"
64 
65 class VTKFILTERSMODELING_EXPORT vtkRotationalExtrusionFilter : public vtkPolyDataAlgorithm
66 {
67 public:
69  void PrintSelf(ostream& os, vtkIndent indent) override;
70 
77 
79 
83  vtkSetClampMacro(Resolution, int, 1, VTK_INT_MAX);
84  vtkGetMacro(Resolution, int);
86 
88 
91  vtkSetMacro(Capping, vtkTypeBool);
92  vtkGetMacro(Capping, vtkTypeBool);
93  vtkBooleanMacro(Capping, vtkTypeBool);
95 
97 
100  vtkSetMacro(Angle, double);
101  vtkGetMacro(Angle, double);
103 
105 
108  vtkSetMacro(Translation, double);
109  vtkGetMacro(Translation, double);
111 
113 
116  vtkSetMacro(DeltaRadius, double);
117  vtkGetMacro(DeltaRadius, double);
119 
121 
124  vtkSetVector3Macro(RotationAxis, double);
125  vtkGetVector3Macro(RotationAxis, double);
127 
128 protected:
130  ~vtkRotationalExtrusionFilter() override = default;
131 
135  double Angle;
136  double Translation;
137  double DeltaRadius;
138  double RotationAxis[3] = { 0, 0, 1 };
139 
140 private:
142  void operator=(const vtkRotationalExtrusionFilter&) = delete;
143 };
144 
145 #endif
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
sweep polygonal data creating "skirt" from free edges and lines, and lines from vertices
~vtkRotationalExtrusionFilter() override=default
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkRotationalExtrusionFilter * New()
Create object with capping on, angle of 360 degrees, resolution = 12, and no translation along z-axis...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_INT_MAX
Definition: vtkType.h:155