SoRotateGestureRecognizer Class Reference

Rotate gesture recognizer. More...

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

Inheritance diagram for SoRotateGestureRecognizer:

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()).



SoRotateGestureEvent, SoGestureRecognizer, SoScaleGestureRecognizer, SoDoubleTapGestureRecognizer, SoLongTapGestureRecognizer

See related examples:

QtTouchEvent, WinTouchEvent

Constructor & Destructor Documentation

SoRotateGestureRecognizer::SoRotateGestureRecognizer (  ) 


virtual SoRotateGestureRecognizer::~SoRotateGestureRecognizer (  )  [virtual]


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 28 Oct 2019
Copyright © Thermo Fisher Scientific All rights reserved.