![]() |
LuciadCPillar C# 2025.0.01
|
This handle represents a Point
on the Map
and can be visualized using an icon.
More...
Classes | |
interface | IVisualAidProvider |
This interface allows to calculate a visual aid line based on the location of the handle. More... | |
Public Member Functions | |
PointEditHandle (Luciad.Geometries.Point initialLocation) | |
Creates a new PointEditHandle without associated actions. More... | |
PointEditHandle (Luciad.Utils.Observable< Luciad.Geometries.Point > locationProvider) | |
Creates a new PointEditHandle without associated actions. More... | |
void | AddEditStateObserver (Luciad.Utils.IInvalidationCallback observer) |
Adds an observer that is called when the edit state of this handle has changed. More... | |
Luciad.Edit.Handles.EditActionBinder | AddOnClickAction (Luciad.Edit.Handles.IPointEditAction action, uint clickCount) |
Adds an action that will be triggered when the handle is clicked or tapped (touch). More... | |
Luciad.Edit.Handles.EditActionBinder | AddOnDragAction (Luciad.Edit.Handles.IPointEditAction action) |
Adds an action that will be triggered when the handle is dragged. More... | |
Luciad.Edit.Handles.EditActionBinder | AddOnMouseMoveAction (Luciad.Edit.Handles.IPointEditAction action) |
Adds an action that will be executed on every mouse move. More... | |
Luciad.Edit.Handles.EditActionBinder | AddOnTouchLongPressAction (Luciad.Edit.Handles.IPointEditAction action) |
Adds an action that will be triggered when a long press is performed on a handle. More... | |
void | Dispose () |
override bool | Equals (object obj) |
Luciad.Edit.Handles.EditHandleState | GetEditState () |
Returns the current state of this handle. More... | |
override int | GetHashCode () |
Luciad.Maps.? MouseCursor | GetMouseCursor () |
Returns the current mouse cursor that should be displayed for this handle. More... | |
Luciad.Controllers.EventResult | OnEvent (Luciad.Input.IInputEvent inputEvent, Luciad.Edit.Features.FeatureEditContext context) |
Handles the given event, and returns if the event was consumed or not. More... | |
void | Paint (Luciad.Layers.Features.FeatureCanvas canvas, Luciad.Edit.Features.FeatureEditContext context) |
Paints this handle on the given canvas. More... | |
void | RemoveEditStateObserver (Luciad.Utils.IInvalidationCallback observer) |
Removes the given observer. More... | |
void | SetInvalidationCallback (Luciad.Utils.IInvalidationCallback invalidationCallback) |
Sets the callback for the handle to call when its visual representation or cursor has changed. More... | |
void | AddEditStateObserver (Luciad.Utils.IInvalidationCallback observer) |
Adds an observer that is called when the edit state of this handle has changed. More... | |
Luciad.Edit.Handles.EditHandleState | GetEditState () |
Returns the current state of this handle. More... | |
Luciad.Maps.? MouseCursor | GetMouseCursor () |
Returns the current mouse cursor that should be displayed for this handle. More... | |
Luciad.Controllers.EventResult | OnEvent (Luciad.Input.IInputEvent inputEvent, Luciad.Edit.Features.FeatureEditContext context) |
Handles the given event, and returns if the event was consumed or not. More... | |
void | Paint (Luciad.Layers.Features.FeatureCanvas canvas, Luciad.Edit.Features.FeatureEditContext context) |
Paints this handle on the given canvas. More... | |
void | RemoveEditStateObserver (Luciad.Utils.IInvalidationCallback observer) |
Removes the given observer. More... | |
void | SetInvalidationCallback (Luciad.Utils.IInvalidationCallback invalidationCallback) |
Sets the callback for the handle to call when its visual representation or cursor has changed. More... | |
Properties | |
Luciad.Drawing.IIcon | ActiveIcon [get, set] |
The icon to paint when the handle is in an active state. More... | |
Luciad.Layers.Styles.ComplexStrokes.ComplexStrokeLineStyle | ActiveVisualAidComplexStrokeLineStyle [get, set] |
The visual aid line style to use when this handle is in an Active state. More... | |
Luciad.Layers.Styles.LineStyle | ActiveVisualAidLineStyle [get, set] |
The visual aid line style to use when this handle is in an Active state. More... | |
Luciad.Drawing.IIcon | HighlightedIcon [get, set] |
The icon to paint when the handle is in a highlighted state. More... | |
Luciad.Layers.Styles.ComplexStrokes.ComplexStrokeLineStyle | HighlightedVisualAidComplexStrokeLineStyle [get, set] |
The visual aid complex stroke line style to use when this handle is in a Highlighted state. More... | |
Luciad.Layers.Styles.LineStyle | HighlightedVisualAidLineStyle [get, set] |
The visual aid line style to use when this handle is in a Highlighted state. More... | |
bool | IsUseFeatureAsHandle [get, set] |
Whether this handle should paint any icons itself. More... | |
Luciad.Geometries.Point | Location [get] |
The current location of this handle. More... | |
Luciad.Utils.Observable< Luciad.Geometries.Point > | LocationProvider [get] |
The location provider of this handle. More... | |
Luciad.Utils.Observable< Luciad.Geometries.Point > | LocationProviderWhenActive [get, set] |
The location provider to use when the handle is active . More... | |
Luciad.Edit.Handles.EditMoveConstraint | MoveConstraint [get, set] |
The move constraint of this point handle. More... | |
Luciad.Drawing.IIcon | RegularIcon [get, set] |
The icon to paint when the handle is in a regular state. More... | |
Luciad.Layers.Styles.ComplexStrokes.ComplexStrokeLineStyle | RegularVisualAidComplexStrokeLineStyle [get, set] |
The visual aid complex stroke line style to use when this handle is in an Inactive state. More... | |
Luciad.Layers.Styles.LineStyle | RegularVisualAidLineStyle [get, set] |
The visual aid line style to use when this handle is in an Inactive state. More... | |
Luciad.Edit.Handles.PointEditHandle.IVisualAidProvider | VisualAidLineProvider [get, set] |
The visual aid line provider that allows to paint a visual aid line together with this handle. More... | |
int | ZOrder [get, set] |
The Z-order that is used for this handle's paint calls to the FeatureCanvas . More... | |
This handle represents a Point
on the Map
and can be visualized using an icon.
It can be moved around, or react to mouse events.
The handle executes IPointEditAction
, based on mouse input events. IEditHandles
implementations configure concrete IPointEditAction
implementations on this handle to make sure they result in geometry or feature changes. For example, when this handle is dragged around on the Map
, an IEditHandles
implementation for polylines
can make sure that the second point of the polyline is moved.
This class supports the following gestures:
This handle is painted using an icon
at its current location.
|
inline |
Creates a new PointEditHandle
without associated actions.
initialLocation | the initial location of the handle, cannot be null |
|
inline |
Creates a new PointEditHandle
without associated actions.
locationProvider | the location provider of the handle. The handle assumes the location of this point upon construction, while also observing the point to adjust its own location whenever the observable point changes; cannot be null . |
|
inline |
Adds an observer that is called when the edit state
of this handle has changed.
Adding the same observer twice is forbidden, and will cause an exception to be thrown.
observer | an observer |
System.ArgumentException | when the observer was already added. |
Implements Luciad.Edit.Handles.IEditHandle.
|
inline |
Adds an action that will be triggered when the handle is clicked or tapped (touch).
action | the action to be performed on click, cannot be null . |
clickCount | the action will only be performed when an event is received with this click count |
|
inline |
Adds an action that will be triggered when the handle is dragged.
The given action is executed at least when the drag gesture starts
and ends
, and if EditActionBinder.PerformOnIntermediateEvents
is set to true, it also gets executed on every intermediate
drag event. The action is always called with an EventStatus
parameter corresponding to the drag event.
action | the action to be performed on drag, cannot be null . |
|
inline |
Adds an action that will be executed on every mouse move.
action | the action to be performed during the mouse move, cannot be null . |
|
inline |
Adds an action that will be triggered when a long press is performed on a handle.
action | the action to be performed, cannot be null . |
|
inline |
|
inline |
|
inline |
Returns the current state of this handle.
Implements Luciad.Edit.Handles.IEditHandle.
|
inline |
|
inline |
Returns the current mouse cursor that should be displayed for this handle.
This method typically returns a value when this handle is highlighted or active. If not, null
can be returned.
Implements Luciad.Edit.Handles.IEditHandle.
|
inline |
Handles the given event, and returns if the event was consumed or not.
While handling events, IEditHandles
can mark themselves as highlighted or as Active. Related to event handling, the main effect of this is that highlighted or active handles get a higher priority compared to other handles: they get the chance to consume events first. See EditHandleState
inputEvent | the event to handle, cannot be null |
context | the context, cannot be null |
System.ArgumentNullException | when null is passed. |
Implements Luciad.Edit.Handles.IEditHandle.
|
inline |
Paints this handle on the given canvas.
This method is called when
IEditHandles
fires an EditHandlesEvent
containing this handle, when the handle is newly added or removed for example. invalidation callback
. This method only gets called on the UI thread, so there is no need for additional synchronization.
canvas | the canvas on which this handle gets painted. |
context | the context, cannot be null |
Implements Luciad.Edit.Handles.IEditHandle.
|
inline |
Removes the given observer.
If the given observer was never added, an exception is thrown.
observer | an observer |
System.ArgumentException | when the observer is not known. |
Implements Luciad.Edit.Handles.IEditHandle.
|
inline |
Sets the callback for the handle to call when its visual representation or cursor has changed.
Calling this callback triggers a new call to this handle's Paint
method.
invalidationCallback | the callback for the handle to call when its visual representation has changed |
Implements Luciad.Edit.Handles.IEditHandle.
|
getset |
The icon to paint when the handle is in an active state.
Returns the icon to paint when the handle is in an active state.
Sets the icon to paint when the handle is in an active state. This icon is only used when setUseFeatureAsHandle
is set to false.
ActiveIcon
|
getset |
The visual aid line style to use when this handle is in an Active
state.
Returns the visual aid line style to use when this handle is in an Active
state. This method is linked to the ActiveVisualAidLineStyle
method:
null
, no visual aid line is painted null
, that line style is used null
value: they are mutually exclusive Sets the visual aid line style to use when this handle is in an Active
state. This style is only used when a visual aid line is set
.
Only one active line style can be set, if this function is called with a non null
value when a LineStyle
has already been set, it will be overwritten.
The default is null
, as a linestyle
is used as default active visual aid style.
|
getset |
The visual aid line style to use when this handle is in an Active
state.
Returns the visual aid line style to use when this handle is in an Active
state. This method is linked to the ActiveVisualAidComplexStrokeLineStyle
method:
null
, no visual aid line is painted null
, that line style is used null
value: they are mutually exclusive Sets the visual aid line style to use when this handle is in an Active
state. This style is only used when a visual aid line is set
.
Only one active line style can be set, if this function is called with a non null
value when a ComplexStrokeLineStyle
has already been set, it will be overwritten.
The default is a small, grey line.
ActiveVisualAidLineStyle
|
getset |
The icon to paint when the handle is in a highlighted state.
Returns the icon to paint when the handle is in a highlighted state.
Sets the icon to paint when the handle is in a highlighted state. This icon is only used when setUseFeatureAsHandle
is set to false.
HighlightedIcon
|
getset |
The visual aid complex stroke line style to use when this handle is in a Highlighted
state.
Returns the visual aid complex stroke line style to use when this handle is in a Highlighted
state. This method is linked to the HighlightedVisualAidLineStyle
method:
null
, no visual aid line is painted null
, that line style is used null
value: they are mutually exclusive Sets the visual aid complex stroke line style to use when this handle is in a Highlighted
state. This style is only used when a visual aid line is set
.
Only one highlighted line style can be set, if this function is called with a non null
value when a LineStyle
has already been set, it will be overwritten.
The default is null
, as a linestyle
is used as default highlighted visual aid style.
|
getset |
The visual aid line style to use when this handle is in a Highlighted
state.
Returns the visual aid line style to use when this handle is in a Highlighted
state. This method is linked to the HighlightedVisualAidComplexStrokeLineStyle
method:
null
, no visual aid line is painted null
, that line style is used null
value: they are mutually exclusive Sets the visual aid line style to use when this handle is in a Highlighted
state. This style is only used when a visual aid line is set
.
Only one regular line style can be set, if this function is called with a non null
value when a ComplexStrokeLineStyle
has already been set, it will be overwritten.
The default is a small, grey line.
HighlightedVisualAidLineStyle
|
getset |
Whether this handle should paint any icons itself.
Returns whether this handle should paint any icons itself. When set to true, this handle does not paint any icons itself.
Sets whether this handle should paint any icons itself. When set to true, this handle does not paint any icons for itself. In this case, the handle considers the feature that is being edited for determining whether it is touched or not. Otherwise, when this is set to false, the handle paints itself as an icon and only considers that icon for deciding whether it is touched.
By default, this is false.
setUseFeatureAsHandle
|
get |
The current location of this handle.
Returns the current location of this handle. Note that this location is not necessarily equal to the location provider
at all times. For example, they may differ when the handle is dragged around and no location changes are triggered in the location provider.
|
get |
The location provider of this handle.
Returns the location provider of this handle. Note that the handle's current location
is not necessarily equal to this location provider
at all times. For example, they may differ when the handle is dragged around and no location changes are triggered in this location provider. Additionally, the handle may have a different location provider when it is active. See LocationProviderWhenActive
.
|
getset |
The location provider to use when the handle is active
.
Returns the location provider to use when the handle is active
. Can be null
if no distinct location provider is set for when the handle is active.
Sets the location provider to use when the handle is active
. If set, this overrides the regular location provider
when the handle is active.
Can be null
.
|
getset |
The move constraint of this point handle.
Returns the move constraint of this point handle.
Sets the move constraint of this point handle. By default, this is EditMoveConstraint.XY
.
|
getset |
The icon to paint when the handle is in a regular state.
Returns the icon to paint when the handle is in a regular state.
Sets the icon to paint when the handle is in a regular state. This icon is only used when setUseFeatureAsHandle
is set to false.
RegularIcon
|
getset |
The visual aid complex stroke line style to use when this handle is in an Inactive
state.
Returns the visual aid complex stroke line style to use when this handle is in an Inactive
state. This method is linked to the RegularVisualAidLineStyle
method:
null
, no visual aid line is painted null
, that line style is used null
value: they are mutually exclusive Sets the visual aid complex stroke line style to use when this handle is in an Inactive
state. This style is only used when a visual aid line is set
.
Only one regular line style can be set, if this function is called with a non null
value when a LineStyle
has already been set, it will be overwritten.
The default is null
, as a linestyle
is used as default regular visual aid style.
|
getset |
The visual aid line style to use when this handle is in an Inactive
state.
Returns the visual aid line style to use when this handle is in an Inactive
state. This method is linked to the RegularVisualAidComplexStrokeLineStyle
method:
null
, no visual aid line is painted null
, that line style is used null
value: they are mutually exclusive Sets the visual aid line style to use when this handle is in an Inactive
state. This style is only used when a visual aid line is set
.
Only one regular line style can be set, if this function is called with a non null
value when a ComplexStrokeLineStyle
has already been set, it will be overwritten.
The default is a small, grey line.
RegularVisualAidLineStyle
|
getset |
The visual aid line provider that allows to paint a visual aid line together with this handle.
Returns the visual aid line provider that allows to paint a visual aid line together with this handle.
Sets the visual aid line provider that allows to paint a visual aid line together with this handle. It is not possible to interact with this line. The line style can be configured using RegularVisualAidLineStyle
.
If null
, no visual aid line is painted. The default is null
.
VisualAidLineProvider
|
getset |
The Z-order that is used for this handle's paint calls to the FeatureCanvas
.
Returns the Z-order that is used for this handle's paint calls to the FeatureCanvas
.
Sets the Z-order that is used for this handle's paint calls to the FeatureCanvas
. This Z-order determines which handles are painted on top, when multiple handles overlap. Edit handles with a higher Z-order are painted on top of handles with a lower Z-order. Note: Highlighted
edit handles are always painted above regular handles, and active
handles are always painted above highlighted handles.
Must be between [-1000,1000]. The default value is 0.
ZOrder
. FeatureCanvas
draw commands. For example FeatureCanvas.IconDrawCommand.ZOrder
.