다음을 통해 공유


FingerPoseListExtension.Add 메서드

정의

오버로드

Add(ICollection<PoseConstraint>, Finger, PoseDirection)

에 맞춰야 하는 poseConstraintsFingerPose 제약 조건을 만들어 컬렉션에 추가합니다finger.direction

Add(ICollection<PoseConstraint>, FingersContext, PoseDirection)

표시된 손가락을 정렬direction해야 하는 새 FingerPose 제약 조건을 만들어 컬렉션에 fingersContext 추가 poseConstraints 합니다.

Add(ICollection<PoseConstraint>, IEnumerable<Finger>, PoseDirection)

각 제약 조건을 poseConstraints 정렬해야 하는 새 FingerPose 제약 조건을 만들어 컬렉션에 fingersdirection추가합니다.

Add(ICollection<PoseConstraint>, Finger, FingerFlexion, PoseDirection)

지정된 flexion 상태를 달성하고 정렬해야 finger 하는 새 FingerPose 제약 조건을 만들어 컬렉션에 추가 poseConstraintsdirection합니다.

Add(ICollection<PoseConstraint>, FingersContext, FingerFlexion, PoseDirection)

지정 flexion 한 상태를 달성하고 지정된 direction상태와 정렬하기 위해 표시된 fingersContext 손가락이 필요한 새 FingerPose 제약 조건을 만들어 컬렉션에 추가 poseConstraints 합니다.

Add(ICollection<PoseConstraint>, IEnumerable<Finger>, FingerFlexion, PoseDirection)

지정된 flexion 상태를 달성하고 지정된 direction상태에 맞춰야 하는 새 fingersFingerPose 제약 조건을 컬렉션에 만들고 추가 poseConstraints 합니다.

Add(ICollection<PoseConstraint>, Finger, PoseDirection)

에 맞춰야 하는 poseConstraintsFingerPose 제약 조건을 만들어 컬렉션에 추가합니다finger.direction

public static void Add (this System.Collections.Generic.ICollection<Microsoft.Gestures.PoseConstraint> poseConstraints, Microsoft.Gestures.Finger finger, Microsoft.Gestures.PoseDirection direction);

매개 변수

poseConstraints
ICollection<PoseConstraint>

개체의 PoseConstraint 기존 컬렉션입니다. 이 컬렉션은 종종 속성입니다 PoseConstraints .

finger
Finger

Finger 제약 조건에 참여하는 것입니다FingerPose.

direction
PoseDirection

정렬 PoseDirectionfinger 해야 합니다.

설명

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

var handPose = new HandPose("MyPose");
// will be satisfied when the index finger is pointing up
handPose.PoseConstraints.Add(Finger.Index, PoseDirection.Up); 

적용 대상

Add(ICollection<PoseConstraint>, FingersContext, PoseDirection)

표시된 손가락을 정렬direction해야 하는 새 FingerPose 제약 조건을 만들어 컬렉션에 fingersContext 추가 poseConstraints 합니다.

public static void Add (this System.Collections.Generic.ICollection<Microsoft.Gestures.PoseConstraint> poseConstraints, Microsoft.Gestures.FingersContext fingersContext, Microsoft.Gestures.PoseDirection direction);

매개 변수

poseConstraints
ICollection<PoseConstraint>

개체의 PoseConstraint 기존 컬렉션입니다. 이 컬렉션은 종종 속성입니다 PoseConstraints .

fingersContext
FingersContext

제약 조건에 FingersContext 참여하는 손가락의 크기를 FingerPose 지정합니다.

direction
PoseDirection

PoseDirection 로 표시된 fingersContext손가락에 필요한 값입니다.

설명

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

var handPose = new HandPose("MyPose");
// will be satisfied when at least one of the thumb, index or middle fingers is pointing right
handPose.PoseConstraints.Add(new AnyFingersContext(new[] {Finger.Thumb, Finger.Index, Finger.Middle}), PoseDirection.Right);

적용 대상

Add(ICollection<PoseConstraint>, IEnumerable<Finger>, PoseDirection)

각 제약 조건을 poseConstraints 정렬해야 하는 새 FingerPose 제약 조건을 만들어 컬렉션에 fingersdirection추가합니다.

public static void Add (this System.Collections.Generic.ICollection<Microsoft.Gestures.PoseConstraint> poseConstraints, System.Collections.Generic.IEnumerable<Microsoft.Gestures.Finger> fingers, Microsoft.Gestures.PoseDirection direction);

매개 변수

poseConstraints
ICollection<PoseConstraint>

개체의 PoseConstraint 기존 컬렉션입니다. 이 컬렉션은 종종 속성입니다 PoseConstraints .

fingers
IEnumerable<Finger>

제약 조건에 참여할 FingerPose 모든 손가락의 열거형입니다.

direction
PoseDirection

