using Microsoft.Kinect; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace KinectUtils { abstract class Gesture : BaseGesture { protected int _maxNbOfFrames; protected int _minNbOfFrames; private int currentFrameCount; public bool isRecognitionRunning { get; set; } public int MinNbOfFrames { get { return _minNbOfFrames; } private set { _minNbOfFrames = value; } } public int MaxNbOfFrames { get { return _maxNbOfFrames; } private set { _maxNbOfFrames = value; } } public override void TestGesture(Body body) { } abstract protected bool TestInitialConditions(Body body); abstract protected bool TestPosture(Body body); abstract protected bool TestRunningGesture(Body body); abstract protected bool TestEndConditions(Body body); } }