LuciadCPillar C# 2024.0.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 () |
Returns the list of edit candidates. More... | |
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).
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 |
System.ArgumentException | when the observer was already added. |
System.ArgumentNullException | when the observer is null . |
Implemented in Luciad.Edit.Features.FeatureStateEditCandidateProvider.
System.Collections.Generic.IList< Luciad.Layers.Features.LayerFeatureId > Luciad.Edit.Features.IFeatureEditCandidateProvider.GetEditCandidates | ( | ) |
Returns 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 |
System.ArgumentException | when the observer is not known. |
System.ArgumentNullException | when the observer is null . |
Implemented in Luciad.Edit.Features.FeatureStateEditCandidateProvider.