C# Класс CubeGestureListener, Kick996

Наследование: MonoBehaviour, KinectGestures.GestureListenerInterface
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
LeanBack bool
LeanForward bool
LeanLeft bool
LeanRight bool
detectSense int

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
OnGUI ( ) : void

Описание методов

Awake() публичный Метод

public Awake ( ) : void
Результат void

GestureCancelled() публичный Метод

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
Результат bool

GestureCompleted() публичный Метод

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
Результат bool

GestureInProgress() публичный Метод

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
Результат void

IsSwipeLeft() публичный Метод

Determines whether swipe left is detected.
public IsSwipeLeft ( ) : bool
Результат bool

IsSwipeRight() публичный Метод

Determines whether swipe right is detected.
public IsSwipeRight ( ) : bool
Результат bool

IsSwipeUp() публичный Метод

Determines whether swipe up is detected.
public IsSwipeUp ( ) : bool
Результат bool

IsTpose() публичный Метод

public IsTpose ( ) : bool
Результат bool

Start() публичный Метод

public Start ( ) : void
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void

UserDetected() публичный Метод

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
Результат void

UserLost() публичный Метод

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
Результат void

Описание свойств

LeanBack публичное свойство

public bool LeanBack
Результат bool

LeanForward публичное свойство

public bool LeanForward
Результат bool

LeanLeft публичное свойство

public bool LeanLeft
Результат bool

LeanRight публичное свойство

public bool LeanRight
Результат bool

detectSense публичное свойство

public int detectSense
Результат int