FingerPose Constructors

Definition

Overloads

FingerPose()

Creates a blank FingerPose constraint. In order to obtain a meaningful constraint, the values of Context, Direction and\or Flexion would have to be set manually.

FingerPose(Finger, PoseDirection)

Creates a new FingerPose constraint which requires finger to be aligned with direction.

FingerPose(FingersContext, PoseDirection)

Creates a new FingerPose constraint which requires the fingers indicated by fingersContext to be aligned with direction. When an AnyFingerContext is passed for the fingersContext argument, the resulting constraint will require at least one finger mentioned in fingersContext to be aligned with direction.

FingerPose(IEnumerable<Finger>, PoseDirection)

Creates a new FingerPose constraint which requires each of the given fingers to be aligned with direction.

FingerPose(Finger, FingerFlexion, PoseDirection)

Creates a new FingerPose constraint which requires finger to attain the specified flexion state and to be aligned with direction.

FingerPose(FingersContext, FingerFlexion, PoseDirection)

Creates a new FingerPose constraint which requires the fingers indicated by fingersContext to attain the specified flexion state and to be aligned with the given direction. When an AnyFingerContext is passed for the fingersContext argument, the resulting constraint will require least one finger mentioned in fingersContext to comply with flexion and direction.

FingerPose(IEnumerable<Finger>, FingerFlexion, PoseDirection)

Creates a new FingerPose constraint which requires each of the given fingers to attain the specified flexion state and to be aligned with the given direction.

FingerPose()

Creates a blank FingerPose constraint. In order to obtain a meaningful constraint, the values of Context, Direction and\or Flexion would have to be set manually.

public FingerPose ();

Applies to

FingerPose(Finger, PoseDirection)

Creates a new FingerPose constraint which requires finger to be aligned with direction.

public FingerPose (Microsoft.Gestures.Finger finger, Microsoft.Gestures.PoseDirection direction);

Parameters

finger
Finger

The finger participating in the FingerPose constraint.

direction
PoseDirection

The PoseDirection that finger is required to be aligned with.

Applies to

FingerPose(FingersContext, PoseDirection)

Creates a new FingerPose constraint which requires the fingers indicated by fingersContext to be aligned with direction. When an AnyFingerContext is passed for the fingersContext argument, the resulting constraint will require at least one finger mentioned in fingersContext to be aligned with direction.

public FingerPose (Microsoft.Gestures.FingersContext fingersContext, Microsoft.Gestures.PoseDirection direction);

Parameters

fingersContext
FingersContext

Specifies the FingersContext of the fingers participating in the FingerPose constraint.

direction
PoseDirection

The PoseDirection that is required of the fingers indicated by fingersContext.

Remarks

This syntax is particularly useful to specify a constraint which can be satisfied by any subset of a given set of fingers, using AnyFingerContext. For example:

// the following pose will be triggered when at least one of the thumb, index or middle fingers is pointing down
var myPose = new HandPose("MyPose", new FingerPose(new AnyFingerContext(new[] {Finger.Thumb, Finger.Index, Finger.Middle}, PoseDirection.Down)));

Applies to

FingerPose(IEnumerable<Finger>, PoseDirection)

Creates a new FingerPose constraint which requires each of the given fingers to be aligned with direction.

public FingerPose (System.Collections.Generic.IEnumerable<Microsoft.Gestures.Finger> fingers, Microsoft.Gestures.PoseDirection direction);

Parameters

fingers
System.Collections.Generic.IEnumerable<Finger>

An enumeration of all the fingers which will participate in the FingerPose constraint.

direction
PoseDirection

The PoseDirection that each of the fingers is required to be aligned with.

Applies to

FingerPose(Finger, FingerFlexion, PoseDirection)

Creates a new FingerPose constraint which requires finger to attain the specified flexion state and to be aligned with direction.

public FingerPose (Microsoft.Gestures.Finger finger, Microsoft.Gestures.FingerFlexion flexion, Microsoft.Gestures.PoseDirection direction = Microsoft.Gestures.PoseDirection.Undefined);

Parameters

finger
Finger

The finger participating in the FingerPose constraint.

flexion
FingerFlexion

The FingerFlexion state (the degree to which a finger is open or folded) imposed on finger.

direction
PoseDirection

The PoseDirection that finger is required to be aligned with.

Applies to

FingerPose(FingersContext, FingerFlexion, PoseDirection)

Creates a new FingerPose constraint which requires the fingers indicated by fingersContext to attain the specified flexion state and to be aligned with the given direction. When an AnyFingerContext is passed for the fingersContext argument, the resulting constraint will require least one finger mentioned in fingersContext to comply with flexion and direction.

public FingerPose (Microsoft.Gestures.FingersContext fingersContext, Microsoft.Gestures.FingerFlexion flexion, Microsoft.Gestures.PoseDirection direction = Microsoft.Gestures.PoseDirection.Undefined);

Parameters

fingersContext
FingersContext

Specifies the FingersContext of the fingers participating in the FingerPose constraint.

flexion
FingerFlexion

The FingerFlexion state (the degree to which a finger is open or folded) that fingers indicated by fingersContext need to comply with.

direction
PoseDirection

The PoseDirection that is required of the fingers indicated by fingersContext.

Remarks

This syntax is particularly useful to specify a constraint which can be satisfied by any subset of a given set of fingers, using AnyFingerContext. For example:

// the following pose will be triggered when at least one of the thumb, index or middle fingers is folded
var myPose = new HandPose("MyPose", new FingerPose(new AnyFingerContext(new[] {Finger.Thumb, Finger.Index, Finger.Middle}, FingerFlexion.Folded)));

Applies to

FingerPose(IEnumerable<Finger>, FingerFlexion, PoseDirection)

Creates a new FingerPose constraint which requires each of the given fingers to attain the specified flexion state and to be aligned with the given direction.

public FingerPose (System.Collections.Generic.IEnumerable<Microsoft.Gestures.Finger> fingers, Microsoft.Gestures.FingerFlexion flexion, Microsoft.Gestures.PoseDirection direction = Microsoft.Gestures.PoseDirection.Undefined);

Parameters

fingers
System.Collections.Generic.IEnumerable<Finger>

An enumeration of all the fingers which will participate in the FingerPose constraint.

flexion
FingerFlexion

The FingerFlexion state (the degree to which a finger is open or folded) imposed on each of the given fingers.

direction
PoseDirection

The PoseDirection that each of the fingers is required to be aligned with.

Applies to