Class responsible for tracking gestures. See TrackerSetup for example of how to set up instance. More...
Public Member Functions | |
| void | Awake () |
| void | Update () |
| Dictionary< string, Gesture > | GetGestureMap () |
| Get the Dictionary storing Gestures and names. More... | |
| Normalizer | GetViewNormalizer () |
| Get the data normalizer used by this monitor More... | |
| void | SetViewNormalizer (Normalizer norm) |
| Sets the normalizer used for pre-processing the datapoints before the individual gestures' normaization takes place. More... | |
| GTransformBuffer | GetDataBuffer () |
| Get the data buffer used by this monitor More... | |
| void | AddGesture (string name, Gesture g) |
| Add a new Gesture to be tracked More... | |
| void | SetTrackGesture (string gname, bool enabled) |
| Set the tracking state for a single Gesture More... | |
| void | SetTrackGesture (List< string > names, bool enabled) |
| Set the tracking state for a list of Gestures More... | |
| void | SetTrackAllGestures (bool enabled) |
| Set the tracking state for all Gestures More... | |
| void | AddGestureCompleteCallback (UnityAction< GestureMetaData > eve) |
| Add an event listener for when a user completes a valid Gesture More... | |
| void | RemoveGestureCompleteCallback (UnityAction< GestureMetaData > eve) |
| Remove an event listener for when a user completes a valid Gesture More... | |
| void | RemoveAllGestureCompleteCallbacks () |
| Remove all event listeners for when a user completes a valid Gesture More... | |
| void | AddGestureFailedCallback (UnityAction< GestureMetaData > eve) |
| Add an event listener for when a user fails to complete a valid Gesture More... | |
| void | RemoveGestureFailedCallback (UnityAction< GestureMetaData > eve) |
| Remove an event listener for when a user fails to complete a valid Gesture More... | |
| void | RemoveAllGestureFailedCallbacks () |
| Remove all event listeners for when a user fails to complete a valid Gesture More... | |
| void | AddGestureStartCallback (UnityAction eve) |
| Add an event listener for when a user starts drawing a Gesture More... | |
| void | RemoveGestureStartCallback (UnityAction eve) |
| Remove an event listeners for when a user starts drawing a Gesture More... | |
| void | RemoveAllGestureStartCallbacks () |
| Remove all event listeners for when a user starts drawing a Gesture More... | |
| void | SetMaxBufferSize (int size) |
| Set the max capacity of the transform buffer More... | |
| void | SetBufferWrap (bool circular) |
| Set whether the buffer should act as a standard array or a circular array More... | |
| void | ClearBuffer () |
| Clear the buffer of all Transforms and erase all positions from the attached LineRenderer More... | |
Public Attributes | |
| LineRenderer | lineRenderer |
| A LineRenderer used to visualize the gestures during and after gesture creation. More... | |
| IController | controller |
| The IController that generates the GTransform objects for gesture recognition. More... | |
| int | bufferSize = 512 |
| The default buffer size for the GTransformBuffer class. More... | |
Class responsible for tracking gestures. See TrackerSetup for example of how to set up instance.
|
inline |
|
inline |
Add an event listener for when a user completes a valid Gesture
| eve |
|
inline |
Add an event listener for when a user fails to complete a valid Gesture
| eve |
|
inline |
Add an event listener for when a user starts drawing a Gesture
|
inline |
|
inline |
Clear the buffer of all Transforms and erase all positions from the attached LineRenderer
|
inline |
Get the data buffer used by this monitor
|
inline |
|
inline |
Get the data normalizer used by this monitor
|
inline |
Remove all event listeners for when a user completes a valid Gesture
|
inline |
Remove all event listeners for when a user fails to complete a valid Gesture
|
inline |
Remove all event listeners for when a user starts drawing a Gesture
|
inline |
Remove an event listener for when a user completes a valid Gesture
| eve |
|
inline |
Remove an event listener for when a user fails to complete a valid Gesture
| eve |
|
inline |
Remove an event listeners for when a user starts drawing a Gesture
|
inline |
Set whether the buffer should act as a standard array or a circular array
| circular | True if the buffer should wrap, False otherwise |
|
inline |
Set the max capacity of the transform buffer
| size | Set the number of GTransforms that the buffer can hold. Default is 512 |
|
inline |
|
inline |
|
inline |
|
inline |
Sets the normalizer used for pre-processing the datapoints before the individual gestures' normaization takes place.
| norm |
|
inline |
| int Gestures.GestureMonitor.bufferSize = 512 |
The default buffer size for the GTransformBuffer class.
| IController Gestures.GestureMonitor.controller |
The IController that generates the GTransform objects for gesture recognition.
| LineRenderer Gestures.GestureMonitor.lineRenderer |
A LineRenderer used to visualize the gestures during and after gesture creation.
1.8.6