Ejemplo n.º 1
0
 public Speech(Kinect kinect)
 {
     //Constructor for speech, uses methods from kinect, events and gestures, with the latter two being called through kinect
     this.kinect = kinect;
     events      = kinect.gst.events;
     gst         = kinect.gst;
 }
 //Constructor which takes the current instance of the kinect
 public Gesture(Kinect k)
 {
     //Stores the current instance of the kinect
     this.kinect = k;
     //Makes a new instance of the events class
     events = new Event(k);
     //Sets the name of the active combo box as a placeholder
     activeBox.Name = "no1";
 }
Ejemplo n.º 3
0
        //Method to position UI elements of the page relative to the screen size
        public void init()
        {
            //Initialise the default program settings on first load
            Settings.fontScale        = 1.0;
            Settings.rightHandTracked = true;
            Settings.windowWidth      = 640;
            Settings.windowHeight     = 480;
            Settings.ttsVolume        = 100;
            String dir = Directory.GetParent(Directory.GetParent(Environment.CurrentDirectory).ToString()).ToString() + "\\resources\\";

            Settings.resourcePath = dir;

            //Initialise the Kinect, passing an instance of this class to allow the program to return
            mainLogic = new Kinect(this);
            //Start up the Kinect features
            mainLogic.initiate_kinect();
            //Tell the kinect to set this page as the content of the window
            mainLogic.openMenu();
            //Audibly tell the user that the program is ready
            textToSpeech("program loaded");
        }
Ejemplo n.º 4
0
 //Constructor which saves the current instances of the kinect
 public Event(Kinect kinect)
 {
     this.kinect = kinect;
 }