Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Graphics/vtkTexturedSphereSource.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkTexturedSphereSource.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 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&); // Not implemented. 00092 void operator=(const vtkTexturedSphereSource&); // Not implemented. 00093 }; 00094 00095 #endif 00096 00097