C# Class Kinect.VisualGestureManager

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

Méthodes publiques

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

Méthode Description
FinishVisualGestures ( ) : void
InitVisualGestures ( ) : bool
IsVisualGesturesAvailable ( bool &bNeedRestart ) : bool
UpdateVisualGestures ( long userId ) : bool

Method Details

GetGestureAtIndex() public méthode

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
Résultat string

GetGestureConfidence() public méthode

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

GetGestureProgress() public méthode

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

GetGesturesCount() public méthode

Gets the count of detected gestures.
public GetGesturesCount ( ) : int
Résultat int

GetGesturesList() public méthode

Gets the list of detected gestures.
public GetGesturesList ( ) : List
Résultat List

GetTrackedUserID() public méthode

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

IsGestureCompleted() public méthode

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.
Résultat bool

IsTrackingGesture() public méthode

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

IsVisualGestureInitialized() public méthode

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

OnDestroy() public méthode

public OnDestroy ( ) : void
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void