This class provides utility methods for Observable instances of BezierCurve.
More...
#include <luciad/geometries/observable/ObservableBezierCurveUtil.h>
This class provides utility methods for Observable instances of BezierCurve.
- Since
- 2023.1.02
◆ ObservableBezierCurveUtil()
luciad::ObservableBezierCurveUtil::ObservableBezierCurveUtil |
( |
| ) |
|
|
delete |
◆ deriveControlPoint()
static std::shared_ptr< Observable< std::shared_ptr< Point > > > luciad::ObservableBezierCurveUtil::deriveControlPoint |
( |
const std::shared_ptr< Observable< std::shared_ptr< BezierCurve > > > & |
observableBezierCurve | ) |
|
|
static |
Derives an Observable
Point
from the given observable bezier curve that represents the control point.
This observable point will be updated when the given observable bezier curve changes.
Notes:
- When the observable bezier curve contains a
nullptr
value, the observable point instance will contain a nullptr
value too.
Observable::setValue
will throw an exception for derived instances.
- Parameters
-
observableBezierCurve | an observable bezier curve from which to derive the point |
- Returns
- a derived Observable
◆ deriveEndPoint()
static std::shared_ptr< Observable< std::shared_ptr< Point > > > luciad::ObservableBezierCurveUtil::deriveEndPoint |
( |
const std::shared_ptr< Observable< std::shared_ptr< BezierCurve > > > & |
observableBezierCurve | ) |
|
|
static |
Derives an Observable
Point
from the given observable bezier curve that represents the end point.
This observable point will be updated when the given observable bezier curve changes.
Notes:
- When the observable bezier curve contains a
nullptr
value, the observable point instance will contain a nullptr
value too.
Observable::setValue
will throw an exception for derived instances.
- Parameters
-
observableBezierCurve | an observable bezier curve from which to derive the point |
- Returns
- a derived Observable
◆ deriveStartPoint()
static std::shared_ptr< Observable< std::shared_ptr< Point > > > luciad::ObservableBezierCurveUtil::deriveStartPoint |
( |
const std::shared_ptr< Observable< std::shared_ptr< BezierCurve > > > & |
observableBezierCurve | ) |
|
|
static |
Derives an Observable
Point
from the given observable bezier curve that represents the start point.
This observable point will be updated when the given observable bezier curve changes.
Notes:
- When the observable bezier curve contains a
nullptr
value, the observable point instance will contain a nullptr
value too.
Observable::setValue
will throw an exception for derived instances.
- Parameters
-
observableBezierCurve | an observable bezier curve from which to derive the point |
- Returns
- a derived Observable