using Microsoft.Kinect;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace KinectUtils
{
///
/// The posture class.
///
public abstract class Posture : BaseGesture
{
private bool postureWasRecognized = false;
///
/// Tests the posture.
///
/// The body
///
protected abstract bool TestPosture(Body body);
///
/// The test gesture method.
///
/// The body
public override void TestGesture(Body body)
{
postureWasRecognized = TestPosture(body);
if (postureWasRecognized)
{
OnGestureRecognized();
}
}
}
}