LuciadCPillar 2023.1.04
luciad::ObservablePatchUtil Class Referencefinal

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

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

Public Member Functions

 ObservablePatchUtil ()=delete
 

Static Public Member Functions

static std::shared_ptr< Observable< std::shared_ptr< Geometry > > > deriveBaseGeometry (const std::shared_ptr< Observable< std::shared_ptr< Patch > > > &observablePatch)
 Derives an Observable from the given observable patch that represents the base of the patch. More...
 

Detailed Description

This class provides utility methods for Observable instance for Patch.

Since
2020.1

Constructor & Destructor Documentation

◆ ObservablePatchUtil()

luciad::ObservablePatchUtil::ObservablePatchUtil ( )
delete

Member Function Documentation

◆ 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
observablePatchan observable patch from which to derive the base geometry
Returns
a derived Observable