C# Class Kinect.VisualGestureManager

Visual gesture manager is the component dealing with VGB gestures.
Inheritance: UnityEngine.MonoBehaviour
Mostrar archivo Open project: BrainProject/UnityTemp Class Usage Examples

Public Methods

Method Description
GetGestureAtIndex ( int i ) : string

Gets the gesture name at specified index, or empty string if the index is out of range.

GetGestureConfidence ( string gestureName ) : float

Gets the confidence of the specified discrete gesture, in range [0, 1].

GetGestureProgress ( string gestureName ) : float

Gets the progress of the specified continuous gesture, in range [0, 1].

GetGesturesCount ( ) : int

Gets the count of detected gestures.

GetGesturesList ( ) : List

Gets the list of detected gestures.

GetTrackedUserID ( ) : long

Gets the skeleton ID of the tracked user, or 0 if no user was associated with the gestures.

IsGestureCompleted ( string gestureName, bool bResetOnComplete ) : bool

Determines whether the specified discrete gesture is completed.

IsTrackingGesture ( string gestureName ) : bool

Determines whether the given gesture is in the list of detected gestures.

IsVisualGestureInitialized ( ) : bool

Determines whether the visual-gesture manager was successfully initialized.

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

Private Methods

Method Description
FinishVisualGestures ( ) : void
InitVisualGestures ( ) : bool
IsVisualGesturesAvailable ( bool &bNeedRestart ) : bool
UpdateVisualGestures ( long userId ) : bool

Method Details

GetGestureAtIndex() public method

Gets the gesture name at specified index, or empty string if the index is out of range.
public GetGestureAtIndex ( int i ) : string
i int The index
return string

GetGestureConfidence() public method

Gets the confidence of the specified discrete gesture, in range [0, 1].
public GetGestureConfidence ( string gestureName ) : float
gestureName string Gesture name
return float

GetGestureProgress() public method

Gets the progress of the specified continuous gesture, in range [0, 1].
public GetGestureProgress ( string gestureName ) : float
gestureName string Gesture name
return float

GetGesturesCount() public method

Gets the count of detected gestures.
public GetGesturesCount ( ) : int
return int

GetGesturesList() public method

Gets the list of detected gestures.
public GetGesturesList ( ) : List
return List

GetTrackedUserID() public method

Gets the skeleton ID of the tracked user, or 0 if no user was associated with the gestures.
public GetTrackedUserID ( ) : long
return long

IsGestureCompleted() public method

Determines whether the specified discrete gesture is completed.
public IsGestureCompleted ( string gestureName, bool bResetOnComplete ) : bool
gestureName string Gesture name
bResetOnComplete bool If set to true, resets the gesture state.
return bool

IsTrackingGesture() public method

Determines whether the given gesture is in the list of detected gestures.
public IsTrackingGesture ( string gestureName ) : bool
gestureName string Gesture name.
return bool

IsVisualGestureInitialized() public method

Determines whether the visual-gesture manager was successfully initialized.
public IsVisualGestureInitialized ( ) : bool
return bool

OnDestroy() public method

public OnDestroy ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void