VTK  9.3.0
vtkDiskSource.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
21#ifndef vtkDiskSource_h
22#define vtkDiskSource_h
23
24#include "vtkFiltersSourcesModule.h" // For export macro
26
27VTK_ABI_NAMESPACE_BEGIN
28class vtkTransform;
29
30class VTKFILTERSSOURCES_EXPORT vtkDiskSource : public vtkPolyDataAlgorithm
31{
32public:
34
38 static vtkDiskSource* New();
40 void PrintSelf(ostream& os, vtkIndent indent) override;
42
44
47 vtkSetClampMacro(InnerRadius, double, 0.0, VTK_DOUBLE_MAX);
48 vtkGetMacro(InnerRadius, double);
50
52
55 vtkSetClampMacro(OuterRadius, double, 0.0, VTK_DOUBLE_MAX);
56 vtkGetMacro(OuterRadius, double);
58
60
63 vtkSetClampMacro(RadialResolution, int, 1, VTK_INT_MAX);
64 vtkGetMacro(RadialResolution, int);
66
68
71 vtkSetClampMacro(CircumferentialResolution, int, 3, VTK_INT_MAX);
72 vtkGetMacro(CircumferentialResolution, int);
74
76
79 vtkSetVector3Macro(Center, double);
80 vtkGetVectorMacro(Center, double, 3);
82
84
87 vtkSetVector3Macro(Normal, double);
88 vtkGetVectorMacro(Normal, double, 3);
90
92
97 vtkSetMacro(OutputPointsPrecision, int);
98 vtkGetMacro(OutputPointsPrecision, int);
100
101protected:
103 ~vtkDiskSource() override = default;
104
109 double Center[3];
110 double Normal[3];
114
115private:
116 vtkDiskSource(const vtkDiskSource&) = delete;
117 void operator=(const vtkDiskSource&) = delete;
118};
119
120VTK_ABI_NAMESPACE_END
121#endif
create a disk with hole in center
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods to instantiate the class, obtain type information, and print the state of the object...
~vtkDiskSource() override=default
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkSmartPointer< vtkTransform > GetTransformation()
int CircumferentialResolution
static vtkDiskSource * New()
Standard methods to instantiate the class, obtain type information, and print the state of the object...
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
Hold a reference to a vtkObjectBase instance.
describes linear transformations via a 4x4 matrix
#define VTK_DOUBLE_MAX
Definition vtkType.h:154
#define VTK_INT_MAX
Definition vtkType.h:144