Skip to content

Gesture Interfaces

flashwade03 edited this page Jan 28, 2016 · 3 revisions

####Gesture Interfaces

Interface Class for Gesture recognition

This classes are interface class. If you want to make your own gesture pattern, should implement this class.


1. IGesture.

This interface class is parent class for all gesture classes.
All gesture classes must import this interfaces.

Members

Name Description
Controller _leap_controller This value is need to tracking hand datas.
Frame lastFrame This value is need to getting latest frame.
bool isChecked This is flag for checking whether gesture has occurred.
bool isRight If isRight is flag which hand was checked in frame.
UseArea _useArea User setting for gesture recongnition.
UsingHand _usingHand User setting which user want to use.
MountType _mountType Value of state of mountType.
GestureType _gestureType This value indicates this object's gesture type.
HandList Hands Recognized hand list.

Methods

Name Description
void CheckGesture() This method checks whether gesture has occurred.
void UnCheck() After handler method is invoked, should be called this method for setting isChecked flag.
IsEnableGestureHand Get hand side of gesture.
DoAction Virtual script about gesture event handler

2. IMultiStepCheckGesture

Our gesture system has two recognition type. One is multi step check, the other one is single step check.

IMultiStepCheck system check over a gesture in multiple steps.
Leap Motion API has three gesture states(start, update, stop). But the basic gesture is difficult to check the exact inspection function, because these steps are not taken into checking.

Therefore we increased the reliability by adopting a method.

public interface IMultiStepCheckGesture : IGesture

Members

Name Description
bool _isPlaying This flag indicates that the gesture is in progress.
Gesture.GestureState _state This value indicates gesture's current state.

2. IMultiStepCheckGesture

All of Leap Motion gesture are not have multi states. Keytab, screentab gestures are single step gesture. These gestures are state:stop only. So, these gestures are not need have some value.(_isPlaying, _state...)

public interface ISingleStepCheckGesture : IGesture


3. IUserGesture

We thought that options we made previously can be limitation.
So IUserGesture was designed only to inherit basic elements from IGesture.

public interface IUserGesture : IGesture

Methods

Name Description
bool SetConfig() This method set gesture and controller options.
Clone this wiki locally