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   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 =========================================================================*/
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&);  // Not implemented.
00103   void operator=(const vtkTexturedSphereSource&);  // Not implemented.
00104 };
00105 
00106 #endif
00107 
00108