LuciadCPillar 2023.1.04
luciad::ILayerListObserver Class Referenceabstract

Observer interface allowing to get notified about changes within the luciad::LayerList. More...

#include <luciad/layers/LayerList.h>

Public Member Functions

virtual ~ILayerListObserver ()=default
 
virtual void onLayerListChanged (const LayerListEvent &layerListEvent)=0
 This method is called whenever a change occurs in the luciad::LayerList. More...
 

Static Public Member Functions

static std::shared_ptr< ILayerListObservercreate (std::function< void(const LayerListEvent &)> function)
 Convenience method that can be used to construct a ILayerListObserver using a function (lambda). More...
 

Detailed Description

Observer interface allowing to get notified about changes within the luciad::LayerList.

Constructor & Destructor Documentation

◆ ~ILayerListObserver()

virtual luciad::ILayerListObserver::~ILayerListObserver ( )
virtualdefault

Member Function Documentation

◆ create()

static std::shared_ptr< ILayerListObserver > luciad::ILayerListObserver::create ( std::function< void(const LayerListEvent &)>  function)
static

Convenience method that can be used to construct a ILayerListObserver using a function (lambda).

Parameters
functionthe function that is used to implement the ILayerListObserver::onLayerListChanged method.
Returns
a new observer instance

◆ onLayerListChanged()

virtual void luciad::ILayerListObserver::onLayerListChanged ( const LayerListEvent layerListEvent)
pure virtual

This method is called whenever a change occurs in the luciad::LayerList.

Parameters
layerListEventthe event describing the change.