![]() |
LuciadCPillar C# 2024.1.04
|
Handler that translates click gesture events to a select operation. More...
Public Member Functions | |
SelectEventHandler (Luciad.Controllers.SelectMode selectMode) | |
Creates a new event handler that uses the given select mode. More... | |
void | Dispose () |
override bool | Equals (object obj) |
override int | GetHashCode () |
Luciad.Controllers.EventResult | OnClickEvent (Luciad.Input.ClickEvent clickEvent, Luciad.Maps.Map map) |
Changes the FeatureState.selected() state of features located under the event location directly or delegates the selection to the handler if it has been set. More... | |
Luciad.Controllers.EventResult | OnTouchLongPressEvent (Luciad.Input.Touch.TouchLongPressEvent touchLongPressEvent, Luciad.Maps.Map map) |
Changes the FeatureState.selected() state of features located under the event location directly or delegates the selection to the handler if it has been set. More... | |
Properties | |
uint | Margin [get, set] |
The margin used to detect if a feature is considered under the mouse cursor or not. More... | |
Luciad.Controllers.ISelectionCandidateChooser | SelectionCandidateChooser [get, set] |
The selection candidate chooser that is used to choose which features need to be selected when there are multiple selection candidates. More... | |
uint | TouchMargin [get, set] |
The margin used to detect if a feature is considered under a touch point or not. More... | |
Handler that translates click gesture events to a select operation.
The select mode can be configured using the SelectMode
enumeration.
|
inline |
Creates a new event handler that uses the given select mode.
selectMode | the mode. |
|
inline |
|
inline |
|
inline |
|
inline |
Changes the FeatureState.selected()
state of features located under the event location directly or delegates the selection to the handler
if it has been set.
This allows the display of a context menu when multiple features are below the cursor, for example.
clickEvent | a click event. Cannot be null . |
map | the map. Cannot be null . |
amount of clicks
is different than 1. System.ArgumentNullException | when passing null for the map or the event. |
Margin
and {SelectEventHandler.TouchMargin
TouchMargin
} for the margin applied to the mouse cursor or touch point position to detect which features are considered.
|
inline |
Changes the FeatureState.selected()
state of features located under the event location directly or delegates the selection to the handler
if it has been set.
This allows the display of a context menu when multiple features are below the cursor, for example.
touchLongPressEvent | a touch long press event. |
map | the map. |
System.ArgumentNullException | when passing null . |
TouchMargin
for the margin applied to the touch point position to detect which features are considered.
|
getset |
The margin used to detect if a feature is considered under the mouse cursor or not.
Returns the margin used to detect if a feature is considered under the mouse cursor or not.
Sets the margin used to detect if a feature is considered under the mouse cursor or not. By default, the margin is 1 pixel.
|
getset |
The selection candidate chooser that is used to choose which features need to be selected when there are multiple selection candidates.
Returns the selection candidate chooser that is used to choose which features need to be selected when there are multiple selection candidates.
Sets the selection candidate chooser that is used to choose which features need to be selected when there are multiple selection candidates. This selection chooser can for example be implemented by showing a popup menu that allows you to choose the feature to select. By default, this handler is null
and no selection is requested.
|
getset |
The margin used to detect if a feature is considered under a touch point or not.
Returns the margin used to detect if a feature is considered under a touch point or not.
Sets the margin used to detect if a feature is considered under a touch point or not. By default, the margin is 5 pixels.