VTK  9.7.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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
23 
24 VTK_ABI_NAMESPACE_BEGIN
25 class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkTexturedSphereSource : public vtkPolyDataAlgorithm
26 {
27 public:
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
35  static vtkTexturedSphereSource* New();
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 
87 protected:
88  vtkTexturedSphereSource(int res = 8);
89  ~vtkTexturedSphereSource() override = default;
90 
92  double Radius;
93  double Theta;
94  double Phi;
98 
99 private:
101  void operator=(const vtkTexturedSphereSource&) = delete;
102 };
103 
104 VTK_ABI_NAMESPACE_END
105 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:202
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:192
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.
#define VTK_MARSHALAUTO
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.