LuciadCPillar 2023.1.04
|
Implementation of luciad::IInputEvent
representing a 2 pointers gesture.
More...
#include <luciad/input/touch/TouchEvents.h>
Public Member Functions | |
luciad::Angle | getCurrentAngle () const |
Coordinate | getCurrentCenterLocation () const |
double | getCurrentDistance () const |
luciad::Angle | getInitialAngle () const |
Coordinate | getInitialCenterLocation () const |
double | getInitialDistance () const |
std::optional< luciad::Angle > | getPreviousAngle () const |
std::optional< Coordinate > | getPreviousCenterLocation () const |
std::optional< double > | getPreviousDistance () const |
EventStatus | getStatus () const |
Public Member Functions inherited from luciad::IInputEvent | |
virtual | ~IInputEvent ()=default |
Static Public Member Functions | |
static std::shared_ptr< TouchPinchRotateEvent > | createEvent (Coordinate initialCenterLocation, double initialDistance, luciad::Angle initialAngle, Coordinate currentCenterLocation, double currentDistance, luciad::Angle currentAngle, Coordinate previousCenterLocation, double previousDistance, luciad::Angle previousAngle, EventStatus status) |
Creates a two pointer event. More... | |
static std::shared_ptr< TouchPinchRotateEvent > | createStartEvent (Coordinate initialCenterLocation, double initialDistance, luciad::Angle initialAngle, Coordinate currentCenterLocation, double currentDistance, luciad::Angle currentAngle) |
Creates the first TouchPinchRotateEvent of a gesture. More... | |
Implementation of luciad::IInputEvent
representing a 2 pointers gesture.
This class aggregates information related to pinch and rotation in the same event.
|
inlinestatic |
Creates a two pointer event.
The initial values refer to the situation at the beginning of the gesture (i.e. before any gesture detection).
initialCenterLocation | The center location at the beginning of the gesture, defined in device independent pixels. |
initialDistance | The distance between the pointers at the beginning of the gesture, defined in device independent pixels. |
initialAngle | The absolute angle between the two pointers at the beginning of the gesture. |
currentCenterLocation | The current center location, defined in device independent pixels. |
currentDistance | The current distance between the pointers, defined in device independent pixels. |
currentAngle | The absolute angle between the two pointers. |
previousCenterLocation | The center location from the previous event of the gesture, defined in device independent pixels. |
previousDistance | The distance between the pointers from the previous event of the gesture, defined in device independent pixels. |
previousAngle | The absolute angle between the two pointers from the previous event of the gesture. |
status | The status of the gesture. |
|
inlinestatic |
Creates the first TouchPinchRotateEvent of a gesture.
The initial values refer to the situation at the beginning of the gesture (i.e. before any gesture detection). The current ones contain the values after the gesture detection is done.
initialCenterLocation | The center location at the beginning of the gesture, defined in device independent pixels. |
initialDistance | The distance between the pointers at the beginning of the gesture, defined in device independent pixels. |
initialAngle | The absolute angle between the two pointers at the beginning of the gesture. |
currentCenterLocation | The current center location, defined in device independent pixels. |
currentDistance | The current distance between the pointers, defined in device independent pixels. |
currentAngle | The absolute angle between the two pointers. The status of the created event is EventStatus::Start. The information relative to the previous event are std::nullopt. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::nullopt
if this is the first event of the gesture (i.e. when the status
is EventStatus::Start).
|
inline |
std::nullopt
if this is the first event of the gesture (i.e. when the status
is EventStatus::Start).
|
inline |
std::nullopt
if this is the first event of the gesture (i.e. when the status
is EventStatus::Start).
|
inline |