LuciadCPillar 2023.1.04
|
This IFeatureEditCandidateProvider uses enabled FeatureStates to determine editing candidates. More...
#include <luciad/edit/features/FeatureStateEditCandidateProvider.h>
Public Member Functions | |
FeatureStateEditCandidateProvider (const std::shared_ptr< Map > &map, FeatureState featureState) | |
Creates a new FeatureStateEditCandidateProvider for the given map, using the given FeatureState. More... | |
~FeatureStateEditCandidateProvider () override | |
void | addObserver (std::shared_ptr< IFeatureEditCandidateObserver > observer) override |
Adds an observer that allows you to receive change events from this edit candidate provider. More... | |
std::vector< LayerFeatureId > | getEditCandidates () override |
void | removeObserver (const std::shared_ptr< IFeatureEditCandidateObserver > &observer) override |
Removes the given observer. More... | |
Public Member Functions inherited from luciad::IFeatureEditCandidateProvider | |
virtual | ~IFeatureEditCandidateProvider ()=default |
virtual void | addObserver (std::shared_ptr< IFeatureEditCandidateObserver > observer)=0 |
Adds an observer that allows you to receive change events from this edit candidate provider. More... | |
virtual std::vector< LayerFeatureId > | getEditCandidates ()=0 |
virtual void | removeObserver (const std::shared_ptr< IFeatureEditCandidateObserver > &observer)=0 |
Removes the given observer. More... | |
This IFeatureEditCandidateProvider uses enabled FeatureStates to determine editing candidates.
It can for example provide:
|
explicit |
Creates a new FeatureStateEditCandidateProvider for the given map, using the given FeatureState.
map | the map |
featureState | a FeatureState |
|
override |
|
overridevirtual |
Adds an observer that allows you to receive change events from this edit candidate provider.
Adding the same observer twice is forbidden, and will cause an exception.
observer | an observer |
luciad::InvalidArgumentException | when the observer was already added. |
luciad::NullArgumentException | when the observer is nullptr . |
Implements luciad::IFeatureEditCandidateProvider.
|
overridevirtual |
Implements luciad::IFeatureEditCandidateProvider.
|
overridevirtual |
Removes the given observer.
If the given observer was never added, an exception is thrown.
observer | an observer |
luciad::InvalidArgumentException | when the observer is not known. |
luciad::NullArgumentException | when the observer is nullptr . |
Implements luciad::IFeatureEditCandidateProvider.