C# Class Kinect.InteractionManager

Interaction manager is the component that deals with hand interactions.
Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: BrainProject/UnityTemp Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
HandStateToEvent ( KinectInterop handState, HandEventType lastEventType ) : HandEventType

Method Details

GetCursorPosition() public méthode

Gets the current cursor normalized viewport position.
public GetCursorPosition ( ) : Vector3
Résultat Vector3

GetLastLeftHandEvent() public méthode

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

GetLastRightHandEvent() public méthode

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

GetLeftHandClickProgress() public méthode

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

GetLeftHandEvent() public méthode

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

GetLeftHandScreenPos() public méthode

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

GetRightHandClickProgress() public méthode

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

GetRightHandEvent() public méthode

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

GetRightHandScreenPos() public méthode

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

GetUserID() public méthode

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

IsInteractionInited() public méthode

Determines whether the InteractionManager was successfully initialized.
public IsInteractionInited ( ) : bool
Résultat bool

IsLeftHandClickDetected() public méthode

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

IsLeftHandPress() public méthode

Determines whether the left hand is pressing.
public IsLeftHandPress ( ) : bool
Résultat bool

IsLeftHandPrimary() public méthode

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

IsRightHandClickDetected() public méthode

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

IsRightHandPress() public méthode

Determines whether the right hand is pressing.
public IsRightHandPress ( ) : bool
Résultat bool

IsRightHandPrimary() public méthode

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

OnDestroy() public méthode

public OnDestroy ( ) : void
Résultat void

OnGUI() public méthode

public OnGUI ( ) : void
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void