Thanks to visit codestin.com
Credit goes to vtk.org

VTK  9.5.20250922
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
45
46VTK_ABI_NAMESPACE_BEGIN
47
48class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkGoldenBallSource
50{
51public:
53 void PrintSelf(ostream& os, vtkIndent indent) override;
54
59
61
64 vtkSetClampMacro(Radius, double, 0.0, VTK_DOUBLE_MAX);
65 vtkGetMacro(Radius, double);
67
69
72 vtkSetVector3Macro(Center, double);
73 vtkGetVectorMacro(Center, double, 3);
75
77
81 vtkSetClampMacro(Resolution, int, 4, VTK_INT_MAX);
82 vtkGetMacro(Resolution, int);
84
86
90 vtkSetMacro(IncludeCenterPoint, int);
91 vtkGetMacro(IncludeCenterPoint, int);
92 vtkBooleanMacro(IncludeCenterPoint, int);
94
96
102 vtkSetMacro(GenerateNormals, int);
103 vtkGetMacro(GenerateNormals, int);
104 vtkBooleanMacro(GenerateNormals, int);
106
108
113 vtkSetMacro(OutputPointsPrecision, int);
114 vtkGetMacro(OutputPointsPrecision, int);
116
117protected:
119 ~vtkGoldenBallSource() override = default;
120
122
123 double Radius;
124 double Center[3];
129
130private:
132 void operator=(const vtkGoldenBallSource&) = delete;
133};
134
135VTK_ABI_NAMESPACE_END
136#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:172
#define VTK_INT_MAX
Definition vtkType.h:162
#define VTK_MARSHALAUTO