VTK  9.3.1
vtkDecimatePolylineFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
35 #ifndef vtkDecimatePolylineFilter_h
36 #define vtkDecimatePolylineFilter_h
37 
38 #include "vtkFiltersCoreModule.h" // For export macro
39 #include "vtkSmartPointer.h" // Needed for SP ivars
40 
41 #include "vtkPolyDataAlgorithm.h"
42 
43 VTK_ABI_NAMESPACE_BEGIN
44 class vtkPriorityQueue;
45 
46 class VTKFILTERSCORE_EXPORT vtkDecimatePolylineFilter : public vtkPolyDataAlgorithm
47 {
48 public:
50 
54  void PrintSelf(ostream& os, vtkIndent indent) override;
56 
61 
63 
68  vtkSetClampMacro(TargetReduction, double, 0.0, 1.0);
69  vtkGetMacro(TargetReduction, double);
71 
73 
79  vtkSetClampMacro(MaximumError, double, 0.0, VTK_DOUBLE_MAX);
80  vtkGetMacro(MaximumError, double);
82 
84 
89  vtkSetMacro(OutputPointsPrecision, int);
90  vtkGetMacro(OutputPointsPrecision, int);
92 
93 protected:
95  ~vtkDecimatePolylineFilter() override;
96 
98 
99  class Polyline;
100  double ComputeError(vtkPolyData* input, Polyline* polyline, vtkIdType id);
101 
104  double MaximumError;
106 
107 private:
109  void operator=(const vtkDecimatePolylineFilter&) = delete;
110 };
111 
112 VTK_ABI_NAMESPACE_END
113 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:154
Store vtkAlgorithm input/output information.
vtkSmartPointer< vtkPriorityQueue > PriorityQueue
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
int vtkIdType
Definition: vtkType.h:315
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:28
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.