Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages
Graphics/vtkTexturedSphereSource.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00043 #ifndef __vtkTexturedSphereSource_h
00044 #define __vtkTexturedSphereSource_h
00045
00046 #include "vtkPolyDataSource.h"
00047
00048 #define VTK_MAX_SPHERE_RESOLUTION 1024
00049
00050 class VTK_GRAPHICS_EXPORT vtkTexturedSphereSource : public vtkPolyDataSource
00051 {
00052 public:
00053 vtkTypeRevisionMacro(vtkTexturedSphereSource,vtkPolyDataSource);
00054 void PrintSelf(ostream& os, vtkIndent indent);
00055
00058 static vtkTexturedSphereSource *New();
00059
00061
00062 vtkSetClampMacro(Radius,float,0.0,VTK_LARGE_FLOAT);
00063 vtkGetMacro(Radius,float);
00065
00067
00068 vtkSetClampMacro(ThetaResolution,int,4,VTK_MAX_SPHERE_RESOLUTION);
00069 vtkGetMacro(ThetaResolution,int);
00071
00073
00074 vtkSetClampMacro(PhiResolution,int,4,VTK_MAX_SPHERE_RESOLUTION);
00075 vtkGetMacro(PhiResolution,int);
00077
00079
00080 vtkSetClampMacro(Theta,float,0.0,360.0);
00081 vtkGetMacro(Theta,float);
00083
00085
00086 vtkSetClampMacro(Phi,float,0.0,180.0);
00087 vtkGetMacro(Phi,float);
00089
00090 protected:
00091 vtkTexturedSphereSource(int res=8);
00092 ~vtkTexturedSphereSource() {};
00093
00094 void Execute();
00095 float Radius;
00096 float Theta;
00097 float Phi;
00098 int ThetaResolution;
00099 int PhiResolution;
00100
00101 private:
00102 vtkTexturedSphereSource(const vtkTexturedSphereSource&);
00103 void operator=(const vtkTexturedSphereSource&);
00104 };
00105
00106 #endif
00107
00108