SoGestureEvent Class Reference

Base class for gesture events. More...

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

Inheritance diagram for SoGestureEvent:
SoEvent SoTypedObject SoDoubleTapGestureEvent SoLongTapGestureEvent SoRotateGestureEvent SoScaleGestureEvent

List of all members.

Public Types

enum  GestureState {
  BEGIN,
  DELTA,
  END
}

Public Member Functions

virtual SoType getTypeId () const
 SoGestureEvent ()
virtual ~SoGestureEvent ()
GestureState getGestureState () const

Static Public Member Functions

static SoType getClassTypeId ()

Detailed Description

Base class for gesture events.

SoGestureEvent represents a series of touch events beginning with begin state and finishing with end state. It is the base class for gesture events in the Open Inventor model. Gesture events can be handled using (for example) an SoEventCallback node.

All touch events are analyzed by recognizers. When a gesture is recognized, the recognizer generates the corresponding event. This class stores the begin/delta/end state of the gesture when the event occurred.

Note:

SEE ALSO

SoEvent, SoRotateGestureEvent, SoScaleGestureEvent, SoTapGestureEvent, SoGestureRecognizer


Member Enumeration Documentation

The different states a gesture event can have.

Enumerator:
BEGIN 

Begin state : Initial state.

DELTA 

Delta state : Begin event has been generated, the gesture is updated.

END 

End state : Final gesture state.


Constructor & Destructor Documentation

SoGestureEvent::SoGestureEvent (  ) 

Constructor.

virtual SoGestureEvent::~SoGestureEvent (  )  [virtual]

Destructor.


Member Function Documentation

static SoType SoGestureEvent::getClassTypeId (  )  [static]

Returns the type identifier for this class.

Reimplemented from SoEvent.

Reimplemented in SoDoubleTapGestureEvent, SoLongTapGestureEvent, SoRotateGestureEvent, and SoScaleGestureEvent.

GestureState SoGestureEvent::getGestureState (  )  const

Gets the gesture event state (Begin,Delta,End).

Use enum GestureState.

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

Returns the type identifier for this specific instance.

Reimplemented from SoEvent.

Reimplemented in SoDoubleTapGestureEvent, SoLongTapGestureEvent, SoRotateGestureEvent, and SoScaleGestureEvent.


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/