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 00067 00071 vtkSetMacro(OutputPointsPrecision,int); 00072 vtkGetMacro(OutputPointsPrecision,int); 00074 00075 protected: 00076 vtkDiskSource(); 00077 ~vtkDiskSource() {} 00078 00079 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00080 double InnerRadius; 00081 double OuterRadius; 00082 int RadialResolution; 00083 int CircumferentialResolution; 00084 int OutputPointsPrecision; 00085 00086 private: 00087 vtkDiskSource(const vtkDiskSource&); // Not implemented. 00088 void operator=(const vtkDiskSource&); // Not implemented. 00089 }; 00090 00091 #endif