This class provides utility methods for Observable instance for Patch.
More...
#include <luciad/geometries/observable/ObservablePatchUtil.h>
This class provides utility methods for Observable instance for Patch.
- Since
- 2020.1
◆ ObservablePatchUtil()
luciad::ObservablePatchUtil::ObservablePatchUtil |
( |
| ) |
|
|
delete |
◆ deriveBaseGeometry()
static std::shared_ptr< Observable< std::shared_ptr< Geometry > > > luciad::ObservablePatchUtil::deriveBaseGeometry |
( |
const std::shared_ptr< Observable< std::shared_ptr< Patch > > > & |
observablePatch | ) |
|
|
static |
Derives an Observable
from the given observable patch that represents the base of the patch.
This observable geometry will be updated when the given observable patch changes.
Notes:
- When the observable patch contains a
nullptr
value, the observable ring instance will contain a nullptr
value too.
Observable::setValue
will throw an exception for derived instances.
- Parameters
-
observablePatch | an observable patch from which to derive the base geometry |
- Returns
- a derived Observable