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=========================================================================*/
85#ifndef vtkTexturedSphereSource_h
86#define vtkTexturedSphereSource_h
87
88#include "vtkFiltersSourcesModule.h" // For export macro
90
91class VTKFILTERSSOURCES_EXPORT vtkTexturedSphereSource : public vtkPolyDataAlgorithm
92{
93public:
95 void PrintSelf(ostream& os, vtkIndent indent) override;
96
102
104
107 vtkSetClampMacro(Radius, double, 0.0, VTK_DOUBLE_MAX);
108 vtkGetMacro(Radius, double);
110
112
115 vtkSetClampMacro(ThetaResolution, int, 4, VTK_INT_MAX);
116 vtkGetMacro(ThetaResolution, int);
118
120
123 vtkSetClampMacro(PhiResolution, int, 4, VTK_INT_MAX);
124 vtkGetMacro(PhiResolution, int);
126
128
131 vtkSetClampMacro(Theta, double, 0.0, 360.0);
132 vtkGetMacro(Theta, double);
134
136
139 vtkSetClampMacro(Phi, double, 0.0, 180.0);
140 vtkGetMacro(Phi, double);
142
144
149 vtkSetMacro(OutputPointsPrecision, int);
150 vtkGetMacro(OutputPointsPrecision, int);
152
153protected:
155 ~vtkTexturedSphereSource() override = default;
156
158 double Radius;
159 double Theta;
160 double Phi;
164
165private:
167 void operator=(const vtkTexturedSphereSource&) = delete;
168};
169
170#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
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
static vtkTexturedSphereSource * New()
Construct sphere with radius=0.5 and default resolution 8 in both Phi and Theta directions.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTexturedSphereSource(int res=8)
~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