Aracılığıyla paylaş


PalmPoseListExtension.Add Yöntem

Tanım

Aşırı Yüklemeler

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

ve girişi orientationhanddirection tarafından tanımlanan yeni PalmPose bir öğesini mevcut bir koleksiyona poseConstraintsekler.

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

ve girişi orientationhandContextdirection tarafından tanımlanan yeni PalmPose bir öğesini var olan bir koleksiyona poseConstraintsekler.

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

ve girişi orientationhanddirection tarafından tanımlanan yeni PalmPose bir öğesini mevcut bir koleksiyona poseConstraintsekler.

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);

Parametreler

poseConstraints
ICollection<PoseConstraint>

Bu genellikle mevcut bir nesne koleksiyonu PoseConstraint olacaktır PoseConstraints.

hand
Hand

Yeni PalmPoseöğesini oluşturmak için hangi elin kullanılacağını belirtir.

direction
PoseDirection

Direction Yeni PalmPoseöğesinin öğesini belirtir.

orientation
PoseDirection

Orientation Yeni PalmPoseöğesinin öğesini belirtir.

Açıklamalar

Bu uzantı yöntemi, mevcut HandPose bir uzantıyı yeni PalmPose bir kısıtlamayla artırmanın kullanışlı bir yoludur:

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

Şunlara uygulanır

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

ve girişi orientationhandContextdirection tarafından tanımlanan yeni PalmPose bir öğesini var olan bir koleksiyona poseConstraintsekler.

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);

Parametreler

poseConstraints
ICollection<PoseConstraint>

Bu genellikle mevcut bir nesne koleksiyonu PoseConstraint olacaktır PoseConstraints.

handContext
HandContext

Yeni PalmPoseöğesini oluşturmak için nelerin HandContext kullanılacağını belirtir.

direction
PoseDirection

Direction Yeni PalmPoseöğesinin öğesini belirtir.

orientation
PoseDirection

Orientation Yeni PalmPoseöğesinin öğesini belirtir.

Açıklamalar

Bu uzantı yöntemi, mevcut HandPose bir uzantıyı yeni PalmPose bir kısıtlamayla artırmanın kullanışlı bir yoludur:

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

Şunlara uygulanır