This class provides utility methods for Observable instance for Ellipse.
More...
#include <luciad/geometries/observable/ObservableEllipseUtil.h>
This class provides utility methods for Observable instance for Ellipse.
- Since
- 2020.1
◆ ObservableEllipseUtil()
luciad::ObservableEllipseUtil::ObservableEllipseUtil |
( |
| ) |
|
|
delete |
◆ deriveCenter()
static std::shared_ptr< Observable< std::shared_ptr< Point > > > luciad::ObservableEllipseUtil::deriveCenter |
( |
const std::shared_ptr< Observable< std::shared_ptr< Ellipse > > > & |
observableEllipse | ) |
|
|
static |
Derives an Observable
Point
from the given observable ellipse that represents the center point.
This observable point will be updated when the given observable ellipse changes.
Notes:
- When the observable ellipse 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
-
observableEllipse | an observable ellipse from which to derive the center |
- Returns
- a derived Observable
◆ derivePointAtAngle()
static std::shared_ptr< Observable< std::shared_ptr< Point > > > luciad::ObservableEllipseUtil::derivePointAtAngle |
( |
const std::shared_ptr< Observable< std::shared_ptr< Ellipse > > > & |
observableEllipse, |
|
|
Angle |
angle |
|
) |
| |
|
static |
Derives an Observable
Point
from the given observable ellipse that represents the point at the given angle.
This observable point will be updated when the given observable ellipse changes.
Notes:
- When the observable ellipse contains a
nullptr
value, the observable point instance will contain a nullptr
value too.
Observable::setValue
will throw an exception for derived instances.
- Parameters
-
observableEllipse | an observable ellipse from which to derive the point |
angle | the 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