VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 "vtkFiltersCoreModule.h" // For export macro
45 #include "vtkSmartPointer.h" // Needed for SP ivars
46 
47 #include "vtkPolyDataAlgorithm.h"
48 
49 class vtkPriorityQueue;
50 
51 
52 class VTKFILTERSCORE_EXPORT vtkDecimatePolylineFilter : public vtkPolyDataAlgorithm
53 {
54 public:
56 
58  void PrintSelf(ostream& os, vtkIndent indent);
60 
63 
65 
68  vtkSetClampMacro(TargetReduction,double,0.0,1.0);
69  vtkGetMacro(TargetReduction,double);
71 
72 protected:
75 
76  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
77 
78  double ComputeError( vtkPolyData* input, int prev, int id, int next );
79  void UpdateError( vtkPolyData* input, int iId );
80 
81  int GetPrev( int iId );
82  int GetNext( int iId );
83 
84  struct vtkDecimatePolylineVertexErrorSTLMap;
85  vtkDecimatePolylineVertexErrorSTLMap* ErrorMap;
86 
87  vtkSmartPointer< vtkPriorityQueue > PriorityQueue;
88  bool Closed;
90 
91 private:
92  vtkDecimatePolylineFilter(const vtkDecimatePolylineFilter&); // Not implemented.
93  void operator=(const vtkDecimatePolylineFilter&); // Not implemented.
94 };
95 
96 #endif
97 
98 
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:82
reduce the number of lines in a polyline
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
vtkSmartPointer< vtkPriorityQueue > PriorityQueue
vtkDecimatePolylineVertexErrorSTLMap * ErrorMap