LuciadCPillar C# 2024.1.01
Luciad.Edit.Features.IFeatureHandlesProvider Interface Reference

This class can provide edit handles for a given Feature. More...

Inheritance diagram for Luciad.Edit.Features.IFeatureHandlesProvider:
Luciad.Edit.Features.CompositeFeatureHandlesProvider Luciad.Edit.Features.FeatureHandlesProvider Luciad.Symbology.Military.MilitarySymbolFeatureHandlesProvider

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...
 

Detailed Description

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.

Since
2020.1

Member Function Documentation

◆ CanProvide()

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.

Parameters
featurean observable Feature.
contextthe context. Contains additional information about the edited feature.
Returns
if this handles provider can create handles for the given Feature.

Implemented in Luciad.Edit.Features.CompositeFeatureHandlesProvider, and Luciad.Edit.Features.FeatureHandlesProvider.

◆ Provide()

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 null.

Parameters
featurethe observable feature for which to create handles.
contextthe context. Contains additional information about the edited feature.
featureEditCallbacka callback that notifies the caller when the Feature has changed.
Returns
handles for the given feature. If this provider doesn't support the given feature, it can return null.

Implemented in Luciad.Edit.Features.CompositeFeatureHandlesProvider, and Luciad.Edit.Features.FeatureHandlesProvider.