SoRotateGestureRecognizer Class Reference

Rotate gesture recognizer. More...

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

Inheritance diagram for SoRotateGestureRecognizer:
SoGestureRecognizer

List of all members.

Public Member Functions

 SoRotateGestureRecognizer ()
virtual ~SoRotateGestureRecognizer ()
SoEventrecognize (SoEvent *touchEvent)

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:

SEE ALSO

SoRotateGestureEvent, SoGestureRecognizer, SoScaleGestureRecognizer, SoDoubleTapGestureRecognizer, SoLongTapGestureRecognizer

See related examples:

QtTouchEvent, WinTouchEvent


Constructor & Destructor Documentation

SoRotateGestureRecognizer::SoRotateGestureRecognizer (  ) 

Constructor.

virtual SoRotateGestureRecognizer::~SoRotateGestureRecognizer (  )  [virtual]

Destructor.


Member Function Documentation

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:

Open Inventor Toolkit reference manual, generated on 4 Sep 2023
Copyright © Thermo Fisher Scientific All rights reserved.
https://www.openinventor.com/