LuciadCPillar C# 2023.1.04
Luciad.Input.Touch.TouchGestureRecognizer Class Reference

This class generates high-level touch gesture events from low-level input events. More...

Inheritance diagram for Luciad.Input.Touch.TouchGestureRecognizer:

Public Member Functions

 TouchGestureRecognizer (Luciad.Input.IInputEventCallback callback, Luciad.Concurrent.ITaskScheduler taskScheduler)
 
void Dispose ()
 
void OnTouchEvent (Luciad.Input.Touch.TouchPointEvent touchPointEvent)
 Entry point for the touch events of the gesture recognizer. More...
 

Properties

double DisplayScale [get, set]
 
double Dpi [get, set]
 
Luciad.Input.ScreenDistance DragThreshold [get, set]
 
uint LongPressThreshold [get, set]
 
uint MultiTapInterval [get, set]
 
Luciad.Input.ScreenDistance MultiTapThreshold [get, set]
 

Detailed Description

This class generates high-level touch gesture events from low-level input events.

High level events are subclasses of luciad::IInputEvent such as luciad::TouchTapEvent. Sequences of low level events are used to create those high level events. For example, a touch press + movement of the touch point (possibly multiple times) sequence is recognized as a touch drag gesture. A touch press + a touch release sequence is recognized as a touch tap gesture. This class is useful when adding integration with a platform that does not provide these more high-level events. A typical use of such a class is to wire it to a UI framework specific class (such as Qt , see QQuickMapObject in the sample code) and make the controller react to the high level event instead of every low level event the framework can fire. The use of the TouchGestureRecognizer is optional. A controller implementation can use custom conversion code if needed, for example if you want to manage the low level events yourself and create other high level luciad::IInputEvent instances. The events passed to this class are expected to be defined in device independent pixels. 2022.0

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

Constructor & Destructor Documentation

◆ TouchGestureRecognizer()

Luciad.Input.Touch.TouchGestureRecognizer.TouchGestureRecognizer ( Luciad.Input.IInputEventCallback  callback,
Luciad.Concurrent.ITaskScheduler  taskScheduler 
)
inline

Member Function Documentation

◆ Dispose()

void Luciad.Input.Touch.TouchGestureRecognizer.Dispose ( )
inline

◆ OnTouchEvent()

void Luciad.Input.Touch.TouchGestureRecognizer.OnTouchEvent ( Luciad.Input.Touch.TouchPointEvent  touchPointEvent)
inline

Entry point for the touch events of the gesture recognizer.

touchPointEvent

the luciad::TouchPointEvent object containing a collection of luciad::TouchPoints.

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

Property Documentation

◆ DisplayScale

double Luciad.Input.Touch.TouchGestureRecognizer.DisplayScale
getset

◆ Dpi

double Luciad.Input.Touch.TouchGestureRecognizer.Dpi
getset

◆ DragThreshold

Luciad.Input.ScreenDistance Luciad.Input.Touch.TouchGestureRecognizer.DragThreshold
getset

◆ LongPressThreshold

uint Luciad.Input.Touch.TouchGestureRecognizer.LongPressThreshold
getset

◆ MultiTapInterval

uint Luciad.Input.Touch.TouchGestureRecognizer.MultiTapInterval
getset

◆ MultiTapThreshold

Luciad.Input.ScreenDistance Luciad.Input.Touch.TouchGestureRecognizer.MultiTapThreshold
getset