C# Class CubeGestureListener, Kick996

Inheritance: MonoBehaviour, KinectGestures.GestureListenerInterface
Afficher le fichier Open project: wyj16340227/Kick996 Class Usage Examples

Méthodes publiques

Свойство Type Description
LeanBack bool
LeanForward bool
LeanLeft bool
LeanRight bool
detectSense int

Méthodes publiques

Méthode Description
Awake ( ) : void
GestureCancelled ( long userId, int userIndex, KinectGestures.Gestures gesture, KinectInterop.JointType joint ) : bool

Invoked if a gesture is cancelled.

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

Invoked if a gesture is completed.

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

Invoked when a gesture is in progress.

IsSwipeLeft ( ) : bool

Determines whether swipe left is detected.

IsSwipeRight ( ) : bool

Determines whether swipe right is detected.

IsSwipeUp ( ) : bool

Determines whether swipe up is detected.

IsTpose ( ) : bool
Start ( ) : void
Update ( ) : void
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

Méthode Description
OnGUI ( ) : void

Method Details

Awake() public méthode

public Awake ( ) : void
Résultat void

GestureCancelled() public méthode

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

GestureCompleted() public méthode

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

GestureInProgress() public méthode

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

IsSwipeLeft() public méthode

Determines whether swipe left is detected.
public IsSwipeLeft ( ) : bool
Résultat bool

IsSwipeRight() public méthode

Determines whether swipe right is detected.
public IsSwipeRight ( ) : bool
Résultat bool

IsSwipeUp() public méthode

Determines whether swipe up is detected.
public IsSwipeUp ( ) : bool
Résultat bool

IsTpose() public méthode

public IsTpose ( ) : bool
Résultat bool

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

UserDetected() public méthode

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
Résultat void

UserLost() public méthode

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
Résultat void

Property Details

LeanBack public_oe property

public bool LeanBack
Résultat bool

LeanForward public_oe property

public bool LeanForward
Résultat bool

LeanLeft public_oe property

public bool LeanLeft
Résultat bool

LeanRight public_oe property

public bool LeanRight
Résultat bool

detectSense public_oe property

public int detectSense
Résultat int