vtkTexturedSphereSource.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00039 #ifndef __vtkTexturedSphereSource_h
00040 #define __vtkTexturedSphereSource_h
00041
00042 #include "vtkPolyDataSource.h"
00043
00044 #define VTK_MAX_SPHERE_RESOLUTION 1024
00045
00046 class VTK_GRAPHICS_EXPORT vtkTexturedSphereSource : public vtkPolyDataSource
00047 {
00048 public:
00049 vtkTypeRevisionMacro(vtkTexturedSphereSource,vtkPolyDataSource);
00050 void PrintSelf(ostream& os, vtkIndent indent);
00051
00054 static vtkTexturedSphereSource *New();
00055
00057
00058 vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX);
00059 vtkGetMacro(Radius,double);
00061
00063
00064 vtkSetClampMacro(ThetaResolution,int,4,VTK_MAX_SPHERE_RESOLUTION);
00065 vtkGetMacro(ThetaResolution,int);
00067
00069
00070 vtkSetClampMacro(PhiResolution,int,4,VTK_MAX_SPHERE_RESOLUTION);
00071 vtkGetMacro(PhiResolution,int);
00073
00075
00076 vtkSetClampMacro(Theta,double,0.0,360.0);
00077 vtkGetMacro(Theta,double);
00079
00081
00082 vtkSetClampMacro(Phi,double,0.0,180.0);
00083 vtkGetMacro(Phi,double);
00085
00086 protected:
00087 vtkTexturedSphereSource(int res=8);
00088 ~vtkTexturedSphereSource() {};
00089
00090 void Execute();
00091 double Radius;
00092 double Theta;
00093 double Phi;
00094 int ThetaResolution;
00095 int PhiResolution;
00096
00097 private:
00098 vtkTexturedSphereSource(const vtkTexturedSphereSource&);
00099 void operator=(const vtkTexturedSphereSource&);
00100 };
00101
00102 #endif
00103
00104