dox/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
00032 #ifndef __vtkTexturedSphereSource_h
00033 #define __vtkTexturedSphereSource_h
00034
00035 #include "vtkPolyDataSource.h"
00036
00037 #define VTK_MAX_SPHERE_RESOLUTION 1024
00038
00039 class VTK_GRAPHICS_EXPORT vtkTexturedSphereSource : public vtkPolyDataSource
00040 {
00041 public:
00042 vtkTypeRevisionMacro(vtkTexturedSphereSource,vtkPolyDataSource);
00043 void PrintSelf(ostream& os, vtkIndent indent);
00044
00047 static vtkTexturedSphereSource *New();
00048
00050
00051 vtkSetClampMacro(Radius,float,0.0,VTK_LARGE_FLOAT);
00052 vtkGetMacro(Radius,float);
00054
00056
00057 vtkSetClampMacro(ThetaResolution,int,4,VTK_MAX_SPHERE_RESOLUTION);
00058 vtkGetMacro(ThetaResolution,int);
00060
00062
00063 vtkSetClampMacro(PhiResolution,int,4,VTK_MAX_SPHERE_RESOLUTION);
00064 vtkGetMacro(PhiResolution,int);
00066
00068
00069 vtkSetClampMacro(Theta,float,0.0,360.0);
00070 vtkGetMacro(Theta,float);
00072
00074
00075 vtkSetClampMacro(Phi,float,0.0,180.0);
00076 vtkGetMacro(Phi,float);
00078
00079 protected:
00080 vtkTexturedSphereSource(int res=8);
00081 ~vtkTexturedSphereSource() {};
00082
00083 void Execute();
00084 float Radius;
00085 float Theta;
00086 float Phi;
00087 int ThetaResolution;
00088 int PhiResolution;
00089
00090 private:
00091 vtkTexturedSphereSource(const vtkTexturedSphereSource&);
00092 void operator=(const vtkTexturedSphereSource&);
00093 };
00094
00095 #endif
00096
00097