Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Graphics/vtkShrinkFilter.h

Go to the documentation of this file.
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 =========================================================================*/ 00042 #ifndef __vtkShrinkFilter_h 00043 #define __vtkShrinkFilter_h 00044 00045 #include "vtkDataSetToUnstructuredGridFilter.h" 00046 00047 class VTK_GRAPHICS_EXPORT vtkShrinkFilter : public vtkDataSetToUnstructuredGridFilter 00048 { 00049 public: 00050 static vtkShrinkFilter *New(); 00051 vtkTypeRevisionMacro(vtkShrinkFilter,vtkDataSetToUnstructuredGridFilter); 00052 void PrintSelf(ostream& os, vtkIndent indent); 00053 00055 00056 vtkSetClampMacro(ShrinkFactor,float,0.0,1.0); 00058 00060 00061 vtkGetMacro(ShrinkFactor,float); 00063 00064 protected: 00065 vtkShrinkFilter(float sf=0.5); 00066 ~vtkShrinkFilter() {}; 00067 00068 void Execute(); 00069 float ShrinkFactor; 00070 private: 00071 vtkShrinkFilter(const vtkShrinkFilter&); // Not implemented. 00072 void operator=(const vtkShrinkFilter&); // Not implemented. 00073 }; 00074 00075 #endif 00076 00077