VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkShrinkPolyData.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 =========================================================================*/ 00044 #ifndef vtkShrinkPolyData_h 00045 #define vtkShrinkPolyData_h 00046 00047 #include "vtkFiltersGeneralModule.h" // For export macro 00048 #include "vtkPolyDataAlgorithm.h" 00049 00050 class VTKFILTERSGENERAL_EXPORT vtkShrinkPolyData : public vtkPolyDataAlgorithm 00051 { 00052 public: 00053 static vtkShrinkPolyData *New(); 00054 vtkTypeMacro(vtkShrinkPolyData,vtkPolyDataAlgorithm); 00055 void PrintSelf(ostream& os, vtkIndent indent); 00056 00058 00059 vtkSetClampMacro(ShrinkFactor,double,0.0,1.0); 00061 00063 00064 vtkGetMacro(ShrinkFactor,double); 00066 00067 protected: 00068 vtkShrinkPolyData(double sf=0.5); 00069 ~vtkShrinkPolyData() {} 00070 00071 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00072 double ShrinkFactor; 00073 private: 00074 vtkShrinkPolyData(const vtkShrinkPolyData&); // Not implemented. 00075 void operator=(const vtkShrinkPolyData&); // Not implemented. 00076 }; 00077 00078 #endif