VTK  9.6.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
19
20#ifndef vtkGoldenBallSource_h
21#define vtkGoldenBallSource_h
22
23#include "vtkFiltersSourcesModule.h" // For export macro
25#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
26
27VTK_ABI_NAMESPACE_BEGIN
28
29class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkGoldenBallSource
31{
32public:
34 void PrintSelf(ostream& os, vtkIndent indent) override;
35
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
98protected:
100 ~vtkGoldenBallSource() override = default;
101
103
104 double Radius;
105 double Center[3];
110
111private:
113 void operator=(const vtkGoldenBallSource&) = delete;
114};
115
116VTK_ABI_NAMESPACE_END
117#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:207
#define VTK_INT_MAX
Definition vtkType.h:197
#define VTK_MARSHALAUTO