VTK  9.3.0
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
42
43VTK_ABI_NAMESPACE_BEGIN
45
46class VTKFILTERSCORE_EXPORT vtkDecimatePolylineFilter : public vtkPolyDataAlgorithm
47{
48public:
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
93protected:
96
98
99 class Polyline;
100 double ComputeError(vtkPolyData* input, Polyline* polyline, vtkIdType id);
101
106
107private:
109 void operator=(const vtkDecimatePolylineFilter&) = delete;
110};
111
112VTK_ABI_NAMESPACE_END
113#endif
reduce the number of lines in a polyline
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkDecimatePolylineFilter() override
static vtkDecimatePolylineFilter * New()
Instantiate this object with a target reduction of 0.90.
double ComputeError(vtkPolyData *input, Polyline *polyline, vtkIdType id)
vtkSmartPointer< vtkPriorityQueue > PriorityQueue
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition vtkPolyData.h:80
a list of ids arranged in priority order
Hold a reference to a vtkObjectBase instance.
int vtkIdType
Definition vtkType.h:315
#define VTK_DOUBLE_MAX
Definition vtkType.h:154