C# Класс Kinect.VisualGestureManager

Visual gesture manager is the component dealing with VGB gestures.
Наследование: UnityEngine.MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
FinishVisualGestures ( ) : void
InitVisualGestures ( ) : bool
IsVisualGesturesAvailable ( bool &bNeedRestart ) : bool
UpdateVisualGestures ( long userId ) : bool

Описание методов

GetGestureAtIndex() публичный Метод

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
Результат string

GetGestureConfidence() публичный Метод

Gets the confidence of the specified discrete gesture, in range [0, 1].
public GetGestureConfidence ( string gestureName ) : float
gestureName string Gesture name
Результат float

GetGestureProgress() публичный Метод

Gets the progress of the specified continuous gesture, in range [0, 1].
public GetGestureProgress ( string gestureName ) : float
gestureName string Gesture name
Результат float

GetGesturesCount() публичный Метод

Gets the count of detected gestures.
public GetGesturesCount ( ) : int
Результат int

GetGesturesList() публичный Метод

Gets the list of detected gestures.
public GetGesturesList ( ) : List
Результат List

GetTrackedUserID() публичный Метод

Gets the skeleton ID of the tracked user, or 0 if no user was associated with the gestures.
public GetTrackedUserID ( ) : long
Результат long

IsGestureCompleted() публичный Метод

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.
Результат bool

IsTrackingGesture() публичный Метод

Determines whether the given gesture is in the list of detected gestures.
public IsTrackingGesture ( string gestureName ) : bool
gestureName string Gesture name.
Результат bool

IsVisualGestureInitialized() публичный Метод

Determines whether the visual-gesture manager was successfully initialized.
public IsVisualGestureInitialized ( ) : bool
Результат bool

OnDestroy() публичный Метод

public OnDestroy ( ) : void
Результат void

Start() публичный Метод

public Start ( ) : void
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void