VTK  9.6.1
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
23
24#ifndef vtkDiskSource_h
25#define vtkDiskSource_h
26
27#include "vtkFiltersSourcesModule.h" // For export macro
29#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
30
31VTK_ABI_NAMESPACE_BEGIN
32class vtkTransform;
33
34class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkDiskSource : public vtkPolyDataAlgorithm
35{
36public:
38
42 static vtkDiskSource* New();
44 void PrintSelf(ostream& os, vtkIndent indent) override;
46
48
51 vtkSetClampMacro(InnerRadius, double, 0.0, VTK_DOUBLE_MAX);
52 vtkGetMacro(InnerRadius, double);
54
56
59 vtkSetClampMacro(OuterRadius, double, 0.0, VTK_DOUBLE_MAX);
60 vtkGetMacro(OuterRadius, double);
62
64
67 vtkSetClampMacro(RadialResolution, int, 1, VTK_INT_MAX);
68 vtkGetMacro(RadialResolution, int);
70
72
75 vtkSetClampMacro(CircumferentialResolution, int, 3, VTK_INT_MAX);
76 vtkGetMacro(CircumferentialResolution, int);
78
80
83 vtkSetVector3Macro(Center, double);
84 vtkGetVectorMacro(Center, double, 3);
86
88
91 vtkSetVector3Macro(Normal, double);
92 vtkGetVectorMacro(Normal, double, 3);
94
96
101 vtkSetMacro(OutputPointsPrecision, int);
102 vtkGetMacro(OutputPointsPrecision, int);
104
105protected:
107 ~vtkDiskSource() override = default;
108
113 double Center[3];
114 double Normal[3];
118
119private:
120 vtkDiskSource(const vtkDiskSource&) = delete;
121 void operator=(const vtkDiskSource&) = delete;
122};
123
124VTK_ABI_NAMESPACE_END
125#endif
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.
double Normal[3]
vtkSmartPointer< vtkTransform > GetTransformation()
int CircumferentialResolution
double Center[3]
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.
Hold a reference to a vtkObjectBase instance.
describes linear transformations via a 4x4 matrix
#define VTK_DOUBLE_MAX
Definition vtkType.h:207
#define VTK_INT_MAX
Definition vtkType.h:197
#define VTK_MARSHALAUTO