VTK  9.5.2
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
30VTK_ABI_NAMESPACE_BEGIN
31class vtkTransform;
32
33class VTKFILTERSSOURCES_EXPORT vtkDiskSource : public vtkPolyDataAlgorithm
34{
35public:
37
41 static vtkDiskSource* New();
43 void PrintSelf(ostream& os, vtkIndent indent) override;
45
47
50 vtkSetClampMacro(InnerRadius, double, 0.0, VTK_DOUBLE_MAX);
51 vtkGetMacro(InnerRadius, double);
53
55
58 vtkSetClampMacro(OuterRadius, double, 0.0, VTK_DOUBLE_MAX);
59 vtkGetMacro(OuterRadius, double);
61
63
66 vtkSetClampMacro(RadialResolution, int, 1, VTK_INT_MAX);
67 vtkGetMacro(RadialResolution, int);
69
71
74 vtkSetClampMacro(CircumferentialResolution, int, 3, VTK_INT_MAX);
75 vtkGetMacro(CircumferentialResolution, int);
77
79
82 vtkSetVector3Macro(Center, double);
83 vtkGetVectorMacro(Center, double, 3);
85
87
90 vtkSetVector3Macro(Normal, double);
91 vtkGetVectorMacro(Normal, double, 3);
93
95
100 vtkSetMacro(OutputPointsPrecision, int);
101 vtkGetMacro(OutputPointsPrecision, int);
103
104protected:
106 ~vtkDiskSource() override = default;
107
112 double Center[3];
113 double Normal[3];
117
118private:
119 vtkDiskSource(const vtkDiskSource&) = delete;
120 void operator=(const vtkDiskSource&) = delete;
121};
122
123VTK_ABI_NAMESPACE_END
124#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:171
#define VTK_INT_MAX
Definition vtkType.h:161