PalmPoseListExtension.Add Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Aşırı Yüklemeler
Add(ICollection<PoseConstraint>, Hand, PoseDirection, PoseDirection) |
ve girişi |
Add(ICollection<PoseConstraint>, HandContext, PoseDirection, PoseDirection) |
ve girişi |
Add(ICollection<PoseConstraint>, Hand, PoseDirection, PoseDirection)
ve girişi orientation
hand
direction
tarafından tanımlanan yeni PalmPose bir öğesini mevcut bir koleksiyona poseConstraints
ekler.
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.
- direction
- PoseDirection
- 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 orientation
handContext
direction
tarafından tanımlanan yeni PalmPose bir öğesini var olan bir koleksiyona poseConstraints
ekler.
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
- 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);