LuciadCPillar C# 2023.1.04
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. 2020.1

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::IFeatureHandlesProvider.

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.

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.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::IFeatureHandlesProvider::canProvide.

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

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::IFeatureHandlesProvider::provide.

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