다음을 통해 공유


PalmPoseListExtension.Add 메서드

정의

오버로드

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

입력 orientationhanddirection 으로 설명된 새 PalmPose 항목을 기존 컬렉션poseConstraints에 추가합니다.

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

입력 orientationhandContextdirection 및 기존 컬렉션에 설명된 새 PalmPose 항목을 poseConstraints추가합니다.

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

입력 orientationhanddirection 으로 설명된 새 PalmPose 항목을 기존 컬렉션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);

매개 변수

poseConstraints
ICollection<PoseConstraint>

개체의 PoseConstraint 기존 컬렉션입니다. 이 컬렉션은 종종 다음과 같습니다 PoseConstraints.

hand
Hand

PalmPose을 만드는 데 사용할 손을 지정합니다.

direction
PoseDirection

PalmPose.Direction의 값을 지정합니다.

orientation
PoseDirection

PalmPose.Orientation의 값을 지정합니다.

설명

이 확장 메서드는 새 PalmPose 제약 조건으로 기존 항목을 보강하는 HandPose 편리한 방법입니다.

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

적용 대상

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

입력 orientationhandContextdirection 및 기존 컬렉션에 설명된 새 PalmPose 항목을 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);

매개 변수

poseConstraints
ICollection<PoseConstraint>

개체의 PoseConstraint 기존 컬렉션입니다. 이 컬렉션은 종종 다음과 같습니다 PoseConstraints.

handContext
HandContext

PalmPose를 만드는 데 사용할 내용을 지정 HandContext 합니다.

direction
PoseDirection

PalmPose.Direction의 값을 지정합니다.

orientation
PoseDirection

PalmPose.Orientation의 값을 지정합니다.

설명

이 확장 메서드는 새 PalmPose 제약 조건으로 기존 항목을 보강하는 HandPose 편리한 방법입니다.

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

적용 대상