Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
SoGestureRecognizer Class Referenceabstract

Base class for all gesture recognizers. More...

#include <Inventor/gestures/recognizers/SoGestureRecognizer.h>

+ Inheritance diagram for SoGestureRecognizer:

Public Member Functions

virtual SoEventrecognize (SoEvent *touchEvent)=0
 If the specified touch event completes a recognized gesture, returns an SoGestureEvent, else returns null.
 

Detailed Description

Base class for all gesture recognizers.

A gesture recognizer analyzes touch events and translates them into corresponding gesture events.

Note:

  • In order to get touch events for the gesture recognizer(s) to recognize, the application must explicitly register a touch screen device (SoWinTouchScreen, SoQtTouchScreen, etc).
  • In order to get gesture events, the application must explicitly register gesture recognizers with the touch screen device's touch manager (SoTouchManager).

SEE ALSO

SoScaleGestureRecognizer, SoRotateGestureRecognizer, SoDoubleTapGestureRecognizer, SoLongTapGestureRecognizer

Definition at line 78 of file SoGestureRecognizer.h.

Member Function Documentation

◆ recognize()

virtual SoEvent * SoGestureRecognizer::recognize ( SoEvent touchEvent)
pure virtual

If the specified touch event completes a recognized gesture, returns an SoGestureEvent, else returns null.

Returns a pointer to an internal data object. Do not modify or delete this object.

Implemented in SoDoubleTapGestureRecognizer, SoLongTapGestureRecognizer, SoRotateGestureRecognizer, and SoScaleGestureRecognizer.


The documentation for this class was generated from the following file: