Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
SoRotateGestureRecognizer Class Reference

Rotate gesture recognizer. More...

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

+ Inheritance diagram for SoRotateGestureRecognizer:

Public Member Functions

 SoRotateGestureRecognizer ()
 Constructor.
 
virtual ~SoRotateGestureRecognizer ()
 Destructor.
 
SoEventrecognize (SoEvent *touchEvent)
 If two fingers are moving on the screen, it returns the angle between the segment defined by the position of the fingers and the initial one, when the second finger was put down.
 

Detailed Description

Rotate gesture recognizer.

SoRotateGestureRecognizer analyses touch events and recognizes a two finger rotate gesture. It generates SoRotateGestureEvent events when this gesture is recognized. This recognizer generates a BEGIN event, followed by DELTA events and finishing with an END event (SoGestureEvent::getGestureState()).

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

SoRotateGestureEvent, SoGestureRecognizer, SoScaleGestureRecognizer, SoDoubleTapGestureRecognizer, SoLongTapGestureRecognizer

Definition at line 85 of file SoRotateGestureRecognizer.h.

Constructor & Destructor Documentation

◆ SoRotateGestureRecognizer()

SoRotateGestureRecognizer::SoRotateGestureRecognizer ( )

Constructor.

◆ ~SoRotateGestureRecognizer()

virtual SoRotateGestureRecognizer::~SoRotateGestureRecognizer ( )
virtual

Destructor.

Member Function Documentation

◆ recognize()

SoEvent * SoRotateGestureRecognizer::recognize ( SoEvent touchEvent)
virtual

If two fingers are moving on the screen, it returns the angle between the segment defined by the position of the fingers and the initial one, when the second finger was put down.

If no gesture has been recognized, returns null. Returns a pointer to an internal data object. Do not modify or delete this object.

Implements SoGestureRecognizer.


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