A constraint on Polyline
editing.
More...
#include <luciad/geometries/constraints/IPolylineConstraint.h>
A constraint on Polyline
editing.
This can for example be configured on a PolylineHandlesProvider
.
- Since
- 2020.1
◆ ~IPolylineConstraint()
virtual luciad::IPolylineConstraint::~IPolylineConstraint |
( |
| ) |
|
|
virtualdefault |
◆ apply() [1/2]
virtual std::shared_ptr< Polyline > luciad::IPolylineConstraint::apply |
( |
const std::shared_ptr< Polyline > & |
oldPolyline, |
|
|
const std::shared_ptr< Polyline > & |
newPolyline, |
|
|
const PolylineChange & |
changes |
|
) |
| |
|
pure virtual |
Applies this constraint on a pending change.
- Parameters
-
oldPolyline | the base polyline on which the change is performed, cannot be nullptr . |
newPolyline | the result of the change, without any constraints applied, cannot be nullptr . |
changes | the change that was applied. |
- Returns
- the resulting polyline, after applying this constraint on the pending change. If the constraint does not apply, simply return the
newPolyline
. Cannot be nullptr
.
◆ apply() [2/2]
virtual std::shared_ptr< Polyline > luciad::IPolylineConstraint::apply |
( |
const std::shared_ptr< Polyline > & |
polyline | ) |
|
|
pure virtual |
Applies this constraint on a polyline without a (known) change.
- Parameters
-
polyline | the polyline to constrain, cannot be nullptr . |
- Returns
- the resulting polyline, after applying this constraint. If the constraint does not apply, simply return the
polyline
. Cannot be nullptr
.