VTK  9.7.1
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
20 #ifndef vtkGoldenBallSource_h
21 #define vtkGoldenBallSource_h
22 
23 #include "vtkFiltersSourcesModule.h" // For export macro
25 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
26 
27 VTK_ABI_NAMESPACE_BEGIN
28 
29 class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkGoldenBallSource
31 {
32 public:
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
39  static vtkGoldenBallSource* New();
40 
42 
45  vtkSetClampMacro(Radius, double, 0.0, VTK_DOUBLE_MAX);
46  vtkGetMacro(Radius, double);
48 
50 
53  vtkSetVector3Macro(Center, double);
54  vtkGetVectorMacro(Center, double, 3);
56 
58 
62  vtkSetClampMacro(Resolution, int, 4, VTK_INT_MAX);
63  vtkGetMacro(Resolution, int);
65 
67 
71  vtkSetMacro(IncludeCenterPoint, int);
72  vtkGetMacro(IncludeCenterPoint, int);
73  vtkBooleanMacro(IncludeCenterPoint, int);
75 
77 
83  vtkSetMacro(GenerateNormals, int);
84  vtkGetMacro(GenerateNormals, int);
85  vtkBooleanMacro(GenerateNormals, int);
87 
89 
94  vtkSetMacro(OutputPointsPrecision, int);
95  vtkGetMacro(OutputPointsPrecision, int);
97 
98 protected:
100  ~vtkGoldenBallSource() override = default;
101 
103 
104  double Radius;
105  double Center[3];
110 
111 private:
112  vtkGoldenBallSource(const vtkGoldenBallSource&) = delete;
113  void operator=(const vtkGoldenBallSource&) = delete;
114 };
115 
116 VTK_ABI_NAMESPACE_END
117 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Create a faceted approximation to a ball (i.e., a solid sphere).
#define VTK_DOUBLE_MAX
Definition: vtkType.h:202
Store vtkAlgorithm input/output information.
#define VTK_INT_MAX
Definition: vtkType.h:192
static vtkUnstructuredGridAlgorithm * New()
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:28
Superclass for algorithms that produce only unstructured grid as output.
Store zero or more vtkInformation instances.
#define VTK_MARSHALAUTO