VTK  9.4.20250102
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
39#ifndef vtkGoldenBallSource_h
40#define vtkGoldenBallSource_h
41
42#include "vtkFiltersSourcesModule.h" // For export macro
44
45VTK_ABI_NAMESPACE_BEGIN
46
47class VTKFILTERSSOURCES_EXPORT vtkGoldenBallSource : public vtkUnstructuredGridAlgorithm
48{
49public:
51 void PrintSelf(ostream& os, vtkIndent indent) override;
52
57
59
62 vtkSetClampMacro(Radius, double, 0.0, VTK_DOUBLE_MAX);
63 vtkGetMacro(Radius, double);
65
67
70 vtkSetVector3Macro(Center, double);
71 vtkGetVectorMacro(Center, double, 3);
73
75
79 vtkSetClampMacro(Resolution, int, 4, VTK_INT_MAX);
80 vtkGetMacro(Resolution, int);
82
84
88 vtkSetMacro(IncludeCenterPoint, int);
89 vtkGetMacro(IncludeCenterPoint, int);
90 vtkBooleanMacro(IncludeCenterPoint, int);
92
94
100 vtkSetMacro(GenerateNormals, int);
101 vtkGetMacro(GenerateNormals, int);
102 vtkBooleanMacro(GenerateNormals, int);
104
106
111 vtkSetMacro(OutputPointsPrecision, int);
112 vtkGetMacro(OutputPointsPrecision, int);
114
115protected:
117 ~vtkGoldenBallSource() override = default;
118
120
121 double Radius;
122 double Center[3];
127
128private:
130 void operator=(const vtkGoldenBallSource&) = delete;
131};
132
133VTK_ABI_NAMESPACE_END
134#endif
Create a faceted approximation to a ball (i.e., a solid sphere).
~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:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only unstructured grid as output.
#define VTK_DOUBLE_MAX
Definition vtkType.h:154
#define VTK_INT_MAX
Definition vtkType.h:144