PalmPoseListExtension.Add Method

Definition

Overloads

Add(ICollection<PoseConstraint>, Hand, PoseDirection, PoseDirection)

Adds a new PalmPose described by input hand, direction and orientation to an existing collection poseConstraints.

Add(ICollection<PoseConstraint>, HandContext, PoseDirection, PoseDirection)

Adds a new PalmPose described by the input handContext, direction and orientation to an existing collection poseConstraints.

Add(ICollection<PoseConstraint>, Hand, PoseDirection, PoseDirection)

Adds a new PalmPose described by input hand, direction and orientation to an existing collection poseConstraints.

public static void Add (this System.Collections.Generic.ICollection<Microsoft.Gestures.PoseConstraint> poseConstraints, Microsoft.Gestures.Hand hand, Microsoft.Gestures.PoseDirection direction = Microsoft.Gestures.PoseDirection.Undefined, Microsoft.Gestures.PoseDirection orientation = Microsoft.Gestures.PoseDirection.Undefined);

Parameters

poseConstraints
System.Collections.Generic.ICollection<PoseConstraint>

An existing collection of PoseConstraint objects, this will often be PoseConstraints.

hand
Hand

Specifies which hand will be used to create the new PalmPose.

direction
PoseDirection

Specifies the Direction of the new PalmPose.

orientation
PoseDirection

Specifies the Orientation of the new PalmPose.

Remarks

This extension method is a handy way to augment an existing HandPose with a new PalmPose constraint:

var handPose = new HandPose("MyPose");
handPose.PoseConstraints.Add(Hand.RightHand, PoseDirection.Forward, PoseDirection.Up);

Applies to

Add(ICollection<PoseConstraint>, HandContext, PoseDirection, PoseDirection)

Adds a new PalmPose described by the input handContext, direction and orientation to an existing collection poseConstraints.

public static void Add (this System.Collections.Generic.ICollection<Microsoft.Gestures.PoseConstraint> poseConstraints, Microsoft.Gestures.HandContext handContext, Microsoft.Gestures.PoseDirection direction, Microsoft.Gestures.PoseDirection orientation = Microsoft.Gestures.PoseDirection.Undefined);

Parameters

poseConstraints
System.Collections.Generic.ICollection<PoseConstraint>

An existing collection of PoseConstraint objects, this will often be PoseConstraints.

handContext
HandContext

Specifies what HandContext will be used to create the new PalmPose.

direction
PoseDirection

Specifies the Direction of the new PalmPose.

orientation
PoseDirection

Specifies the Orientation of the new PalmPose.

Remarks

This extension method is a handy way to augment an existing HandPose with a new PalmPose constraint:

var handPose = new HandPose("MyPose");
handPose.PoseConstraints.Add(new AnyHandContext(), PoseDirection.Forward, PoseDirection.Up);

Applies to