SoRotateGestureEvent Class Reference

Class for rotate gesture events. More...

#include <Inventor/gestures/events/SoRotateGestureEvent.h>

Inheritance diagram for SoRotateGestureEvent:
SoGestureEvent SoEvent SoTypedObject

List of all members.

Public Member Functions

virtual SoType getTypeId () const
 SoRotateGestureEvent ()
float getRotation () const
float getDeltaRotation () const

Static Public Member Functions

static SoType getClassTypeId ()

Detailed Description

Class for rotate gesture events.

SoRotateGestureEvent represents a two finger rotate gesture in the Open Inventor event model. Touch events are analyzed by a SoRotateGestureRecognizer. When a rotate gesture is recognized, the recognizer generates this event. The gesture begins with a BEGIN state event. DELTA state events are generated until the end of the gesture which generates an END state event. See SoGestureEvent::getGestureState().

Note:

SEE ALSO

SoEvent, SoGestureEvent, SoScaleGestureEvent, SoDouleTapGestureEvent, SoLongTapGestureEvent, SoRotateGestureRecognizer


Constructor & Destructor Documentation

SoRotateGestureEvent::SoRotateGestureEvent (  ) 

Constructor.


Member Function Documentation

static SoType SoRotateGestureEvent::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoGestureEvent.

float SoRotateGestureEvent::getDeltaRotation (  )  const

Gets the angle between the vector defined by two fingers previous position and the vector defined by their current position.

float SoRotateGestureEvent::getRotation (  )  const

Gets the angle between the vector defined by two fingers position after the second detection and the vector defined by their current position.

virtual SoType SoRotateGestureEvent::getTypeId (  )  const [virtual]

Returns the type identifier for this specific instance.

Reimplemented from SoGestureEvent.


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

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/