Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class 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 =========================================================================*/
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&);  // Not implemented.
00102   void operator=(const vtkTexturedSphereSource&);  // Not implemented.
00103 };
00104 
00105 #endif
00106 
00107