VTK
dox/Filters/Sources/vtkTexturedSphereSource.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkTexturedSphereSource.h
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 =========================================================================*/
00031 #ifndef __vtkTexturedSphereSource_h
00032 #define __vtkTexturedSphereSource_h
00033 
00034 #include "vtkFiltersSourcesModule.h" // For export macro
00035 #include "vtkPolyDataAlgorithm.h"
00036 
00037 #define VTK_MAX_SPHERE_RESOLUTION 1024
00038 
00039 class VTKFILTERSSOURCES_EXPORT vtkTexturedSphereSource : public vtkPolyDataAlgorithm
00040 {
00041 public:
00042   vtkTypeMacro(vtkTexturedSphereSource,vtkPolyDataAlgorithm);
00043   void PrintSelf(ostream& os, vtkIndent indent);
00044 
00047   static vtkTexturedSphereSource *New();
00048 
00050 
00051   vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX);
00052   vtkGetMacro(Radius,double);
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,double,0.0,360.0);
00070   vtkGetMacro(Theta,double);
00072 
00074 
00075   vtkSetClampMacro(Phi,double,0.0,180.0);
00076   vtkGetMacro(Phi,double);
00078 
00080 
00084   vtkSetMacro(OutputPointsPrecision,int);
00085   vtkGetMacro(OutputPointsPrecision,int);
00087 
00088 protected:
00089   vtkTexturedSphereSource(int res=8);
00090   ~vtkTexturedSphereSource() {}
00091 
00092   int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00093   double Radius;
00094   double Theta;
00095   double Phi;
00096   int ThetaResolution;
00097   int PhiResolution;
00098   int OutputPointsPrecision;
00099 
00100 private:
00101   vtkTexturedSphereSource(const vtkTexturedSphereSource&);  // Not implemented.
00102   void operator=(const vtkTexturedSphereSource&);  // Not implemented.
00103 };
00104 
00105 #endif