C# 클래스 Kinect.InteractionManager

Interaction manager is the component that deals with hand interactions.
상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: BrainProject/UnityTemp 1 사용 예제들

공개 메소드들

메소드 설명
GetCursorPosition ( ) : Vector3

Gets the current cursor normalized viewport position.

GetLastLeftHandEvent ( ) : HandEventType

Gets the last detected left hand event (grip or release).

GetLastRightHandEvent ( ) : HandEventType

Gets the last detected right hand event (grip or release).

GetLeftHandClickProgress ( ) : float

Gets the left hand click progress, in range [0, 1].

GetLeftHandEvent ( ) : HandEventType

Gets the current left hand event (none, grip or release).

GetLeftHandScreenPos ( ) : Vector3

Gets the current normalized viewport position of the left hand, in range [0, 1].

GetRightHandClickProgress ( ) : float

Gets the right hand click progress, in range [0, 1].

GetRightHandEvent ( ) : HandEventType

Gets the current right hand event (none, grip or release).

GetRightHandScreenPos ( ) : Vector3

Gets the current normalized viewport position of the right hand, in range [0, 1].

GetUserID ( ) : long

Gets the current user ID, or 0 if no user is currently tracked.

IsInteractionInited ( ) : bool

Determines whether the InteractionManager was successfully initialized.

IsLeftHandClickDetected ( ) : bool

Determines whether a left hand click is detected, false otherwise.

IsLeftHandPress ( ) : bool

Determines whether the left hand is pressing.

IsLeftHandPrimary ( ) : bool

Determines whether the left hand is primary for the user.

IsRightHandClickDetected ( ) : bool

Determines whether a right hand click is detected, false otherwise.

IsRightHandPress ( ) : bool

Determines whether the right hand is pressing.

IsRightHandPrimary ( ) : bool

Determines whether the right hand is primary for the user.

OnDestroy ( ) : void
OnGUI ( ) : void
Start ( ) : void
Update ( ) : void

비공개 메소드들

메소드 설명
HandStateToEvent ( KinectInterop handState, HandEventType lastEventType ) : HandEventType

메소드 상세

GetCursorPosition() 공개 메소드

Gets the current cursor normalized viewport position.
public GetCursorPosition ( ) : Vector3
리턴 Vector3

GetLastLeftHandEvent() 공개 메소드

Gets the last detected left hand event (grip or release).
public GetLastLeftHandEvent ( ) : HandEventType
리턴 HandEventType

GetLastRightHandEvent() 공개 메소드

Gets the last detected right hand event (grip or release).
public GetLastRightHandEvent ( ) : HandEventType
리턴 HandEventType

GetLeftHandClickProgress() 공개 메소드

Gets the left hand click progress, in range [0, 1].
public GetLeftHandClickProgress ( ) : float
리턴 float

GetLeftHandEvent() 공개 메소드

Gets the current left hand event (none, grip or release).
public GetLeftHandEvent ( ) : HandEventType
리턴 HandEventType

GetLeftHandScreenPos() 공개 메소드

Gets the current normalized viewport position of the left hand, in range [0, 1].
public GetLeftHandScreenPos ( ) : Vector3
리턴 Vector3

GetRightHandClickProgress() 공개 메소드

Gets the right hand click progress, in range [0, 1].
public GetRightHandClickProgress ( ) : float
리턴 float

GetRightHandEvent() 공개 메소드

Gets the current right hand event (none, grip or release).
public GetRightHandEvent ( ) : HandEventType
리턴 HandEventType

GetRightHandScreenPos() 공개 메소드

Gets the current normalized viewport position of the right hand, in range [0, 1].
public GetRightHandScreenPos ( ) : Vector3
리턴 Vector3

GetUserID() 공개 메소드

Gets the current user ID, or 0 if no user is currently tracked.
public GetUserID ( ) : long
리턴 long

IsInteractionInited() 공개 메소드

Determines whether the InteractionManager was successfully initialized.
public IsInteractionInited ( ) : bool
리턴 bool

IsLeftHandClickDetected() 공개 메소드

Determines whether a left hand click is detected, false otherwise.
public IsLeftHandClickDetected ( ) : bool
리턴 bool

IsLeftHandPress() 공개 메소드

Determines whether the left hand is pressing.
public IsLeftHandPress ( ) : bool
리턴 bool

IsLeftHandPrimary() 공개 메소드

Determines whether the left hand is primary for the user.
public IsLeftHandPrimary ( ) : bool
리턴 bool

IsRightHandClickDetected() 공개 메소드

Determines whether a right hand click is detected, false otherwise.
public IsRightHandClickDetected ( ) : bool
리턴 bool

IsRightHandPress() 공개 메소드

Determines whether the right hand is pressing.
public IsRightHandPress ( ) : bool
리턴 bool

IsRightHandPrimary() 공개 메소드

Determines whether the right hand is primary for the user.
public IsRightHandPrimary ( ) : bool
리턴 bool

OnDestroy() 공개 메소드

public OnDestroy ( ) : void
리턴 void

OnGUI() 공개 메소드

public OnGUI ( ) : void
리턴 void

Start() 공개 메소드

public Start ( ) : void
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void