00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkDecimatePolylineFilter.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 __vtkDecimatePolylineFilter_h 00039 #define __vtkDecimatePolylineFilter_h 00040 00041 #include "vtkPolyDataAlgorithm.h" 00042 00043 class vtkPriorityQueue; 00044 00045 class VTK_GRAPHICS_EXPORT vtkDecimatePolylineFilter : public vtkPolyDataAlgorithm 00046 { 00047 public: 00049 00050 vtkTypeMacro(vtkDecimatePolylineFilter,vtkPolyDataAlgorithm); 00051 void PrintSelf(ostream& os, vtkIndent indent); 00053 00055 static vtkDecimatePolylineFilter *New(); 00056 00058 00061 vtkSetClampMacro(TargetReduction,double,0.0,1.0); 00062 vtkGetMacro(TargetReduction,double); 00064 00065 protected: 00066 vtkDecimatePolylineFilter(); 00067 ~vtkDecimatePolylineFilter(); 00068 00069 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00070 00071 double TargetReduction; 00072 00073 private: 00074 vtkDecimatePolylineFilter(const vtkDecimatePolylineFilter&); // Not implemented. 00075 void operator=(const vtkDecimatePolylineFilter&); // Not implemented. 00076 }; 00077 00078 #endif 00079 00080