VTK
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 :
42 {
43 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
52 
54 
58  vtkSetClampMacro(Resolution,int,1,VTK_INT_MAX);
59  vtkGetMacro(Resolution,int);
61 
63 
66  vtkSetClampMacro(SweepAngle,double,-360.,360.);
67  vtkGetMacro(SweepAngle,double);
69 
71 
74  vtkSetVector3Macro(AxisPosition,double);
75  vtkGetVector3Macro(AxisPosition,double);
77 
79 
82  vtkSetVector3Macro(AxisDirection,double);
83  vtkGetVector3Macro(AxisDirection,double);
85 
87 
92  vtkSetClampMacro(OutputPointsPrecision, int, SINGLE_PRECISION,
93  DEFAULT_PRECISION);
94  vtkGetMacro(OutputPointsPrecision, int);
96 
97 protected:
99  ~vtkVolumeOfRevolutionFilter() override;
100 
102  vtkInformationVector *) override;
103 
104  int FillInputPortInformation(int, vtkInformation *) override;
105 
107  double SweepAngle;
108  double AxisPosition[3];
109  double AxisDirection[3];
111 
112 private:
114  void operator=(const vtkVolumeOfRevolutionFilter&) = delete;
115 };
116 
117 #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:159
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:33
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