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 =========================================================================*/
38 #ifndef vtkTexturedSphereSource_h
39 #define vtkTexturedSphereSource_h
40 
41 #include "vtkFiltersSourcesModule.h" // For export macro
42 #include "vtkPolyDataAlgorithm.h"
43 
44 class VTKFILTERSSOURCES_EXPORT vtkTexturedSphereSource : public vtkPolyDataAlgorithm
45 {
46 public:
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
55 
57 
60  vtkSetClampMacro(Radius, double, 0.0, VTK_DOUBLE_MAX);
61  vtkGetMacro(Radius, double);
63 
65 
68  vtkSetClampMacro(ThetaResolution, int, 4, VTK_INT_MAX);
69  vtkGetMacro(ThetaResolution, int);
71 
73 
76  vtkSetClampMacro(PhiResolution, int, 4, VTK_INT_MAX);
77  vtkGetMacro(PhiResolution, int);
79 
81 
84  vtkSetClampMacro(Theta, double, 0.0, 360.0);
85  vtkGetMacro(Theta, double);
87 
89 
92  vtkSetClampMacro(Phi, double, 0.0, 180.0);
93  vtkGetMacro(Phi, double);
95 
97 
102  vtkSetMacro(OutputPointsPrecision, int);
103  vtkGetMacro(OutputPointsPrecision, int);
105 
106 protected:
108  ~vtkTexturedSphereSource() override = default;
109 
111  double Radius;
112  double Theta;
113  double Phi;
117 
118 private:
120  void operator=(const vtkTexturedSphereSource&) = delete;
121 };
122 
123 #endif
a simple class to control print indentation
Definition: vtkIndent.h:49
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