VTK  9.3.20240419
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
80 #include "vtkPolyDataAlgorithm.h"
81 
82 VTK_ABI_NAMESPACE_BEGIN
83 class VTKFILTERSSOURCES_EXPORT vtkTexturedSphereSource : public vtkPolyDataAlgorithm
84 {
85 public:
87  void PrintSelf(ostream& os, vtkIndent indent) override;
88 
94 
96 
99  vtkSetClampMacro(Radius, double, 0.0, VTK_DOUBLE_MAX);
100  vtkGetMacro(Radius, double);
102 
104 
107  vtkSetClampMacro(ThetaResolution, int, 4, VTK_INT_MAX);
108  vtkGetMacro(ThetaResolution, int);
110 
112 
115  vtkSetClampMacro(PhiResolution, int, 4, VTK_INT_MAX);
116  vtkGetMacro(PhiResolution, int);
118 
120 
123  vtkSetClampMacro(Theta, double, 0.0, 360.0);
124  vtkGetMacro(Theta, double);
126 
128 
131  vtkSetClampMacro(Phi, double, 0.0, 180.0);
132  vtkGetMacro(Phi, double);
134 
136 
141  vtkSetMacro(OutputPointsPrecision, int);
142  vtkGetMacro(OutputPointsPrecision, int);
144 
145 protected:
147  ~vtkTexturedSphereSource() override = default;
148 
150  double Radius;
151  double Theta;
152  double Phi;
156 
157 private:
159  void operator=(const vtkTexturedSphereSource&) = delete;
160 };
161 
162 VTK_ABI_NAMESPACE_END
163 #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
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTexturedSphereSource(int res=8)
static vtkTexturedSphereSource * New()
Construct sphere with radius=0.5 and default resolution 8 in both Phi and Theta directions.
~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