public KinectController(DrawController dController, Image image, SoundController sController, Ellipse[] buttons)
 {
     debugImage      = image;
     drawController  = dController;
     soundController = sController;
     this.buttons    = buttons;
 }
Esempio n. 2
0
 public KinectController(DrawController dController, Image image, SoundController sController, Ellipse[] buttons)
 {
     debugImage = image;
     drawController = dController;
     soundController = sController;
     this.buttons = buttons;
 }
 public GalileoController(DrawController dc, SoundController sc, string pN, int bR)
 {
     lastTime        = DateTime.Now;
     drawController  = dc;
     soundController = sc;
     portName        = pN;
     baudRate        = bR;
     port            = new SerialPort(portName, baudRate);
     port.Open();
     _continue = true;
     thread    = new Thread(new ThreadStart(listenToSerial));
     thread.Start();
 }
Esempio n. 4
0
 public GalileoController(DrawController dc, SoundController sc, string pN, int bR)
 {
     lastTime = DateTime.Now;
     drawController = dc;
     soundController = sc;
     portName = pN;
     baudRate = bR;
     port = new SerialPort(portName, baudRate);
     port.Open();
     _continue = true;
     thread = new Thread(new ThreadStart(listenToSerial));
     thread.Start();
     
 }
        public MainWindow()
        {

            InitializeComponent();

            backgroundImage.Visibility = Visibility.Hidden;
            drawBorder.Visibility = Visibility.Hidden;
            colorRect.Visibility = Visibility.Hidden;

            buttons = new Ellipse[] { red_selector, blue_selector, green_selector, eraser_selector, background_selector, refresh_selector };
            drawController = new DrawController(drawingCanvas, backgroundImage, colorRect, image1, buttons);
            soundController = new SoundController();
            cardController = new CardController();
            kinectController = new KinectController(drawController, image1, soundController, buttons);
        }
Esempio n. 6
0
        public MainWindow()
        {
            InitializeComponent();
            drawingCanvas.Width        = drawingGrid.ActualWidth;
            drawingCanvas.Height       = drawingCanvas.Width * (3.0 / 4.0);
            backgroundImage.Width      = drawingGrid.ActualWidth;
            backgroundImage.Height     = drawingGrid.ActualHeight;
            backgroundImage.Visibility = Visibility.Hidden;
            drawBorder.Visibility      = Visibility.Hidden;
            colorRect.Visibility       = Visibility.Hidden;

            buttons          = new Ellipse[] { red_selector, blue_selector, green_selector, eraser_selector, background_selector, refresh_selector };
            drawController   = new DrawController(drawingCanvas, backgroundImage, colorRect, image1, buttons);
            soundController  = new SoundController();
            kinectController = new KinectController(drawController, image1, soundController, buttons);
        }
Esempio n. 7
0
        public MainWindow()
        {
            InitializeComponent();
            drawingCanvas.Width = drawingGrid.ActualWidth;
            drawingCanvas.Height = drawingCanvas.Width * (3.0 / 4.0);
            backgroundImage.Width = drawingGrid.ActualWidth;
            backgroundImage.Height = drawingGrid.ActualHeight;
            backgroundImage.Visibility = Visibility.Hidden;
            drawBorder.Visibility = Visibility.Hidden;
            colorRect.Visibility = Visibility.Hidden;

            buttons = new Ellipse[] { red_selector, blue_selector, green_selector, eraser_selector, background_selector, refresh_selector };
            drawController = new DrawController(drawingCanvas, backgroundImage, colorRect, image1, buttons);
            soundController = new SoundController();
            kinectController = new KinectController(drawController, image1, soundController, buttons);
        }