VTK  9.1.0
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 =========================================================================*/
26 #ifndef vtkTexturedSphereSource_h
27 #define vtkTexturedSphereSource_h
28 
29 #include "vtkFiltersSourcesModule.h" // For export macro
30 #include "vtkPolyDataAlgorithm.h"
31 
32 class VTKFILTERSSOURCES_EXPORT vtkTexturedSphereSource : public vtkPolyDataAlgorithm
33 {
34 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
43 
45 
48  vtkSetClampMacro(Radius, double, 0.0, VTK_DOUBLE_MAX);
49  vtkGetMacro(Radius, double);
51 
53 
56  vtkSetClampMacro(ThetaResolution, int, 4, VTK_INT_MAX);
57  vtkGetMacro(ThetaResolution, int);
59 
61 
64  vtkSetClampMacro(PhiResolution, int, 4, VTK_INT_MAX);
65  vtkGetMacro(PhiResolution, int);
67 
69 
72  vtkSetClampMacro(Theta, double, 0.0, 360.0);
73  vtkGetMacro(Theta, double);
75 
77 
80  vtkSetClampMacro(Phi, double, 0.0, 180.0);
81  vtkGetMacro(Phi, double);
83 
85 
90  vtkSetMacro(OutputPointsPrecision, int);
91  vtkGetMacro(OutputPointsPrecision, int);
93 
94 protected:
96  ~vtkTexturedSphereSource() override = default;
97 
99  double Radius;
100  double Theta;
101  double Phi;
105 
106 private:
108  void operator=(const vtkTexturedSphereSource&) = delete;
109 };
110 
111 #endif
a simple class to control print indentation
Definition: vtkIndent.h:34
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