LuciadCPillar C# 2023.1.04
|
This handle allows you to translate a feature by translating its geometry using ITranslateEditAction. More...
Properties | |
Luciad.Layers.Styles.ComplexStrokes.ComplexStrokeLineStyle | ShadowComplexStrokeLineStyle [get, set] |
Luciad.Layers.Styles.FillStyle | ShadowFillStyle [get, set] |
Luciad.Geometries.Geometry | ShadowGeometry [get] |
Luciad.Utils.Observable< Luciad.Geometries.Geometry > | ShadowGeometryProvider [get, set] |
Luciad.Drawing.IIcon | ShadowIcon [get, set] |
Luciad.Layers.Styles.LineStyle | ShadowLineStyle [get, set] |
int | ZOrder [get, set] |
This handle allows you to translate a feature by translating its geometry using ITranslateEditAction.
This handle can operate in 2 modes: 1) Feature mode: the handle is highlighted and can be interacted with when the feature is touched.
the handle does not paint anything. It depends on the original Feature being painted. you can drag the feature the EditHandleState and cursor are changed accordingly
2) Shadow geometry mode: this mode is enabled when a shadow geometry provider is configured that provides a non-nullptr shadow geometry. A shadow geometry is a draped version of a geometry. In that case the handle is highlighted and can be interacted with when that shadow geometry is touched.
the handle paints a shadow geometry you can drag the shadow instead of the feature the EditHandleState and cursor are changed accordingly
If the shadow geometry provider returns nullptr, Feature mode is enabled. This handle uses drag events to call ITranslateEditAction::translate. 2020.1
|
inline |
|
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
InvalidArgumentException
when the observer was already added.
2023.1
Implements Luciad.Edit.Handles.IEditHandle.
|
inline |
|
inline |
|
inline |
the current state of this handle.
Implements Luciad.Edit.Handles.IEditHandle.
|
inline |
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, std::nullopt 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 nullptr
context
the context, cannot be nullptr
if the event was consumed or not
NullArgumentException
when nullptr is passed.
Implements Luciad.Edit.Handles.IEditHandle.
|
inline |
Paints this handle on the given canvas.
This method is called when the handle's IEditHandles fires an EditHandlesEvent containing this handle, when the handle is newly added or removed for example. the handle triggers a new paint call itself by calling its 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 nullptr
Implements Luciad.Edit.Handles.IEditHandle.
|
inline |
Removes the given observer.
If the given observer was never added, an exception is thrown.
observer
an observer
InvalidArgumentException
when the observer is not known.
2023.1
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 |
|
getset |
|
get |
|
getset |
|
getset |
|
getset |
|
getset |