Loading [MathJax]/extensions/tex2jax.js
VTK  9.4.20250412
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
83#ifndef vtkDiskSource_h
84#define vtkDiskSource_h
85
86#include "vtkFiltersSourcesModule.h" // For export macro
88
89VTK_ABI_NAMESPACE_BEGIN
90class vtkTransform;
91
92class VTKFILTERSSOURCES_EXPORT vtkDiskSource : public vtkPolyDataAlgorithm
93{
94public:
96
102 void PrintSelf(ostream& os, vtkIndent indent) override;
104
106
109 vtkSetClampMacro(InnerRadius, double, 0.0, VTK_DOUBLE_MAX);
110 vtkGetMacro(InnerRadius, double);
112
114
117 vtkSetClampMacro(OuterRadius, double, 0.0, VTK_DOUBLE_MAX);
118 vtkGetMacro(OuterRadius, double);
120
122
125 vtkSetClampMacro(RadialResolution, int, 1, VTK_INT_MAX);
126 vtkGetMacro(RadialResolution, int);
128
130
133 vtkSetClampMacro(CircumferentialResolution, int, 3, VTK_INT_MAX);
134 vtkGetMacro(CircumferentialResolution, int);
136
138
141 vtkSetVector3Macro(Center, double);
142 vtkGetVectorMacro(Center, double, 3);
144
146
149 vtkSetVector3Macro(Normal, double);
150 vtkGetVectorMacro(Normal, double, 3);
152
154
159 vtkSetMacro(OutputPointsPrecision, int);
160 vtkGetMacro(OutputPointsPrecision, int);
162
163protected:
165 ~vtkDiskSource() override = default;
166
171 double Center[3];
172 double Normal[3];
176
177private:
178 vtkDiskSource(const vtkDiskSource&) = delete;
179 void operator=(const vtkDiskSource&) = delete;
180};
181
182VTK_ABI_NAMESPACE_END
183#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:108
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:171
#define VTK_INT_MAX
Definition vtkType.h:161