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 
#define VTK_GRAPHICS_EXPORT
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:81
reduce the number of lines in a polyline
an list of ids arranged in priority order
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:37
vtkSmartPointer< vtkPriorityQueue > PriorityQueue
vtkDecimatePolylineVertexErrorSTLMap * ErrorMap
Store zero or more vtkInformation instances.