FingersRelation<TRelationEnum> Class

Definition

An abstract class representing a constraint dealing with the relation between different fingers.

[System.Diagnostics.DebuggerDisplay("{DebuggerDisplay, nq}")]
public abstract class FingersRelation<TRelationEnum> : Microsoft.Gestures.PoseConstraint

Type Parameters

TRelationEnum

The relation type this class is concerned with. This would be RelativePlacement in the case of a FingertipPlacementRelation child class and RelativeDistance in the case of a FingertipDistanceRelation child class.

Inheritance
FingersRelation<TRelationEnum>
Derived
Attributes

Remarks

Child classes of FingersRelation<TRelationEnum> are used to define constraints describing the relative positioning of fingers (e.g., "the index and middle fingers are above the thumb finger") - see , or the distance between fingers (e.g., "the thumb finger is touching the middle and ring fingers") - see .

A FingersRelation<TRelationEnum> constraint describes the relation between two sets of fingers, one which is specified by Context and the other which is specified by OtherContext. For example, the following combination of contexts can represent the "index and middle fingers are above the thumb finger" constraint:

The following snippet illustrates how the above mentioned constraint is defined in code:

var indexAndMiddleAboveThumb = new FingertipPlacementRelation(new[] {Finger.Index, Finger.Middle}, RelativePlacement.Above, Finger.Thumb); // define the constraint
var myPose = new HandPose("MyPose");
myPose.PoseConstraints.Add(indexAndMiddleAboveThumb); // add the constraint to a pose

Constructors

FingersRelation<TRelationEnum>()
FingersRelation<TRelationEnum>(FingersContext, TRelationEnum, FingersContext)

Fields

_relation

Properties

Context

The first set of fingers participating in this FingersRelation<TRelationEnum> constraint.

IsFrozen (Inherited from GesturesFrameworkObject)
OtherContext

The second set of fingers participating in this FingersRelation<TRelationEnum> constraint.

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 FingersRelation<TRelationEnum> instance.

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

Explicit Interface Implementations

IValidatable.Validate() (Inherited from GesturesFrameworkObject)

Applies to