LuciadCPillar 2024.0.04
|
An edit candidate provider determines which Features are considered for editing. More...
#include <luciad/edit/features/IFeatureEditCandidateProvider.h>
Public Member Functions | |
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 |
Returns the list of edit candidates. More... | |
virtual void | removeObserver (const std::shared_ptr< IFeatureEditCandidateObserver > &observer)=0 |
Removes the given observer. More... | |
An edit candidate provider determines which Features are considered for editing.
This interface is used by Editor
, who will use it to determine which Features are edited. An edit candidate can be configured using Editor::Builder::editCandidateProvider
.
Edit candidates are typically determined using feature states
. FeatureStateEditCandidateProvider
for example allows you to return selected or hovered-over Features (or other FeatureStates).
|
virtualdefault |
|
pure virtual |
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 . |
Implemented in luciad::FeatureStateEditCandidateProvider.
|
pure virtual |
Returns the list of edit candidates.
Implemented in luciad::FeatureStateEditCandidateProvider.
|
pure virtual |
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 . |
Implemented in luciad::FeatureStateEditCandidateProvider.