PoseDirection 각 항목은 fingers 정렬되어야 합니다.

설명

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

var handPose = new HandPose("MyPose");
// will be satisfied when the thumb, index and middle fingers are all pointing left
handPose.PoseConstraints.Add(new[] {Finger.Thumb, Finger.Index, Finger.Middle}, PoseDirection.Left);

적용 대상

Add(ICollection<PoseConstraint>, Finger, FingerFlexion, PoseDirection)

지정된 flexion 상태를 달성하고 정렬해야 finger 하는 새 FingerPose 제약 조건을 만들어 컬렉션에 추가 poseConstraintsdirection합니다.

public static void Add (this System.Collections.Generic.ICollection<Microsoft.Gestures.PoseConstraint> poseConstraints, Microsoft.Gestures.Finger finger, Microsoft.Gestures.FingerFlexion flexion, Microsoft.Gestures.PoseDirection direction = Microsoft.Gestures.PoseDirection.Undefined);

매개 변수

poseConstraints
ICollection<PoseConstraint>

개체의 PoseConstraint 기존 컬렉션입니다. 이 컬렉션은 종종 속성입니다 PoseConstraints .

finger
Finger

finger 제약 조건에 참여하는 것입니다FingerPose.

flexion
FingerFlexion

FingerFlexion 에 적용되는 finger상태(손가락을 열거나 접는 정도)입니다.

direction
PoseDirection

정렬 PoseDirectionfinger 해야 합니다.

설명

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

var handPose = new HandPose("MyPose");
// will be satisfied when the index finger is open and pointing backward
handPose.PoseConstraints.Add(Finger.Index, FingerFlexion.Open, PoseDirection.Backward); 

적용 대상

Add(ICollection<PoseConstraint>, FingersContext, FingerFlexion, PoseDirection)

지정 flexion 한 상태를 달성하고 지정된 direction상태와 정렬하기 위해 표시된 fingersContext 손가락이 필요한 새 FingerPose 제약 조건을 만들어 컬렉션에 추가 poseConstraints 합니다.

public static void Add (this System.Collections.Generic.ICollection<Microsoft.Gestures.PoseConstraint> poseConstraints, Microsoft.Gestures.FingersContext fingersContext, Microsoft.Gestures.FingerFlexion flexion, Microsoft.Gestures.PoseDirection direction = Microsoft.Gestures.PoseDirection.Undefined);

매개 변수

poseConstraints
ICollection<PoseConstraint>

개체의 PoseConstraint 기존 컬렉션입니다. 이 컬렉션은 종종 속성입니다 PoseConstraints .

fingersContext
FingersContext

제약 조건에 FingersContext 참여하는 손가락의 크기를 FingerPose 지정합니다.

flexion
FingerFlexion

FingerFlexion 표시된 fingersContext손가락에 적용되는 상태(손가락을 열거나 접는 정도)입니다.

direction
PoseDirection

PoseDirection 표시된 fingersContext손가락의 필수 요소입니다.

설명

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

var handPose = new HandPose("MyPose");
// will be satisfied when at least one of the thumb, index and middle fingers is folded
handPose.PoseConstraints.Add(new AnyFingerContext(new[] {Finger.Thumb, Finger.Index, Finger.Middle}), FingerFlexion.Folded);

적용 대상

Add(ICollection<PoseConstraint>, IEnumerable<Finger>, FingerFlexion, PoseDirection)

지정된 flexion 상태를 달성하고 지정된 direction상태에 맞춰야 하는 새 fingersFingerPose 제약 조건을 컬렉션에 만들고 추가 poseConstraints 합니다.

public static void Add (this System.Collections.Generic.ICollection<Microsoft.Gestures.PoseConstraint> poseConstraints, System.Collections.Generic.IEnumerable<Microsoft.Gestures.Finger> fingers, Microsoft.Gestures.FingerFlexion flexion, Microsoft.Gestures.PoseDirection direction = Microsoft.Gestures.PoseDirection.Undefined);

매개 변수

poseConstraints
ICollection<PoseConstraint>

개체의 PoseConstraint 기존 컬렉션입니다. 이 컬렉션은 종종 속성입니다 PoseConstraints .

fingers
IEnumerable<Finger>

FingerPose 제약 조건에 참여할 모든 손가락의 열거형입니다.

flexion
FingerFlexion

FingerFlexion 각각fingers에 적용되는 상태(손가락을 열거나 접는 정도)입니다.

direction
PoseDirection

PoseDirection 각 항목이 fingers 정렬되어야 하는 항목입니다.

설명

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

var handPose = new HandPose("MyPose");
// will be satisfied when the thumb, index and middle fingers are all open and pointing down
handPose.PoseConstraints.Add(new[] {Finger.Thumb, Finger.Index, Finger.Middle}, FingerFlexion.Open, PoseDirection.Down);

적용 대상