VTK  9.4.20251007
vtkGoldenBallSource.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
19
20#ifndef vtkGoldenBallSource_h
21#define vtkGoldenBallSource_h
22
23#include "vtkFiltersSourcesModule.h" // For export macro
25
26VTK_ABI_NAMESPACE_BEGIN
27
28class VTKFILTERSSOURCES_EXPORT vtkGoldenBallSource : public vtkUnstructuredGridAlgorithm
29{
30public:
32 void PrintSelf(ostream& os, vtkIndent indent) override;
33
38
40
43 vtkSetClampMacro(Radius, double, 0.0, VTK_DOUBLE_MAX);
44 vtkGetMacro(Radius, double);
46
48
51 vtkSetVector3Macro(Center, double);
52 vtkGetVectorMacro(Center, double, 3);
54
56
60 vtkSetClampMacro(Resolution, int, 4, VTK_INT_MAX);
61 vtkGetMacro(Resolution, int);
63
65
69 vtkSetMacro(IncludeCenterPoint, int);
70 vtkGetMacro(IncludeCenterPoint, int);
71 vtkBooleanMacro(IncludeCenterPoint, int);
73
75
81 vtkSetMacro(GenerateNormals, int);
82 vtkGetMacro(GenerateNormals, int);
83 vtkBooleanMacro(GenerateNormals, int);
85
87
92 vtkSetMacro(OutputPointsPrecision, int);
93 vtkGetMacro(OutputPointsPrecision, int);
95
96protected:
98 ~vtkGoldenBallSource() override = default;
99
101
102 double Radius;
103 double Center[3];
108
109private:
111 void operator=(const vtkGoldenBallSource&) = delete;
112};
113
114VTK_ABI_NAMESPACE_END
115#endif
~vtkGoldenBallSource() override=default
static vtkGoldenBallSource * New()
Construct sphere with radius=0.5 and default resolution 20.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
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:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
#define VTK_DOUBLE_MAX
Definition vtkType.h:154
#define VTK_INT_MAX
Definition vtkType.h:144