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