LuciadCPillar 2023.1.04
luciad::ObservableCircleByCenterPointUtil Class Referencefinal

This class provides utility methods for Observable instance for CircleByCenterPoint. More...

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

Public Member Functions

 ObservableCircleByCenterPointUtil ()=delete
 

Static Public Member Functions

static std::shared_ptr< Observable< std::shared_ptr< Point > > > deriveCenter (const std::shared_ptr< Observable< std::shared_ptr< CircleByCenterPoint > > > &observableCircle)
 Derives an Observable Point from the given observable circle that represents the center point. More...
 
static std::shared_ptr< Observable< std::shared_ptr< Point > > > derivePointAtAngle (const std::shared_ptr< Observable< std::shared_ptr< CircleByCenterPoint > > > &observableCircle, Angle angle)
 Derives an Observable Point from the given observable circle that represents the point at the given angle. More...
 

Detailed Description

This class provides utility methods for Observable instance for CircleByCenterPoint.

Since
2020.1

Constructor & Destructor Documentation

◆ ObservableCircleByCenterPointUtil()

luciad::ObservableCircleByCenterPointUtil::ObservableCircleByCenterPointUtil ( )
delete

Member Function Documentation

◆ deriveCenter()

static std::shared_ptr< Observable< std::shared_ptr< Point > > > luciad::ObservableCircleByCenterPointUtil::deriveCenter ( const std::shared_ptr< Observable< std::shared_ptr< CircleByCenterPoint > > > &  observableCircle)
static

Derives an Observable Point from the given observable circle that represents the center point.

This observable point will be updated when the given observable circle changes.

Notes:

  • When the observable circle contains a nullptr value, the observable center point instance will contain a nullptr value too.
  • Observable::setValue will throw an exception for derived instances.
Parameters
observableCirclean observable circle from which to derive the center
Returns
a derived Observable

◆ derivePointAtAngle()

static std::shared_ptr< Observable< std::shared_ptr< Point > > > luciad::ObservableCircleByCenterPointUtil::derivePointAtAngle ( const std::shared_ptr< Observable< std::shared_ptr< CircleByCenterPoint > > > &  observableCircle,
Angle  angle 
)
static

Derives an Observable Point from the given observable circle that represents the point at the given angle.

This observable point will be updated when the given observable circle changes.

Notes:

  • When the observable circle contains a nullptr value, the observable point instance will contain a nullptr value too.
  • Observable::setValue will throw an exception for derived instances.
Parameters
observableCirclean observable circle from which to derive the point
anglethe angle at which to derive the point. For example: an angle of 0 will result in the point on the right of the major axis. An angle of 90 will result in the point a the top of the minor axis.
Returns
a derived Observable