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

FeatureStateProvider Class

A helper class that keeps track of the current state of features, quantized into corresponding FeatureStates.

Constructors

FeatureStateProvider ( valueReader , featureToInt , timeProvider )
Signature
Oculus.Interaction.PoseDetection.FeatureStateProvider< TFeature, TFeatureState >.FeatureStateProvider(Func< TFeature, float?> valueReader, Func< TFeature, int > featureToInt, Func< float > timeProvider)
Parameters
valueReader: Func< TFeature, float?>
featureToInt: Func< TFeature, int >
timeProvider: Func< float >

Properties

LastUpdatedFrameId : int
[Get][Set]
This should be updated with current value of the input data frameId.
It is used to determine if values need to be recalculated.
Signature
int Oculus.Interaction.PoseDetection.FeatureStateProvider< TFeature, TFeatureState >.LastUpdatedFrameId

Methods

GetCurrentFeatureState ( feature )
Signature
TFeatureState Oculus.Interaction.PoseDetection.FeatureStateProvider< TFeature, TFeatureState >.GetCurrentFeatureState(TFeature feature)
Parameters
feature: TFeature
Returns
TFeatureState
InitializeThresholds ( featureThresholds )
Signature
void Oculus.Interaction.PoseDetection.FeatureStateProvider< TFeature, TFeatureState >.InitializeThresholds(IFeatureThresholds< TFeature, TFeatureState > featureThresholds)
Parameters
featureThresholds: IFeatureThresholds< TFeature, TFeatureState >
Returns
void
ReadTouchedFeatureStates ()
Signature
void Oculus.Interaction.PoseDetection.FeatureStateProvider< TFeature, TFeatureState >.ReadTouchedFeatureStates()
Returns
void
ValidateFeatureThresholds ( featureStateThresholdsList )
Signature
IFeatureStateThresholds< TFeature, TFeatureState >[] Oculus.Interaction.PoseDetection.FeatureStateProvider< TFeature, TFeatureState >.ValidateFeatureThresholds(IReadOnlyList< IFeatureStateThresholds< TFeature, TFeatureState > > featureStateThresholdsList)
Parameters
featureStateThresholdsList: IReadOnlyList< IFeatureStateThresholds< TFeature, TFeatureState > >
Returns
IFeatureStateThresholds< TFeature, TFeatureState >[]