LuciadCPillar C# 2024.0.04
|
Represents a collection of handles that determine how an edited object, a Feature
or a Geometry
for example, can be modified.
More...
Public Member Functions | |
void | AddObserver (Luciad.Edit.Handles.IEditHandlesObserver observer) |
Adds an observer that allows you to receive change events when a handle is added or removed. More... | |
System.Collections.Generic.IList< Luciad.Edit.Handles.IEditHandle > | GetList () |
Returns the list of all IEditHandle instances that can be used for editing. More... | |
void | RemoveObserver (Luciad.Edit.Handles.IEditHandlesObserver observer) |
Removes the given observer. More... | |
Represents a collection of handles that determine how an edited object, a Feature
or a Geometry
for example, can be modified.
This collection keeps itself up-to-date while the edited object changes.
See the related guide for an overview of the editing API.
The responsibilities of this class are to:
changes externally
. IEditHandlesObserver
s, and fire the appropriate EditHandlesEvent
s whenever handles are added or removed. Note: IEditHandles
is only accessed on the UI thread by Editor
.
void Luciad.Edit.Handles.IEditHandles.AddObserver | ( | Luciad.Edit.Handles.IEditHandlesObserver | observer | ) |
Adds an observer that allows you to receive change events when a handle is added or removed.
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. |
System.ArgumentNullException | when the observer is null . |
System.Collections.Generic.IList< Luciad.Edit.Handles.IEditHandle > Luciad.Edit.Handles.IEditHandles.GetList | ( | ) |
Returns the list of all IEditHandle
instances that can be used for editing.
To make sure these handles are used in a consistent way, it's important to return them in a consistent order. The Editor
prioritizes handles for event handling according to the order they are returned in. The first returned element has the highest priority.
All handles returned by this method must be valid, meaning that null
handles must be filtered out.
IEditHandle
instances that can be used for editing. void Luciad.Edit.Handles.IEditHandles.RemoveObserver | ( | Luciad.Edit.Handles.IEditHandlesObserver | observer | ) |
Removes the given observer.
If the given observer was never added or already removed, an exception is thrown.
observer | an observer. |
System.ArgumentException | when the observer is not known. |
System.ArgumentNullException | when the observer is null . |