VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkDiskSource.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 =========================================================================*/ 00029 #ifndef __vtkDiskSource_h 00030 #define __vtkDiskSource_h 00031 00032 #include "vtkFiltersSourcesModule.h" // For export macro 00033 #include "vtkPolyDataAlgorithm.h" 00034 00035 class VTKFILTERSSOURCES_EXPORT vtkDiskSource : public vtkPolyDataAlgorithm 00036 { 00037 public: 00038 static vtkDiskSource *New(); 00039 vtkTypeMacro(vtkDiskSource,vtkPolyDataAlgorithm); 00040 void PrintSelf(ostream& os, vtkIndent indent); 00041 00043 00044 vtkSetClampMacro(InnerRadius,double,0.0,VTK_DOUBLE_MAX) 00045 vtkGetMacro(InnerRadius,double); 00047 00049 00050 vtkSetClampMacro(OuterRadius,double,0.0,VTK_DOUBLE_MAX) 00051 vtkGetMacro(OuterRadius,double); 00053 00055 00056 vtkSetClampMacro(RadialResolution,int,1,VTK_INT_MAX) 00057 vtkGetMacro(RadialResolution,int); 00059 00061 00062 vtkSetClampMacro(CircumferentialResolution,int,3,VTK_INT_MAX) 00063 vtkGetMacro(CircumferentialResolution,int); 00065 00066 protected: 00067 vtkDiskSource(); 00068 ~vtkDiskSource() {}; 00069 00070 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00071 double InnerRadius; 00072 double OuterRadius; 00073 int RadialResolution; 00074 int CircumferentialResolution; 00075 00076 private: 00077 vtkDiskSource(const vtkDiskSource&); // Not implemented. 00078 void operator=(const vtkDiskSource&); // Not implemented. 00079 }; 00080 00081 #endif