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.

Overview

Properties

int
This should be updated with current value of the input data frameId.

Public Member Functions

FeatureStateProvider
( Func< TFeature, float?> valueReader,
Func< TFeature, int > featureToInt,
Func< float > timeProvider )
void
InitializeThresholds
( IFeatureThresholds< TFeature, TFeatureState > featureThresholds )
IFeatureStateThresholds< TFeature, TFeatureState >[]
ValidateFeatureThresholds
( IReadOnlyList< IFeatureStateThresholds< TFeature, TFeatureState > > featureStateThresholdsList )
TFeatureState
GetCurrentFeatureState
( TFeature feature )
void

Details

Detailed Description

Others
TFeature
An enum containing all features that can be tracked.
TFeatureState
An enum of all the possible states of each member of the TFeature param. The name of each member of this enum must be prefixed with one of the values of TFeature.

Properties

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

Member Functions

Oculus.Interaction.PoseDetection.FeatureStateProvider< TFeature, TFeatureState >.FeatureStateProvider
( Func< TFeature, float?> valueReader,
Func< TFeature, int > featureToInt,
Func< float > timeProvider )
No description available.
void Oculus.Interaction.PoseDetection.FeatureStateProvider< TFeature, TFeatureState >.InitializeThresholds
( IFeatureThresholds< TFeature, TFeatureState > featureThresholds )
No description available.
IFeatureStateThresholds< TFeature, TFeatureState >[] Oculus.Interaction.PoseDetection.FeatureStateProvider< TFeature, TFeatureState >.ValidateFeatureThresholds
( IReadOnlyList< IFeatureStateThresholds< TFeature, TFeatureState > > featureStateThresholdsList )
No description available.
TFeatureState Oculus.Interaction.PoseDetection.FeatureStateProvider< TFeature, TFeatureState >.GetCurrentFeatureState
( TFeature feature )
No description available.
void Oculus.Interaction.PoseDetection.FeatureStateProvider< TFeature, TFeatureState >.ReadTouchedFeatureStates ( )
No description available.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon