FingerFeatureStateProvider Class
Interprets finger feature values using FingerShapes and uses the given FingerFeatureStateThresholds to quantize these values into states.
To avoid rapid fluctuations at the edges of two states, this class uses the calculated feature state from the previous frame and the given state thresholds to apply a buffer between state transition edges.
void SetTimeProvider ( Func< float > timeProvider )
Sets a function that returns the current time in seconds.
bool GetCurrentState ( HandFinger finger,
FingerFeature fingerFeature,
out string currentState )
float? GetFeatureValue ( HandFinger finger,
FingerFeature fingerFeature )
Returns the current value of the feature.
If the finger joints are not populated with valid data (for instance, due to a disconnected hand), the method will return NaN.
bool IsStateActive ( HandFinger finger,
FingerFeature feature,
FeatureStateActiveMode mode,
string stateId )
void InjectAllFingerFeatureStateProviderbool disableProactiveEvaluation )
void InjectFingerStateThresholds
void InjectDisableProactiveEvaluation ( bool disableProactiveEvaluation )
void InjectOptionalTimeProvider ( Func< float > timeProvider )
virtual void OnEnable ( )
virtual void OnDisable ( )