C# Class Kinect.NewronGestureListener

Inheritance: UnityEngine.MonoBehaviour, KinectGestures.GestureListenerInterface
Mostrar archivo Open project: BrainProject/UnityTemp Class Usage Examples

Public Methods

Method Description
GestureCancelled ( long userId, int userIndex, KinectGestures gesture, KinectInterop joint ) : bool

Invoked if a gesture is cancelled.

GestureCompleted ( long userId, int userIndex, KinectGestures gesture, KinectInterop joint, Vector3 screenPos ) : bool

Invoked if a gesture is completed.

GestureInProgress ( long userId, int userIndex, KinectGestures gesture, float progress, KinectInterop joint, Vector3 screenPos ) : void

Invoked when a gesture is in progress.

IsHiddenGesture ( ) : bool

Determines whether hidden gesture is detected.

IsSwipeLeft ( ) : bool

Determines whether swipe left is detected.

IsSwipeRight ( ) : bool

Determines whether swipe right is detected.

IsSwipeUp ( ) : bool

Determines whether swipe up is detected.

UserDetected ( long userId, int userIndex ) : void

Invoked when a new user is detected. Here you can start gesture tracking by invoking KinectManager.DetectGesture()-function.

UserLost ( long userId, int userIndex ) : void

Invoked when a user gets lost. All tracked gestures for this user are cleared automatically.

Private Methods

Method Description
Awake ( ) : void

Method Details

GestureCancelled() public method

Invoked if a gesture is cancelled.
public GestureCancelled ( long userId, int userIndex, KinectGestures gesture, KinectInterop joint ) : bool
userId long User ID
userIndex int User index
gesture KinectGestures Gesture type
joint KinectInterop Joint type
return bool

GestureCompleted() public method

Invoked if a gesture is completed.
public GestureCompleted ( long userId, int userIndex, KinectGestures gesture, KinectInterop joint, Vector3 screenPos ) : bool
userId long User ID
userIndex int User index
gesture KinectGestures Gesture type
joint KinectInterop Joint type
screenPos Vector3 Normalized viewport position
return bool

GestureInProgress() public method

Invoked when a gesture is in progress.
public GestureInProgress ( long userId, int userIndex, KinectGestures gesture, float progress, KinectInterop joint, Vector3 screenPos ) : void
userId long User ID
userIndex int User index
gesture KinectGestures Gesture type
progress float Gesture progress [0..1]
joint KinectInterop Joint type
screenPos Vector3 Normalized viewport position
return void

IsHiddenGesture() public method

Determines whether hidden gesture is detected.
public IsHiddenGesture ( ) : bool
return bool

IsSwipeLeft() public method

Determines whether swipe left is detected.
public IsSwipeLeft ( ) : bool
return bool

IsSwipeRight() public method

Determines whether swipe right is detected.
public IsSwipeRight ( ) : bool
return bool

IsSwipeUp() public method

Determines whether swipe up is detected.
public IsSwipeUp ( ) : bool
return bool

UserDetected() public method

Invoked when a new user is detected. Here you can start gesture tracking by invoking KinectManager.DetectGesture()-function.
public UserDetected ( long userId, int userIndex ) : void
userId long User ID
userIndex int User index
return void

UserLost() public method

Invoked when a user gets lost. All tracked gestures for this user are cleared automatically.
public UserLost ( long userId, int userIndex ) : void
userId long User ID
userIndex int User index
return void