VTK  9.3.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
17 #ifndef vtkTexturedSphereSource_h
18 #define vtkTexturedSphereSource_h
19 
20 #include "vtkFiltersSourcesModule.h" // For export macro
21 #include "vtkPolyDataAlgorithm.h"
22 
23 VTK_ABI_NAMESPACE_BEGIN
24 class VTKFILTERSSOURCES_EXPORT vtkTexturedSphereSource : public vtkPolyDataAlgorithm
25 {
26 public:
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
34  static vtkTexturedSphereSource* New();
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 
86 protected:
87  vtkTexturedSphereSource(int res = 8);
88  ~vtkTexturedSphereSource() override = default;
89 
91  double Radius;
92  double Theta;
93  double Phi;
97 
98 private:
100  void operator=(const vtkTexturedSphereSource&) = delete;
101 };
102 
103 VTK_ABI_NAMESPACE_END
104 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:154
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
#define VTK_INT_MAX
Definition: vtkType.h:144
create a sphere centered at the origin
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.