VTK  9.3.0
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
17#ifndef vtkTexturedSphereSource_h
18#define vtkTexturedSphereSource_h
19
20#include "vtkFiltersSourcesModule.h" // For export macro
22
23VTK_ABI_NAMESPACE_BEGIN
24class VTKFILTERSSOURCES_EXPORT vtkTexturedSphereSource : public vtkPolyDataAlgorithm
25{
26public:
28 void PrintSelf(ostream& os, vtkIndent indent) override;
29
35
37
40 vtkSetClampMacro(Radius, double, 0.0, VTK_DOUBLE_MAX);
41 vtkGetMacro(Radius, double);
43
45
48 vtkSetClampMacro(ThetaResolution, int, 4, VTK_INT_MAX);
49 vtkGetMacro(ThetaResolution, int);
51
53
56 vtkSetClampMacro(PhiResolution, int, 4, VTK_INT_MAX);
57 vtkGetMacro(PhiResolution, int);
59
61
64 vtkSetClampMacro(Theta, double, 0.0, 360.0);
65 vtkGetMacro(Theta, double);
67
69
72 vtkSetClampMacro(Phi, double, 0.0, 180.0);
73 vtkGetMacro(Phi, double);
75
77
82 vtkSetMacro(OutputPointsPrecision, int);
83 vtkGetMacro(OutputPointsPrecision, int);
85
86protected:
88 ~vtkTexturedSphereSource() override = default;
89
91 double Radius;
92 double Theta;
93 double Phi;
97
98private:
100 void operator=(const vtkTexturedSphereSource&) = delete;
101};
102
103VTK_ABI_NAMESPACE_END
104#endif
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
create a sphere centered at the origin
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:154
#define VTK_INT_MAX
Definition vtkType.h:144