VTK  9.7.1
vtkDecimatePolylineAngleStrategy.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
21 #ifndef vtkDecimatePolylineAngleStrategy_h
22 #define vtkDecimatePolylineAngleStrategy_h
23 
25 #include "vtkFiltersCoreModule.h" // For export macro
26 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
27 
28 VTK_ABI_NAMESPACE_BEGIN
29 
32 {
33 public:
35 
37 
49  double ComputeError(
50  vtkPointSet* dataset, vtkIdType originId, vtkIdType p1Id, vtkIdType p2Id) override;
51 
52 protected:
54  ~vtkDecimatePolylineAngleStrategy() override = default;
55 
56 private:
58  void operator=(const vtkDecimatePolylineAngleStrategy&) = delete;
59 };
60 
61 VTK_ABI_NAMESPACE_END
62 #endif
concrete class for storing a set of points
Definition: vtkPointSet.h:58
int vtkIdType
Definition: vtkType.h:363
abstract class to define a decimation strategy for the vtkDecimatePolylineFilter
#define VTK_MARSHALAUTO
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual double ComputeError(vtkPointSet *dataset, vtkIdType originId, vtkIdType p1Id, vtkIdType p2Id)=0
Virtual method for computing the decimation error.
Decimation strategy using the angle between 3 consecutive points as a metric.