VTK  9.0.20200930
vtkVolumeOfRevolutionFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkVolumeOfRevolutionFilter.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 =========================================================================*/
34 #ifndef vtkVolumeOfRevolutionFilter_h
35 #define vtkVolumeOfRevolutionFilter_h
36 
37 #include "vtkFiltersModelingModule.h" // For export macro
39 
40 class VTKFILTERSMODELING_EXPORT vtkVolumeOfRevolutionFilter : public vtkUnstructuredGridAlgorithm
41 {
42 public:
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
51 
53 
57  vtkSetClampMacro(Resolution, int, 1, VTK_INT_MAX);
58  vtkGetMacro(Resolution, int);
60 
62 
65  vtkSetClampMacro(SweepAngle, double, -360., 360.);
66  vtkGetMacro(SweepAngle, double);
68 
70 
73  vtkSetVector3Macro(AxisPosition, double);
74  vtkGetVector3Macro(AxisPosition, double);
76 
78 
81  vtkSetVector3Macro(AxisDirection, double);
82  vtkGetVector3Macro(AxisDirection, double);
84 
86 
91  vtkSetClampMacro(OutputPointsPrecision, int, SINGLE_PRECISION, DEFAULT_PRECISION);
92  vtkGetMacro(OutputPointsPrecision, int);
94 
95 protected:
97  ~vtkVolumeOfRevolutionFilter() override;
98 
100 
101  int FillInputPortInformation(int, vtkInformation*) override;
102 
104  double SweepAngle;
105  double AxisPosition[3];
106  double AxisDirection[3];
108 
109 private:
111  void operator=(const vtkVolumeOfRevolutionFilter&) = delete;
112 };
113 
114 #endif
VTK_INT_MAX
#define VTK_INT_MAX
Definition: vtkType.h:147
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkVolumeOfRevolutionFilter::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkVolumeOfRevolutionFilter.h:107
vtkUnstructuredGridAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkUnstructuredGridAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkVolumeOfRevolutionFilter::SweepAngle
double SweepAngle
Definition: vtkVolumeOfRevolutionFilter.h:104
vtkUnstructuredGridAlgorithm::New
static vtkUnstructuredGridAlgorithm * New()
vtkUnstructuredGridAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkUnstructuredGridAlgorithm.h
vtkUnstructuredGridAlgorithm
Superclass for algorithms that produce only unstructured grid as output.
Definition: vtkUnstructuredGridAlgorithm.h:40
vtkVolumeOfRevolutionFilter::Resolution
int Resolution
Definition: vtkVolumeOfRevolutionFilter.h:103
vtkVolumeOfRevolutionFilter
sweep data about a line to create a volume
Definition: vtkVolumeOfRevolutionFilter.h:40