00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkShrinkFilter.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00055 #ifndef __vtkShrinkFilter_h 00056 #define __vtkShrinkFilter_h 00057 00058 #include "vtkDataSetToUnstructuredGridFilter.h" 00059 00060 class VTK_GRAPHICS_EXPORT vtkShrinkFilter : public vtkDataSetToUnstructuredGridFilter 00061 { 00062 public: 00063 static vtkShrinkFilter *New(); 00064 vtkTypeRevisionMacro(vtkShrinkFilter,vtkDataSetToUnstructuredGridFilter); 00065 void PrintSelf(ostream& os, vtkIndent indent); 00066 00068 00069 vtkSetClampMacro(ShrinkFactor,float,0.0,1.0); 00071 00073 00074 vtkGetMacro(ShrinkFactor,float); 00076 00077 protected: 00078 vtkShrinkFilter(float sf=0.5); 00079 ~vtkShrinkFilter() {}; 00080 00081 void Execute(); 00082 float ShrinkFactor; 00083 private: 00084 vtkShrinkFilter(const vtkShrinkFilter&); // Not implemented. 00085 void operator=(const vtkShrinkFilter&); // Not implemented. 00086 }; 00087 00088 #endif 00089 00090