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 =========================================================================*/
40 #ifndef vtkDecimatePolylineFilter_h
41 #define vtkDecimatePolylineFilter_h
42 
43 #include "vtkFiltersCoreModule.h" // For export macro
44 #include "vtkSmartPointer.h" // Needed for SP ivars
45 
46 #include "vtkPolyDataAlgorithm.h"
47 
48 class vtkPriorityQueue;
49 
50 
51 class VTKFILTERSCORE_EXPORT vtkDecimatePolylineFilter : public vtkPolyDataAlgorithm
52 {
53 public:
55 
59  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
61 
66 
68 
73  vtkSetClampMacro(TargetReduction,double,0.0,1.0);
74  vtkGetMacro(TargetReduction,double);
76 
78 
83  vtkSetMacro(OutputPointsPrecision,int);
84  vtkGetMacro(OutputPointsPrecision,int);
86 
87 protected:
89  ~vtkDecimatePolylineFilter() VTK_OVERRIDE;
90 
91  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
92 
93  class Polyline;
94  double ComputeError( vtkPolyData* input,
95  Polyline* polyline,
96  vtkIdType id );
97 
99  double TargetReduction;
100  int OutputPointsPrecision;
101 
102 private:
103  vtkDecimatePolylineFilter(const vtkDecimatePolylineFilter&) VTK_DELETE_FUNCTION;
104  void operator=(const vtkDecimatePolylineFilter&) VTK_DELETE_FUNCTION;
105 };
106 
107 #endif
108 
109 
Store vtkAlgorithm input/output information.
Hold a reference to a vtkObjectBase instance.
int vtkIdType
Definition: vtkType.h:287
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
reduce the number of lines in a polyline
a list of ids arranged in priority order
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.