VTK
vtkDecimatePolylineFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDecimatePolylineFilter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
41 #ifndef __vtkDecimatePolylineFilter_h
42 #define __vtkDecimatePolylineFilter_h
43 
44 #include "vtkSmartPointer.h" // Needed for SP ivars
45 
46 #include "vtkPolyDataAlgorithm.h"
47 
48 class vtkPriorityQueue;
49 
50 
52 {
53 public:
55 
57  void PrintSelf(ostream& os, vtkIndent indent);
59 
62 
64 
67  vtkSetClampMacro(TargetReduction,double,0.0,1.0);
68  vtkGetMacro(TargetReduction,double);
70 
71 protected:
74 
76 
77  double ComputeError( vtkPolyData* input, int prev, int id, int next );
78  void UpdateError( vtkPolyData* input, int iId );
79 
80  int GetPrev( int iId );
81  int GetNext( int iId );
82 
83  struct vtkDecimatePolylineVertexErrorSTLMap;
84  vtkDecimatePolylineVertexErrorSTLMap* ErrorMap;
85 
87  bool Closed;
89 
90 private:
91  vtkDecimatePolylineFilter(const vtkDecimatePolylineFilter&); // Not implemented.
92  void operator=(const vtkDecimatePolylineFilter&); // Not implemented.
93 };
94 
95 #endif
96 
97