You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.6 KiB
46 lines
1.6 KiB
using MyGestureBank;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace KinectUtils
|
|
{
|
|
/// <summary>
|
|
/// The penalty master gesture factory.
|
|
/// </summary>
|
|
public class PenaltyMasterGestureFactory : IGestureFactory
|
|
{
|
|
/// <summary>
|
|
/// Creates all baseGesture objects needed for the penaly master
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
/// <exception cref="NotImplementedException"></exception>
|
|
public IEnumerable<BaseGesture> CreateGestures()
|
|
{
|
|
// Postures
|
|
PostureHandUpRight postureHandUpRight = new PostureHandUpRight();
|
|
PostureHandUpLeft postureHandUpLeft = new PostureHandUpLeft();
|
|
PostureHandDownLeft postureHandDownLeft = new PostureHandDownLeft();
|
|
PostureHandDownRight postureHandDownRight = new PostureHandDownRight();
|
|
//PostureTwoHandsDown postureTwoHandsDown = new PostureTwoHandsDown();
|
|
//PostureTwoHandsUp postureTwoHandsUp = new PostureTwoHandsUp();
|
|
|
|
// Gesture
|
|
SoccerShootGesture soccerShootGesture = new SoccerShootGesture();
|
|
|
|
BaseGesture[] gestures = new BaseGesture[5];
|
|
gestures[0] = postureHandUpLeft;
|
|
gestures[1] = postureHandUpRight;
|
|
gestures[2] = postureHandDownLeft;
|
|
gestures[3] = postureHandDownRight;
|
|
//gestures[4] = postureTwoHandsDown;
|
|
//gestures[5] = postureTwoHandsUp;
|
|
gestures[4] = soccerShootGesture;
|
|
|
|
return gestures;
|
|
}
|
|
}
|
|
}
|