LuciadCPillar C# 2023.1.04
|
An edit candidate provider determines which Features are considered for editing. More...
Public Member Functions | |
void | AddObserver (Luciad.Edit.Features.IFeatureEditCandidateObserver observer) |
Adds an observer that allows you to receive change events from this edit candidate provider. More... | |
System.Collections.Generic.IList< Luciad.Layers.Features.LayerFeatureId > | GetEditCandidates () |
void | RemoveObserver (Luciad.Edit.Features.IFeatureEditCandidateObserver observer) |
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). 2020.1
void Luciad.Edit.Features.IFeatureEditCandidateProvider.AddObserver | ( | Luciad.Edit.Features.IFeatureEditCandidateObserver | observer | ) |
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.Edit.Features.FeatureStateEditCandidateProvider.
System.Collections.Generic.IList< Luciad.Layers.Features.LayerFeatureId > Luciad.Edit.Features.IFeatureEditCandidateProvider.GetEditCandidates | ( | ) |
the list of edit candidates
Implemented in Luciad.Edit.Features.FeatureStateEditCandidateProvider.
void Luciad.Edit.Features.IFeatureEditCandidateProvider.RemoveObserver | ( | Luciad.Edit.Features.IFeatureEditCandidateObserver | observer | ) |
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.Edit.Features.FeatureStateEditCandidateProvider.