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
00042 #ifndef __vtkTexturedSphereSource_h
00043 #define __vtkTexturedSphereSource_h
00044
00045 #include "vtkPolyDataSource.h"
00046
00047 #define VTK_MAX_SPHERE_RESOLUTION 1024
00048
00049 class VTK_GRAPHICS_EXPORT vtkTexturedSphereSource : public vtkPolyDataSource
00050 {
00051 public:
00052 vtkTypeRevisionMacro(vtkTexturedSphereSource,vtkPolyDataSource);
00053 void PrintSelf(ostream& os, vtkIndent indent);
00054
00057 static vtkTexturedSphereSource *New();
00058
00060
00061 vtkSetClampMacro(Radius,float,0.0,VTK_LARGE_FLOAT);
00062 vtkGetMacro(Radius,float);
00064
00066
00067 vtkSetClampMacro(ThetaResolution,int,4,VTK_MAX_SPHERE_RESOLUTION);
00068 vtkGetMacro(ThetaResolution,int);
00070
00072
00073 vtkSetClampMacro(PhiResolution,int,4,VTK_MAX_SPHERE_RESOLUTION);
00074 vtkGetMacro(PhiResolution,int);
00076
00078
00079 vtkSetClampMacro(Theta,float,0.0,360.0);
00080 vtkGetMacro(Theta,float);
00082
00084
00085 vtkSetClampMacro(Phi,float,0.0,180.0);
00086 vtkGetMacro(Phi,float);
00088
00089 protected:
00090 vtkTexturedSphereSource(int res=8);
00091 ~vtkTexturedSphereSource() {};
00092
00093 void Execute();
00094 float Radius;
00095 float Theta;
00096 float Phi;
00097 int ThetaResolution;
00098 int PhiResolution;
00099
00100 private:
00101 vtkTexturedSphereSource(const vtkTexturedSphereSource&);
00102 void operator=(const vtkTexturedSphereSource&);
00103 };
00104
00105 #endif
00106
00107