VTK  9.3.1
vtkVolumeOfRevolutionFilter.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
25 #ifndef vtkVolumeOfRevolutionFilter_h
26 #define vtkVolumeOfRevolutionFilter_h
27 
28 #include "vtkFiltersModelingModule.h" // For export macro
30 
31 VTK_ABI_NAMESPACE_BEGIN
32 class VTKFILTERSMODELING_EXPORT vtkVolumeOfRevolutionFilter : public vtkUnstructuredGridAlgorithm
33 {
34 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
43 
45 
49  vtkSetClampMacro(Resolution, int, 1, VTK_INT_MAX);
50  vtkGetMacro(Resolution, int);
52 
54 
57  vtkSetClampMacro(SweepAngle, double, -360., 360.);
58  vtkGetMacro(SweepAngle, double);
60 
62 
65  vtkSetVector3Macro(AxisPosition, double);
66  vtkGetVector3Macro(AxisPosition, double);
68 
70 
73  vtkSetVector3Macro(AxisDirection, double);
74  vtkGetVector3Macro(AxisDirection, double);
76 
78 
83  vtkSetClampMacro(OutputPointsPrecision, int, SINGLE_PRECISION, DEFAULT_PRECISION);
84  vtkGetMacro(OutputPointsPrecision, int);
86 
87 protected:
89  ~vtkVolumeOfRevolutionFilter() override;
90 
92 
93  int FillInputPortInformation(int, vtkInformation*) override;
94 
96  double SweepAngle;
97  double AxisPosition[3];
98  double AxisDirection[3];
100 
101 private:
103  void operator=(const vtkVolumeOfRevolutionFilter&) = delete;
104 };
105 
106 VTK_ABI_NAMESPACE_END
107 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store vtkAlgorithm input/output information.
#define VTK_INT_MAX
Definition: vtkType.h:144
static vtkUnstructuredGridAlgorithm * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:28
Superclass for algorithms that produce only unstructured grid as output.
Store zero or more vtkInformation instances.
sweep data about a line to create a volume