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

vtkTexturedSphereSource.h

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