LuciadCPillar C# 2023.1.04
Luciad.Controllers.SelectEventHandler Class Reference

Handler that translates click gesture events to a select operation. More...

Inheritance diagram for Luciad.Controllers.SelectEventHandler:

Public Member Functions

 SelectEventHandler (Luciad.Controllers.SelectMode selectMode)
 
void Dispose ()
 
Luciad.Controllers.EventResult OnClickEvent (Luciad.Input.ClickEvent clickEvent, Luciad.Maps.Map map)
 Changes the luciad::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 luciad::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]
 
Luciad.Controllers.ISelectionCandidateChooser SelectionCandidateChooser [get, set]
 
uint TouchMargin [get, set]
 

Detailed Description

Handler that translates click gesture events to a select operation.

The select mode can be configured using the luciad::SelectMode enumeration. 2020.1

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::SelectEventHandler.

Constructor & Destructor Documentation

◆ SelectEventHandler()

Luciad.Controllers.SelectEventHandler.SelectEventHandler ( Luciad.Controllers.SelectMode  selectMode)
inline

Member Function Documentation

◆ Dispose()

void Luciad.Controllers.SelectEventHandler.Dispose ( )
inline

◆ OnClickEvent()

Luciad.Controllers.EventResult Luciad.Controllers.SelectEventHandler.OnClickEvent ( Luciad.Input.ClickEvent  clickEvent,
Luciad.Maps.Map  map 
)
inline

Changes the luciad::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 nullptr.

map

the map. Cannot be nullptr.

whether the click event is consumed or not. The event is not consumed if the amount of clicks is different than 1.

luciad::NullArgumentException

when passing nullptr for the map or the event.

setMargin and {luciad::SelectEventHandler::setTouchMargin setTouchMargin} for the margin applied to the mouse cursor or touch point position to detect which features are considered.

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::SelectEventHandler::onClickEvent.

◆ OnTouchLongPressEvent()

Luciad.Controllers.EventResult Luciad.Controllers.SelectEventHandler.OnTouchLongPressEvent ( Luciad.Input.Touch.TouchLongPressEvent  touchLongPressEvent,
Luciad.Maps.Map  map 
)
inline

Changes the luciad::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.

whether the event is consumed or not.

luciad::NullArgumentException

when passing nullptr.

setTouchMargin for the margin applied to the touch point position to detect which features are considered.

2022.0

Warning
C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::SelectEventHandler::onTouchLongPressEvent.

Property Documentation

◆ Margin

uint Luciad.Controllers.SelectEventHandler.Margin
getset

◆ SelectionCandidateChooser

Luciad.Controllers.ISelectionCandidateChooser Luciad.Controllers.SelectEventHandler.SelectionCandidateChooser
getset

◆ TouchMargin

uint Luciad.Controllers.SelectEventHandler.TouchMargin
getset