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 =========================================================================*/
37 #ifndef vtkDecimatePolylineFilter_h
38 #define vtkDecimatePolylineFilter_h
39 
40 #include "vtkFiltersCoreModule.h" // For export macro
41 #include "vtkSmartPointer.h" // Needed for SP ivars
42 
43 #include "vtkPolyDataAlgorithm.h"
44 
45 class vtkPriorityQueue;
46 
47 
48 class VTKFILTERSCORE_EXPORT vtkDecimatePolylineFilter : public vtkPolyDataAlgorithm
49 {
50 public:
52 
56  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
58 
63 
65 
70  vtkSetClampMacro(TargetReduction,double,0.0,1.0);
71  vtkGetMacro(TargetReduction,double);
73 
75 
80  vtkSetMacro(OutputPointsPrecision,int);
81  vtkGetMacro(OutputPointsPrecision,int);
83 
84 protected:
86  ~vtkDecimatePolylineFilter() VTK_OVERRIDE;
87 
88  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
89 
90  class Polyline;
91  double ComputeError( vtkPolyData* input,
92  Polyline* polyline,
93  vtkIdType id );
94 
96  double TargetReduction;
97  int OutputPointsPrecision;
98 
99 private:
100  vtkDecimatePolylineFilter(const vtkDecimatePolylineFilter&) VTK_DELETE_FUNCTION;
101  void operator=(const vtkDecimatePolylineFilter&) VTK_DELETE_FUNCTION;
102 };
103 
104 #endif
105 
106 
Store vtkAlgorithm input/output information.
Hold a reference to a vtkObjectBase instance.
int vtkIdType
Definition: vtkType.h:345
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
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:33
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.