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 "vtkFiltersCoreModule.h" // For export macro
45 #include "vtkSmartPointer.h" // Needed for SP ivars
46 
47 #include "vtkPolyDataAlgorithm.h"
48 
49 class vtkPriorityQueue;
50 
51 
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 
73 
76  vtkSetMacro(OutputPointsPrecision,int);
77  vtkGetMacro(OutputPointsPrecision,int);
79 
80 protected:
83 
85 
86  double ComputeError( vtkPolyData* input, int prev, int id, int next );
87  void UpdateError( vtkPolyData* input, int iId );
88 
89  int GetPrev( int iId );
90  int GetNext( int iId );
91 
92  struct vtkDecimatePolylineVertexErrorSTLMap;
93  vtkDecimatePolylineVertexErrorSTLMap* ErrorMap;
94 
96  bool Closed;
99 
100 private:
101  vtkDecimatePolylineFilter(const vtkDecimatePolylineFilter&); // Not implemented.
102  void operator=(const vtkDecimatePolylineFilter&); // Not implemented.
103 };
104 
105 #endif
106 
107 
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKFILTERSCORE_EXPORT
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
reduce the number of lines in a polyline
a 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:38
vtkSmartPointer< vtkPriorityQueue > PriorityQueue
vtkDecimatePolylineVertexErrorSTLMap * ErrorMap
Store zero or more vtkInformation instances.