API reference
API reference
Select your platform
No SDKs available
No versions available

FingerFeatureStateProvider Class

Extends MonoBehaviour
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.

Protected Fields

_started : bool
Signature
bool Oculus.Interaction.PoseDetection.FingerFeatureStateProvider._started

Properties

DefaultFingerShapes : FingerShapes
[Get]
Signature
FingerShapes Oculus.Interaction.PoseDetection.FingerFeatureStateProvider.DefaultFingerShapes
Hand : IHand
[Get]
Signature
IHand Oculus.Interaction.PoseDetection.FingerFeatureStateProvider.Hand

Protected Methods

Awake ()
Signature
virtual void Oculus.Interaction.PoseDetection.FingerFeatureStateProvider.Awake()
Returns
void
OnDisable ()
Signature
virtual void Oculus.Interaction.PoseDetection.FingerFeatureStateProvider.OnDisable()
Returns
void
OnEnable ()
Signature
virtual void Oculus.Interaction.PoseDetection.FingerFeatureStateProvider.OnEnable()
Returns
void
Start ()
Signature
virtual void Oculus.Interaction.PoseDetection.FingerFeatureStateProvider.Start()
Returns
void

Methods

GetCurrentState ( finger , fingerFeature , currentState )
Signature
bool Oculus.Interaction.PoseDetection.FingerFeatureStateProvider.GetCurrentState(HandFinger finger, FingerFeature fingerFeature, out string currentState)
Parameters
finger: HandFinger
fingerFeature: FingerFeature
currentState: out string
Returns
bool
GetFeatureValue ( finger , 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.
Signature
float? Oculus.Interaction.PoseDetection.FingerFeatureStateProvider.GetFeatureValue(HandFinger finger, FingerFeature fingerFeature)
Parameters
finger: HandFinger
fingerFeature: FingerFeature
Returns
float?
GetValueProvider ( finger )
Signature
FingerShapes Oculus.Interaction.PoseDetection.FingerFeatureStateProvider.GetValueProvider(HandFinger finger)
Parameters
finger: HandFinger
InjectAllFingerFeatureStateProvider ( hand , fingerStateThresholds , fingerShapes , disableProactiveEvaluation )
Signature
void Oculus.Interaction.PoseDetection.FingerFeatureStateProvider.InjectAllFingerFeatureStateProvider(IHand hand, List< FingerStateThresholds > fingerStateThresholds, FingerShapes fingerShapes, bool disableProactiveEvaluation)
Parameters
hand: IHand
fingerStateThresholds: List< FingerStateThresholds >
fingerShapes: FingerShapes
disableProactiveEvaluation: bool
Returns
void
InjectDisableProactiveEvaluation ( disableProactiveEvaluation )
Signature
void Oculus.Interaction.PoseDetection.FingerFeatureStateProvider.InjectDisableProactiveEvaluation(bool disableProactiveEvaluation)
Parameters
disableProactiveEvaluation: bool
Returns
void
InjectFingerShapes ( fingerShapes )
Signature
void Oculus.Interaction.PoseDetection.FingerFeatureStateProvider.InjectFingerShapes(FingerShapes fingerShapes)
Parameters
fingerShapes: FingerShapes
Returns
void
InjectFingerStateThresholds ( fingerStateThresholds )
Signature
void Oculus.Interaction.PoseDetection.FingerFeatureStateProvider.InjectFingerStateThresholds(List< FingerStateThresholds > fingerStateThresholds)
Parameters
fingerStateThresholds: List< FingerStateThresholds >
Returns
void
InjectHand ( hand )
Signature
void Oculus.Interaction.PoseDetection.FingerFeatureStateProvider.InjectHand(IHand hand)
Parameters
hand: IHand
Returns
void
InjectOptionalTimeProvider ( timeProvider )
Signature
void Oculus.Interaction.PoseDetection.FingerFeatureStateProvider.InjectOptionalTimeProvider(Func< float > timeProvider)
Parameters
timeProvider: Func< float >
Returns
void
IsStateActive ( finger , feature , mode , stateId )
Signature
bool Oculus.Interaction.PoseDetection.FingerFeatureStateProvider.IsStateActive(HandFinger finger, FingerFeature feature, FeatureStateActiveMode mode, string stateId)
Parameters
finger: HandFinger
feature: FingerFeature
mode: FeatureStateActiveMode
stateId: string
Returns
bool
SetTimeProvider ( timeProvider )
Sets a function that returns the current time in seconds.
Signature
void Oculus.Interaction.PoseDetection.FingerFeatureStateProvider.SetTimeProvider(Func< float > timeProvider)
Parameters
timeProvider: Func< float >
Returns
void

Inner Struct

FingerStateThresholds Struct

Fields

Finger : HandFinger
Signature
HandFinger Oculus.Interaction.PoseDetection.FingerFeatureStateProvider.FingerStateThresholds.Finger
Signature
FingerFeatureStateThresholds Oculus.Interaction.PoseDetection.FingerFeatureStateProvider.FingerStateThresholds.StateThresholds