00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkShrinkPolyData.h,v $ 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 =========================================================================*/ 00041 #ifndef __vtkShrinkPolyData_h 00042 #define __vtkShrinkPolyData_h 00043 00044 #include "vtkPolyDataAlgorithm.h" 00045 00046 class VTK_GRAPHICS_EXPORT vtkShrinkPolyData : public vtkPolyDataAlgorithm 00047 { 00048 public: 00049 static vtkShrinkPolyData *New(); 00050 vtkTypeRevisionMacro(vtkShrinkPolyData,vtkPolyDataAlgorithm); 00051 void PrintSelf(ostream& os, vtkIndent indent); 00052 00054 00055 vtkSetClampMacro(ShrinkFactor,double,0.0,1.0); 00057 00059 00060 vtkGetMacro(ShrinkFactor,double); 00062 00063 protected: 00064 vtkShrinkPolyData(double sf=0.5); 00065 ~vtkShrinkPolyData() {}; 00066 00067 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00068 double ShrinkFactor; 00069 private: 00070 vtkShrinkPolyData(const vtkShrinkPolyData&); // Not implemented. 00071 void operator=(const vtkShrinkPolyData&); // Not implemented. 00072 }; 00073 00074 #endif