VTK
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=========================================================================*/
32#ifndef vtkTexturedSphereSource_h
33#define vtkTexturedSphereSource_h
34
35#include "vtkFiltersSourcesModule.h" // For export macro
37
38#define VTK_MAX_SPHERE_RESOLUTION 1024
39
40class VTKFILTERSSOURCES_EXPORT vtkTexturedSphereSource : public vtkPolyDataAlgorithm
41{
42public:
44 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
45
51
53
56 vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX);
57 vtkGetMacro(Radius,double);
59
61
64 vtkSetClampMacro(ThetaResolution,int,4,VTK_MAX_SPHERE_RESOLUTION);
65 vtkGetMacro(ThetaResolution,int);
67
69
72 vtkSetClampMacro(PhiResolution,int,4,VTK_MAX_SPHERE_RESOLUTION);
73 vtkGetMacro(PhiResolution,int);
75
77
80 vtkSetClampMacro(Theta,double,0.0,360.0);
81 vtkGetMacro(Theta,double);
83
85
88 vtkSetClampMacro(Phi,double,0.0,180.0);
89 vtkGetMacro(Phi,double);
91
93
98 vtkSetMacro(OutputPointsPrecision,int);
99 vtkGetMacro(OutputPointsPrecision,int);
101
102protected:
104 ~vtkTexturedSphereSource() VTK_OVERRIDE {}
105
107 double Radius;
108 double Theta;
109 double Phi;
113
114private:
115 vtkTexturedSphereSource(const vtkTexturedSphereSource&) VTK_DELETE_FUNCTION;
116 void operator=(const vtkTexturedSphereSource&) VTK_DELETE_FUNCTION;
117};
118
119#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
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)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
#define VTK_MAX_SPHERE_RESOLUTION
#define VTK_DOUBLE_MAX
Definition: vtkType.h:163