|
LuciadCPillar C# 2025.0.07
|
This class can provide edit handles for a given Geometry.
More...
Public Member Functions | |
| bool | CanProvide (Luciad.Utils.Observable< Luciad.Geometries.Geometry > geometry, Luciad.Edit.Features.FeatureEditContext context) |
| Indicates if this handles provider can create handles for the given geometry. More... | |
| Luciad.Edit.Handles.IEditHandles | Provide (Luciad.Utils.Observable< Luciad.Geometries.Geometry > geometry, Luciad.Edit.Features.FeatureEditContext context, Luciad.Edit.Geometries.IGeometryEditCallback geometryEditCallback) |
| Returns the handles for the given feature. More... | |
| Luciad.Edit.Handles.ITranslateEditAction | ProvideTranslateAction (Luciad.Utils.Observable< Luciad.Geometries.Geometry > geometry, Luciad.Edit.Features.FeatureEditContext context, Luciad.Edit.Geometries.IGeometryEditCallback geometryEditCallback) |
| Provides a translate action that can be used by the caller to add translation behavior. More... | |
This class can provide edit handles for a given Geometry.
The given Geometry is passed to this provider as an Observable. This object allows Editor to communicate geometry 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 or handles wrappers by calling IGeometryEditCallback. See also the related guide on editing interactions.
This class is typically used in the context of feature editing, when a feature is edited by modifying its geometry.
It has a default implementation that supports many geometries.
See the related guide for an overview of the editing API.
| bool Luciad.Edit.Geometries.IGeometryHandlesProvider.CanProvide | ( | Luciad.Utils.Observable< Luciad.Geometries.Geometry > | geometry, |
| Luciad.Edit.Features.FeatureEditContext | context | ||
| ) |
Indicates if this handles provider can create handles for the given geometry.
| geometry | an observable geometry, cannot be null |
| context | the context. Contains additional information about the edited feature, cannot be null. |
Feature Implemented in Luciad.Edit.Geometries.ArcBandHandlesProvider, Luciad.Edit.Geometries.CircleByCenterPointHandlesProvider, Luciad.Edit.Geometries.CompositeGeometryHandlesProvider, Luciad.Edit.Geometries.PatchHandlesProvider, Luciad.Edit.Geometries.PointHandlesProvider, Luciad.Edit.Geometries.PolygonHandlesProvider, Luciad.Edit.Geometries.PolylineHandlesProvider, and Luciad.Edit.Geometries.PolylineRingHandlesProvider.
| Luciad.Edit.Handles.IEditHandles Luciad.Edit.Geometries.IGeometryHandlesProvider.Provide | ( | Luciad.Utils.Observable< Luciad.Geometries.Geometry > | geometry, |
| Luciad.Edit.Features.FeatureEditContext | context, | ||
| Luciad.Edit.Geometries.IGeometryEditCallback | geometryEditCallback | ||
| ) |
Returns the handles for the given feature.
Note: translation of features is handled by IFeatureHandlesProvider. So geometry handles providers should not provide handles to translate a geometry.
| geometry | the observable geometry for which to provide handles, cannot be null. |
| context | the context. Contains additional information about the edited feature, cannot be null. |
| geometryEditCallback | a callback that notifies the caller when the Feature has changed, cannot be null. |
null. Implemented in Luciad.Edit.Geometries.ArcBandHandlesProvider, Luciad.Edit.Geometries.CircleByCenterPointHandlesProvider, Luciad.Edit.Geometries.CompositeGeometryHandlesProvider, Luciad.Edit.Geometries.PatchHandlesProvider, Luciad.Edit.Geometries.PointHandlesProvider, Luciad.Edit.Geometries.PolygonHandlesProvider, Luciad.Edit.Geometries.PolylineHandlesProvider, and Luciad.Edit.Geometries.PolylineRingHandlesProvider.
| Luciad.Edit.Handles.ITranslateEditAction Luciad.Edit.Geometries.IGeometryHandlesProvider.ProvideTranslateAction | ( | Luciad.Utils.Observable< Luciad.Geometries.Geometry > | geometry, |
| Luciad.Edit.Features.FeatureEditContext | context, | ||
| Luciad.Edit.Geometries.IGeometryEditCallback | geometryEditCallback | ||
| ) |
Provides a translate action that can be used by the caller to add translation behavior.
A translation handle is typically added by an IFeatureHandlesProvider, for example the FeatureHandlesProvider implementation. It calls this method to retrieve a translate action, and uses it to create a TranslateEditHandle.
When ITranslateEditAction.Translate is called, the returned implementation must:
IGeometryHandlesProvider's constraint (if configured) to the translated geometry IGeometryEditCallback with the resulting geometry | geometry | the observable geometry for which to provide a translate action, cannot be null |
| context | the context, cannot be null |
| geometryEditCallback | a callback that notifies the caller of this method when a translation has occurred, cannot be null |
null. Implemented in Luciad.Edit.Geometries.ArcBandHandlesProvider, Luciad.Edit.Geometries.CircleByCenterPointHandlesProvider, Luciad.Edit.Geometries.CompositeGeometryHandlesProvider, Luciad.Edit.Geometries.PatchHandlesProvider, Luciad.Edit.Geometries.PointHandlesProvider, Luciad.Edit.Geometries.PolygonHandlesProvider, Luciad.Edit.Geometries.PolylineHandlesProvider, and Luciad.Edit.Geometries.PolylineRingHandlesProvider.