VTK  9.2.6
vtkTexturedSphereSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTexturedSphereSource.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
29 #ifndef vtkTexturedSphereSource_h
30 #define vtkTexturedSphereSource_h
31 
32 #include "vtkFiltersSourcesModule.h" // For export macro
33 #include "vtkPolyDataAlgorithm.h"
34 
35 class VTKFILTERSSOURCES_EXPORT vtkTexturedSphereSource : public vtkPolyDataAlgorithm
36 {
37 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
45  static vtkTexturedSphereSource* New();
46 
48 
51  vtkSetClampMacro(Radius, double, 0.0, VTK_DOUBLE_MAX);
52  vtkGetMacro(Radius, double);
54 
56 
59  vtkSetClampMacro(ThetaResolution, int, 4, VTK_INT_MAX);
60  vtkGetMacro(ThetaResolution, int);
62 
64 
67  vtkSetClampMacro(PhiResolution, int, 4, VTK_INT_MAX);
68  vtkGetMacro(PhiResolution, int);
70 
72 
75  vtkSetClampMacro(Theta, double, 0.0, 360.0);
76  vtkGetMacro(Theta, double);
78 
80 
83  vtkSetClampMacro(Phi, double, 0.0, 180.0);
84  vtkGetMacro(Phi, double);
86 
88 
93  vtkSetMacro(OutputPointsPrecision, int);
94  vtkGetMacro(OutputPointsPrecision, int);
96 
97 protected:
98  vtkTexturedSphereSource(int res = 8);
99  ~vtkTexturedSphereSource() override = default;
100 
102  double Radius;
103  double Theta;
104  double Phi;
108 
109 private:
111  void operator=(const vtkTexturedSphereSource&) = delete;
112 };
113 
114 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165
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:155
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:39
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.