C# 클래스 CubeGestureListener, Kick996

상속: MonoBehaviour, KinectGestures.GestureListenerInterface
파일 보기 프로젝트 열기: wyj16340227/Kick996 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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