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
26 #ifndef vtkTexturedSphereSource_h
27 #define vtkTexturedSphereSource_h
28 
29 #include "vtkFiltersSourcesModule.h" // For export macro
30 #include "vtkPolyDataAlgorithm.h"
31 
32 VTK_ABI_NAMESPACE_BEGIN
33 class VTKFILTERSSOURCES_EXPORT vtkTexturedSphereSource : public vtkPolyDataAlgorithm
34 {
35 public:
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
44 
46 
49  vtkSetClampMacro(Radius, double, 0.0, VTK_DOUBLE_MAX);
50  vtkGetMacro(Radius, double);
52 
54 
57  vtkSetClampMacro(ThetaResolution, int, 4, VTK_INT_MAX);
58  vtkGetMacro(ThetaResolution, int);
60 
62 
65  vtkSetClampMacro(PhiResolution, int, 4, VTK_INT_MAX);
66  vtkGetMacro(PhiResolution, int);
68 
70 
73  vtkSetClampMacro(Theta, double, 0.0, 360.0);
74  vtkGetMacro(Theta, double);
76 
78 
81  vtkSetClampMacro(Phi, double, 0.0, 180.0);
82  vtkGetMacro(Phi, double);
84 
86 
91  vtkSetMacro(OutputPointsPrecision, int);
92  vtkGetMacro(OutputPointsPrecision, int);
94 
95 protected:
97  ~vtkTexturedSphereSource() override = default;
98 
100  double Radius;
101  double Theta;
102  double Phi;
106 
107 private:
109  void operator=(const vtkTexturedSphereSource&) = delete;
110 };
111 
112 VTK_ABI_NAMESPACE_END
113 #endif
a simple class to control print indentation
Definition: vtkIndent.h:38
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