LuciadCPillar 2023.1.04
|
Interface for observing the Map. More...
#include <luciad/maps/Map.h>
Public Member Functions | |
virtual | ~IMapObserver ()=default |
virtual void | onMapChanged (const MapEvent &mapEvent)=0 |
This method is called whenever a property of the map has changed. More... | |
Static Public Member Functions | |
static std::shared_ptr< IMapObserver > | create (std::function< void(const MapEvent &)> function) |
Creates a default IMapObserver instance that delegates the IMapObserver::onMapChanged to the given function. More... | |
Interface for observing the Map.
|
virtualdefault |
|
static |
Creates a default IMapObserver instance that delegates the IMapObserver::onMapChanged 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 IMapObserver::onMapChanged |
|
pure virtual |
This method is called whenever a property of the map has changed.
mapEvent | the event describing the change. |