LuciadCPillar 2023.1.04
|
Interface for observing layers. More...
#include <luciad/layers/Layer.h>
Public Member Functions | |
virtual | ~ILayerObserver ()=default |
virtual void | onLayerChanged (const LayerEvent &layerEvent)=0 |
This method is called whenever a property of the layer has changed. More... | |
Static Public Member Functions | |
static std::shared_ptr< ILayerObserver > | create (std::function< void(const LayerEvent &)> function) |
Creates a default ILayerObserver instance that delegates the ILayerObserver::onLayerChanged to the given function. More... | |
Interface for observing layers.
|
virtualdefault |
|
static |
Creates a default ILayerObserver instance that delegates the ILayerObserver::onLayerChanged to the given function.
This is a convenience method that allows to reduce boiler plate code using lambdas.
function | the function that is called by ILayerObserver::onLayerChanged |
|
pure virtual |
This method is called whenever a property of the layer has changed.
layerEvent | the event describing the change. |