LuciadCPillar C# 2024.0.04
|
FeatureEditContext
provides context information for the feature that is being edited.
More...
Public Member Functions | |
void | Dispose () |
Properties | |
Luciad.Edit.EditSettings | DefaultSettings [get] |
The default edit settings. More... | |
Luciad.Utils.Observable< Luciad.Models.Features.Feature > | Feature [get] |
The Feature that is being edited. More... | |
Luciad.Layers.Features.LayerFeatureId | HandleFeatureId [get] |
The feature ID for the handle to which this context is passed. More... | |
ulong | HandleLayerId [get] |
The layer ID of the handle of the Feature that is being edited. More... | |
Luciad.Layers.Features.FeatureLayer | Layer [get] |
The FeatureLayer on which the feature is edited. More... | |
Luciad.Maps.Map | Map [get] |
The map on which the feature is being edited. More... | |
Luciad.Models.Features.IFeatureModel | Model [get] |
The IFeatureModel of the Feature that is being edited. More... | |
Luciad.Layers.Features.LayerFeatureId | PreviewFeatureId [get] |
The ID for the Feature that is used to visualize the editing result. More... | |
FeatureEditContext
provides context information for the feature that is being edited.
|
inline |
|
get |
The default edit settings.
Returns the default edit settings.
|
get |
|
get |
The feature ID for the handle to which this context is passed.
Returns the feature ID for the handle to which this context is passed. It can be used to query the map for specific edit handles, for example. This method will throw an exception if it is called outside an IEditHandle
call.
|
get |
|
get |
The FeatureLayer
on which the feature is edited.
Returns the FeatureLayer
on which the feature is edited. The layer can for example be used to retrieve the IFeatureGeometryProvider
.
|
get |
The map on which the feature is being edited.
Returns the map on which the feature is being edited.
|
get |
The IFeatureModel
of the Feature
that is being edited.
Returns the IFeatureModel
of the Feature
that is being edited.
|
get |
The ID for the Feature
that is used to visualize the editing result.
Returns the ID for the Feature
that is used to visualize the editing result. Depending on the configured
ModelUpdateMode
, this can be a different ID.
For ModelUpdateMode.OnAnyChange
, the original layer is used and the id of getFeature()
.
For ModelUpdateMode.OnMajorChanges
and ModelUpdateMode.OnEditFinished
, this is the ID of the a copy of the Feature
, visualized by the handle layer.
This ID can be used for the Map.QueryFeatures
method to detect if the currently edited Feature
is touched, for example.