LuciadCPillar C# 2023.1.04
|
This class can provide edit handles for a given Feature. More...
Public Member Functions | |
bool | CanProvide (Luciad.Utils.Observable< Luciad.Models.Features.Feature > feature, Luciad.Edit.Features.FeatureEditContext context) |
Indicates if this handles provider can create handles for the given Feature. More... | |
Luciad.Edit.Handles.IEditHandles | Provide (Luciad.Utils.Observable< Luciad.Models.Features.Feature > feature, Luciad.Edit.Features.FeatureEditContext context, Luciad.Edit.Features.IFeatureEditCallback featureEditCallback) |
Returns handles for the given feature. More... | |
This class can provide edit handles for a given Feature.
The given Feature is passed to this provider as an Observable. This object allows Editor to communicate feature changes to the IEditHandles implementations, who can use it to create and update their collection of handles. Editing changes originating from IEditHandles are communicated to the Editor using IFeatureEditCallback. See also the related guide on editing interactions. See the related guide for an overview of the editing API. In many cases, the FeatureHandlesProvider implementation is sufficient. 2020.1
bool Luciad.Edit.Features.IFeatureHandlesProvider.CanProvide | ( | Luciad.Utils.Observable< Luciad.Models.Features.Feature > | feature, |
Luciad.Edit.Features.FeatureEditContext | context | ||
) |
Indicates if this handles provider can create handles for the given Feature.
feature
an observable Feature.
context
the context. Contains additional information about the edited feature.
if this handles provider can create handles for the given Feature.
Implemented in Luciad.Edit.Features.CompositeFeatureHandlesProvider, and Luciad.Edit.Features.FeatureHandlesProvider.
Luciad.Edit.Handles.IEditHandles Luciad.Edit.Features.IFeatureHandlesProvider.Provide | ( | Luciad.Utils.Observable< Luciad.Models.Features.Feature > | feature, |
Luciad.Edit.Features.FeatureEditContext | context, | ||
Luciad.Edit.Features.IFeatureEditCallback | featureEditCallback | ||
) |
Returns handles for the given feature.
If this provider doesn't support the given feature, it can return nullptr.
feature
the observable feature for which to create handles.
context
the context. Contains additional information about the edited feature.
featureEditCallback
a callback that notifies the caller when the Feature has changed.
handles for the given feature. If this provider doesn't support the given feature, it can return nullptr.
Implemented in Luciad.Edit.Features.CompositeFeatureHandlesProvider, and Luciad.Edit.Features.FeatureHandlesProvider.