LuciadCPillar 2023.1.04
luciad::TouchDragEvent Class Reference

Implementation of luciad::IInputEvent that represents a touch drag gesture. More...

#include <luciad/input/touch/TouchEvents.h>

Inheritance diagram for luciad::TouchDragEvent:
luciad::DragEvent luciad::IInputEvent

Public Member Functions

 TouchDragEvent (Coordinate initialCenterLocation, Coordinate currentCenterLocation, size_t touchPointCount, EventStatus status)
 Create a touch drag event. More...
 
Coordinate getCurrentCenterLocation () const
 
Coordinate getInitialCenterLocation () const
 
size_t getTouchPointCount () const
 
- Public Member Functions inherited from luciad::DragEvent
 DragEvent (Coordinate location, EventStatus status, Coordinate startLocation)
 Creates a drag event. More...
 
Coordinate getLocation () const noexcept
 
virtual ModifierKeys getModifierKeys () const noexcept
 
Coordinate getStartLocation () const noexcept
 
EventStatus getStatus () const noexcept
 
- Public Member Functions inherited from luciad::IInputEvent
virtual ~IInputEvent ()=default
 

Detailed Description

Implementation of luciad::IInputEvent that represents a touch drag gesture.

It contains the initial and the current centroid location of the touch points in addition to the number of touch points currently detected and the current status of the gesture.

Since
2022.0

Constructor & Destructor Documentation

◆ TouchDragEvent()

luciad::TouchDragEvent::TouchDragEvent ( Coordinate  initialCenterLocation,
Coordinate  currentCenterLocation,
size_t  touchPointCount,
EventStatus  status 
)
inline

Create a touch drag event.

Parameters
initialCenterLocationThe center location at the beginning of the gesture, defined in device independent pixels.
currentCenterLocationThe current center location, defined in device independent pixels.
touchPointCountHow many touch points are used in the gesture.
statusThe status of the gesture.

Member Function Documentation

◆ getCurrentCenterLocation()

Coordinate luciad::TouchDragEvent::getCurrentCenterLocation ( ) const
inline
Returns
the location of the centroid of the surface represented by the current locations of the pointers in device independent pixels.

◆ getInitialCenterLocation()

Coordinate luciad::TouchDragEvent::getInitialCenterLocation ( ) const
inline
Returns
the location of the centroid of the surface represented by the initial locations of the pointers in device independent pixels.

◆ getTouchPointCount()

size_t luciad::TouchDragEvent::getTouchPointCount ( ) const
inline
Returns
how many touch points are used.