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 =========================================================================*/
88 #ifndef vtkTexturedSphereSource_h
89 #define vtkTexturedSphereSource_h
90 
91 #include "vtkFiltersSourcesModule.h" // For export macro
92 #include "vtkPolyDataAlgorithm.h"
93 
94 class VTKFILTERSSOURCES_EXPORT vtkTexturedSphereSource : public vtkPolyDataAlgorithm
95 {
96 public:
98  void PrintSelf(ostream& os, vtkIndent indent) override;
99 
105 
107 
110  vtkSetClampMacro(Radius, double, 0.0, VTK_DOUBLE_MAX);
111  vtkGetMacro(Radius, double);
113 
115 
118  vtkSetClampMacro(ThetaResolution, int, 4, VTK_INT_MAX);
119  vtkGetMacro(ThetaResolution, int);
121 
123 
126  vtkSetClampMacro(PhiResolution, int, 4, VTK_INT_MAX);
127  vtkGetMacro(PhiResolution, int);
129 
131 
134  vtkSetClampMacro(Theta, double, 0.0, 360.0);
135  vtkGetMacro(Theta, double);
137 
139 
142  vtkSetClampMacro(Phi, double, 0.0, 180.0);
143  vtkGetMacro(Phi, double);
145 
147 
152  vtkSetMacro(OutputPointsPrecision, int);
153  vtkGetMacro(OutputPointsPrecision, int);
155 
156 protected:
158  ~vtkTexturedSphereSource() override = default;
159 
161  double Radius;
162  double Theta;
163  double Phi;
167 
168 private:
170  void operator=(const vtkTexturedSphereSource&) = delete;
171 };
172 
173 #endif
a simple class to control print indentation
Definition: vtkIndent.h:119
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:165
#define VTK_INT_MAX
Definition: vtkType.h:155