VTK  9.7.1
vtkDecimatePolylineDistanceStrategy.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
18 #ifndef vtkDecimatePolylineDistanceStrategy_h
19 #define vtkDecimatePolylineDistanceStrategy_h
20 
22 #include "vtkFiltersCoreModule.h" // For export macro
23 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
24 
25 VTK_ABI_NAMESPACE_BEGIN
26 
29 {
30 public:
32 
34 
46  double ComputeError(
47  vtkPointSet* dataset, vtkIdType originId, vtkIdType p1Id, vtkIdType p2Id) override;
48 
49 protected:
51  ~vtkDecimatePolylineDistanceStrategy() override = default;
52 
53 private:
55  void operator=(const vtkDecimatePolylineDistanceStrategy&) = delete;
56 };
57 
58 VTK_ABI_NAMESPACE_END
59 #endif
concrete class for storing a set of points
Definition: vtkPointSet.h:58
int vtkIdType
Definition: vtkType.h:363
decimation strategy using distance between points as a metric.
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.