VTK
9.4.20251007
Main Page
Related Pages
Topics
Namespaces
Classes
Files
File List
File Members
Filters
Core
vtkDecimatePolylineStrategy.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
19
20
#ifndef vtkDecimatePolylineStrategy_h
21
#define vtkDecimatePolylineStrategy_h
22
23
#include "vtkFiltersCoreModule.h"
// For export macro
24
#include "
vtkObject.h
"
25
26
VTK_ABI_NAMESPACE_BEGIN
27
28
class
vtkPointSet
;
29
30
class
VTKFILTERSCORE_EXPORT
vtkDecimatePolylineStrategy
:
public
vtkObject
31
{
32
public
:
33
vtkTypeMacro(
vtkDecimatePolylineStrategy
,
vtkObject
);
44
virtual
double
ComputeError
(
45
vtkPointSet
* dataset,
vtkIdType
originId,
vtkIdType
p1Id,
vtkIdType
p2Id) = 0;
46
55
virtual
bool
IsStateValid
(
vtkPointSet
* vtkNotUsed(dataset))
const
{
return
true
; }
56
57
protected
:
58
vtkDecimatePolylineStrategy
() =
default
;
59
~vtkDecimatePolylineStrategy
()
override
=
default
;
60
61
private
:
62
vtkDecimatePolylineStrategy
(
const
vtkDecimatePolylineStrategy
&) =
delete
;
63
void
operator=(
const
vtkDecimatePolylineStrategy
&) =
delete
;
64
};
65
VTK_ABI_NAMESPACE_END
66
67
#endif
vtkDecimatePolylineStrategy::IsStateValid
virtual bool IsStateValid(vtkPointSet *vtkNotUsed(dataset)) const
Returns whether this decimation strategy is in a valid state and ready to compute errors.
Definition
vtkDecimatePolylineStrategy.h:55
vtkDecimatePolylineStrategy::~vtkDecimatePolylineStrategy
~vtkDecimatePolylineStrategy() override=default
vtkDecimatePolylineStrategy::vtkDecimatePolylineStrategy
vtkDecimatePolylineStrategy()=default
vtkDecimatePolylineStrategy::ComputeError
virtual double ComputeError(vtkPointSet *dataset, vtkIdType originId, vtkIdType p1Id, vtkIdType p2Id)=0
Virtual method for computing the decimation error.
vtkObject::vtkObject
vtkObject()
vtkPointSet
concrete class for storing a set of points
Definition
vtkPointSet.h:59
vtkObject.h
vtkIdType
int vtkIdType
Definition
vtkType.h:315
Generated on
for VTK by
1.14.0