LuciadCPillar 2024.0.08
|
This interface provides methods to retrieve the attributions for a given multilevel tiled raster layer. More...
#include <luciad/models/rasters/IMultilevelTiledAttributionProvider.h>
Public Member Functions | |
virtual | ~IMultilevelTiledAttributionProvider ()=default |
virtual DataAttribution | getAttribution (std::vector< MultilevelTileInfo > tiles, const CancellationToken &cancellationToken)=0 |
Get the current attribution. More... | |
Static Public Member Functions | |
static std::shared_ptr< IMultilevelTiledAttributionProvider > | create (std::function< DataAttribution(std::vector< MultilevelTileInfo > tiles, const CancellationToken &cancellationToken)> getAttributionFunction) |
Creates a IMultilevelTiledAttributionProvider instance that delegates events to the given function. More... | |
This interface provides methods to retrieve the attributions for a given multilevel tiled raster layer.
|
virtualdefault |
|
static |
Creates a IMultilevelTiledAttributionProvider instance that delegates events to the given function.
This is a convenience method that allows you to reduce boiler plate code, and use a lambda.
getAttributionFunction | the function that is called by IMultilevelTiledAttributionProvider::getAttribution. |
NullArgumentException | when the function is nullptr . |
|
pure virtual |
Get the current attribution.
If the given cancellation token is cancelled, the returned attribution will be ignored. For slow implementations, it is recommended to poll the cancellationToken and return as soon as possible if it is cancelled. For convenience, you may use DataAttribution::empty
to return an empty attribution.
This method must be thread-safe, as it can be called from any thread.
tiles | the tiles that are currently drawn. |
cancellationToken | a cancellation token. |