VTK  9.6.1
vtkTexturedSphereSource.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
16
17#ifndef vtkTexturedSphereSource_h
18#define vtkTexturedSphereSource_h
19
20#include "vtkFiltersSourcesModule.h" // For export macro
22#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
23
24VTK_ABI_NAMESPACE_BEGIN
25class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkTexturedSphereSource : public vtkPolyDataAlgorithm
26{
27public:
29 void PrintSelf(ostream& os, vtkIndent indent) override;
30
36
38
41 vtkSetClampMacro(Radius, double, 0.0, VTK_DOUBLE_MAX);
42 vtkGetMacro(Radius, double);
44
46
49 vtkSetClampMacro(ThetaResolution, int, 4, VTK_INT_MAX);
50 vtkGetMacro(ThetaResolution, int);
52
54
57 vtkSetClampMacro(PhiResolution, int, 4, VTK_INT_MAX);
58 vtkGetMacro(PhiResolution, int);
60
62
65 vtkSetClampMacro(Theta, double, 0.0, 360.0);
66 vtkGetMacro(Theta, double);
68
70
73 vtkSetClampMacro(Phi, double, 0.0, 180.0);
74 vtkGetMacro(Phi, double);
76
78
83 vtkSetMacro(OutputPointsPrecision, int);
84 vtkGetMacro(OutputPointsPrecision, int);
86
87protected:
89 ~vtkTexturedSphereSource() override = default;
90
92 double Radius;
93 double Theta;
94 double Phi;
98
99private:
101 void operator=(const vtkTexturedSphereSource&) = delete;
102};
103
104VTK_ABI_NAMESPACE_END
105#endif
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
static vtkTexturedSphereSource * New()
Construct sphere with radius=0.5 and default resolution 8 in both Phi and Theta directions.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTexturedSphereSource(int res=8)
~vtkTexturedSphereSource() override=default
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
#define VTK_DOUBLE_MAX
Definition vtkType.h:207
#define VTK_INT_MAX
Definition vtkType.h:197
#define VTK_MARSHALAUTO