LuciadCPillar 2023.1.04
luciad::ObservableBezierCurveUtil Class Referencefinal

This class provides utility methods for Observable instances of BezierCurve. More...

#include <luciad/geometries/observable/ObservableBezierCurveUtil.h>

Public Member Functions

 ObservableBezierCurveUtil ()=delete
 

Static Public Member Functions

static std::shared_ptr< Observable< std::shared_ptr< Point > > > deriveControlPoint (const std::shared_ptr< Observable< std::shared_ptr< BezierCurve > > > &observableBezierCurve)
 Derives an Observable Point from the given observable bezier curve that represents the control point. More...
 
static std::shared_ptr< Observable< std::shared_ptr< Point > > > deriveEndPoint (const std::shared_ptr< Observable< std::shared_ptr< BezierCurve > > > &observableBezierCurve)
 Derives an Observable Point from the given observable bezier curve that represents the end point. More...
 
static std::shared_ptr< Observable< std::shared_ptr< Point > > > deriveStartPoint (const std::shared_ptr< Observable< std::shared_ptr< BezierCurve > > > &observableBezierCurve)
 Derives an Observable Point from the given observable bezier curve that represents the start point. More...
 

Detailed Description

This class provides utility methods for Observable instances of BezierCurve.

Since
2023.1.02

Constructor & Destructor Documentation

◆ ObservableBezierCurveUtil()

luciad::ObservableBezierCurveUtil::ObservableBezierCurveUtil ( )
delete

Member Function Documentation

◆ 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
observableBezierCurvean 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
observableBezierCurvean 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
observableBezierCurvean observable bezier curve from which to derive the point
Returns
a derived Observable