VTK  9.4.20241217
vtkDecimatePolylineCustomFieldStrategy.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
23#ifndef vtkDecimatePolylineCustomFieldStrategy_h
24#define vtkDecimatePolylineCustomFieldStrategy_h
25
27#include "vtkFiltersCoreModule.h" // For export macro
28
29VTK_ABI_NAMESPACE_BEGIN
30
31class VTKFILTERSCORE_EXPORT vtkDecimatePolylineCustomFieldStrategy
33{
34public:
36 void PrintSelf(ostream& os, vtkIndent indent) override;
38
53 vtkPointSet* dataset, vtkIdType originId, vtkIdType p1Id, vtkIdType p2Id) override;
54
55 bool IsStateValid(vtkPointSet* dataset) const override;
56
58
63 vtkSetMacro(FieldName, std::string);
64 vtkGetMacro(FieldName, std::string);
66
67protected:
70
71private:
73 void operator=(const vtkDecimatePolylineCustomFieldStrategy&) = delete;
74
75 std::string FieldName;
76};
77
78VTK_ABI_NAMESPACE_END
79#endif
Decimation strategy using a custom point data array to retrieve the data to be used a a metric.
bool IsStateValid(vtkPointSet *dataset) const override
static vtkDecimatePolylineCustomFieldStrategy * New()
~vtkDecimatePolylineCustomFieldStrategy() override=default
double ComputeError(vtkPointSet *dataset, vtkIdType originId, vtkIdType p1Id, vtkIdType p2Id) override
Method for computing the decimation error.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract class to define a decimation strategy for the vtkDecimatePolylineFilter
a simple class to control print indentation
Definition vtkIndent.h:108
concrete class for storing a set of points
Definition vtkPointSet.h:98
int vtkIdType
Definition vtkType.h:315