HandPartPose<ContextType> Class

Definition

An abstract base class representing the pose of a hand part.

[System.Diagnostics.DebuggerDisplay("{DebuggerDisplay, nq}")]
public abstract class HandPartPose<ContextType> : Microsoft.Gestures.PoseConstraint where ContextType : GestureContext

Type Parameters

ContextType

The context which the class is referring to. This is either a HandContext or a FingersContext. A HandContext type parameter is used in PalmPose to imply this child class represents a constraint relating to one or more hands. A FingersContext type parameter is used in FingerPose to imply this child class represents a constraint relating to one or more fingers. To learn about the various available types of hand and fingers contexts, please refer to and .

Inheritance
HandPartPose<ContextType>
Derived
Attributes

Remarks

Child classes of HandPartPose<ContextType> are used to specify constraints describing the state of either the palm (e.g.: "the palm of the right hand is facing forward") - see , or the fingers (e.g. "the index, middle, ring and pinky fingers are folded") - see .

Every HandPartPose<ContextType> has a Context associated with it. The Context specifies which concrete parts of the hand an instance of HandPartPose<ContextType> relates to. For example, when dealing with a PalmPose constraint, a SingleHandContext context instantiated using the SingleHandContext(Hand) constructor with a RightHand input argument would indicate that the PalmPose constraint relates to the right hand. Similarly, when dealing with a FingerPose constraint, a SingleFingerContext context instantiated using the SingleFingerContext(Finger) constructor with Pinky input argument would indicate that the FingerPose constraint relates to the pinky finger. To learn more about the various available types of hand and fingers contexts, please refer to and .

The Direction property describes the direction at which the hand part is pointing at. When dealing with a PalmPose constraint, the Direction refers to the palm normal (the direction perpendicular to the palm) and when dealing with a FingerPose, it refers to the direction of a finger (which is aligned with the distal phalanx of the finger).

Constructors

HandPartPose<ContextType>()
HandPartPose<ContextType>(ContextType, PoseDirection)

Fields

DefaultPoseDirection

Properties

Context

Indicates which parts of the hand this constraint refers to: either SingleHandContext, AnyHandContext or AllHandsContext in case for a PalmPose constraint and either SingleFingerContext, AnyFingerContext or AllFingersContext for a FingerPose constraint.

Direction

The direction of this hand part: Either the palm normal in case of a PalmPose or the direction at which the fingers are pointing in case of a FingerPose.

IsFrozen (Inherited from GesturesFrameworkObject)

Methods

CalculateHashCode()
DeepFreeze()
Equals(Object) (Inherited from GesturesFrameworkObject)
EqualsInternal(Object)
Freeze() (Inherited from GesturesFrameworkObject)
GetHashCode() (Inherited from GesturesFrameworkObject)
ToString()

Returns a string representation of this HandPartPose<ContextType> instance.

ValidateCore()
VerifyNotFrozen(String) (Inherited from GesturesFrameworkObject)

Explicit Interface Implementations

IValidatable.Validate() (Inherited from GesturesFrameworkObject)

Applies to