VTK  9.5.20251003
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
76#ifndef vtkTexturedSphereSource_h
77#define vtkTexturedSphereSource_h
78
79#include "vtkFiltersSourcesModule.h" // For export macro
81#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
82
83VTK_ABI_NAMESPACE_BEGIN
84class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkTexturedSphereSource : public vtkPolyDataAlgorithm
85{
86public:
88 void PrintSelf(ostream& os, vtkIndent indent) override;
89
95
97
100 vtkSetClampMacro(Radius, double, 0.0, VTK_DOUBLE_MAX);
101 vtkGetMacro(Radius, double);
103
105
108 vtkSetClampMacro(ThetaResolution, int, 4, VTK_INT_MAX);
109 vtkGetMacro(ThetaResolution, int);
111
113
116 vtkSetClampMacro(PhiResolution, int, 4, VTK_INT_MAX);
117 vtkGetMacro(PhiResolution, int);
119
121
124 vtkSetClampMacro(Theta, double, 0.0, 360.0);
125 vtkGetMacro(Theta, double);
127
129
132 vtkSetClampMacro(Phi, double, 0.0, 180.0);
133 vtkGetMacro(Phi, double);
135
137
142 vtkSetMacro(OutputPointsPrecision, int);
143 vtkGetMacro(OutputPointsPrecision, int);
145
146protected:
148 ~vtkTexturedSphereSource() override = default;
149
151 double Radius;
152 double Theta;
153 double Phi;
157
158private:
160 void operator=(const vtkTexturedSphereSource&) = delete;
161};
162
163VTK_ABI_NAMESPACE_END
164#endif
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 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:206
#define VTK_INT_MAX
Definition vtkType.h:196
#define VTK_MARSHALAUTO