C# Class Kinect.InteractionManager

Interaction manager is the component that deals with hand interactions.
Inheritance: UnityEngine.MonoBehaviour
ファイルを表示 Open project: BrainProject/UnityTemp Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
HandStateToEvent ( KinectInterop handState, HandEventType lastEventType ) : HandEventType

Method Details

GetCursorPosition() public method

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

GetLastLeftHandEvent() public method

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

GetLastRightHandEvent() public method

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

GetLeftHandClickProgress() public method

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

GetLeftHandEvent() public method

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

GetLeftHandScreenPos() public method

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

GetRightHandClickProgress() public method

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

GetRightHandEvent() public method

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

GetRightHandScreenPos() public method

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

GetUserID() public method

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

IsInteractionInited() public method

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

IsLeftHandClickDetected() public method

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

IsLeftHandPress() public method

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

IsLeftHandPrimary() public method

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

IsRightHandClickDetected() public method

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

IsRightHandPress() public method

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

IsRightHandPrimary() public method

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

OnDestroy() public method

public OnDestroy ( ) : void
return void

OnGUI() public method

public OnGUI ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void