LuciadCPillar C# 2024.1.02
Luciad.Controllers.PanEventHandler Class Reference

Basic gesture handler dedicated to translate drag gesture events to a pan operation. More...

Inheritance diagram for Luciad.Controllers.PanEventHandler:

Public Member Functions

 PanEventHandler ()
 Creates a new instance. More...
 
void Dispose ()
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
Luciad.Controllers.EventResult OnDragEvent (Luciad.Input.DragEvent dragEvent, Luciad.Maps.Map map)
 Moves the map's camera following the drag direction. More...
 

Detailed Description

Basic gesture handler dedicated to translate drag gesture events to a pan operation.

Since
2020.1

Constructor & Destructor Documentation

◆ PanEventHandler()

Luciad.Controllers.PanEventHandler.PanEventHandler ( )
inline

Creates a new instance.

Member Function Documentation

◆ Dispose()

void Luciad.Controllers.PanEventHandler.Dispose ( )
inline

◆ Equals()

override bool Luciad.Controllers.PanEventHandler.Equals ( object  obj)
inline

◆ GetHashCode()

override int Luciad.Controllers.PanEventHandler.GetHashCode ( )
inline

◆ OnDragEvent()

Luciad.Controllers.EventResult Luciad.Controllers.PanEventHandler.OnDragEvent ( Luciad.Input.DragEvent  dragEvent,
Luciad.Maps.Map  map 
)
inline

Moves the map's camera following the drag direction.

The drag event is consumed only if the sequence of events is the following : a EventStatus.Start event, 0 or more EventStatus.InProgress event and finally a EventStatus.End event. If the sequence is not correct, this method returns EventResult.NotConsumed.

Parameters
dragEventa drag event. Cannot be null.
mapthe map. Cannot be null.
Returns
whether the drag event was consumed or not.
Exceptions
System.ArgumentNullExceptionwhen passing null for the map or the event.