VTK
|
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 00079 protected: 00080 vtkTexturedSphereSource(int res=8); 00081 ~vtkTexturedSphereSource() {}; 00082 00083 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00084 double Radius; 00085 double Theta; 00086 double 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