VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkShrinkFilter.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 =========================================================================*/ 00038 #ifndef __vtkShrinkFilter_h 00039 #define __vtkShrinkFilter_h 00040 00041 #include "vtkFiltersGeneralModule.h" // For export macro 00042 #include "vtkUnstructuredGridAlgorithm.h" 00043 00044 class VTKFILTERSGENERAL_EXPORT vtkShrinkFilter : public vtkUnstructuredGridAlgorithm 00045 { 00046 public: 00047 static vtkShrinkFilter *New(); 00048 vtkTypeMacro(vtkShrinkFilter,vtkUnstructuredGridAlgorithm); 00049 void PrintSelf(ostream& os, vtkIndent indent); 00050 00052 00053 vtkSetClampMacro(ShrinkFactor, double, 0.0, 1.0); 00054 vtkGetMacro(ShrinkFactor, double); 00056 00057 protected: 00058 vtkShrinkFilter(); 00059 ~vtkShrinkFilter(); 00060 00061 // Override to specify support for any vtkDataSet input type. 00062 virtual int FillInputPortInformation(int port, vtkInformation* info); 00063 00064 // Main implementation. 00065 virtual int RequestData(vtkInformation*, 00066 vtkInformationVector**, 00067 vtkInformationVector*); 00068 00069 double ShrinkFactor; 00070 00071 private: 00072 vtkShrinkFilter(const vtkShrinkFilter&); // Not implemented. 00073 void operator=(const vtkShrinkFilter&); // Not implemented. 00074 }; 00075 00076 #endif