Exemplo n.º 1
0
 public KinectHandler(KinectSensorChooser sensor_chooser)
 {
     sensorChooser = sensor_chooser;
     _sensor = sensor_chooser.Kinect;
        //vManager = ViewManager.getInstance();
        //speech_suggestion_block = vManager.get_speech_suggestion_block();
        //speech_status_icon = vManager.get_speech_status_icon();
        //Image color_view = vWindow.get_image_frame();
        gManager = new GestureManager(_sensor);
        sManager = new SpeechManager(_sensor);
 }
Exemplo n.º 2
0
        private ViewManager()
        {
            vWindow = new ViewerWindow();
            vWindow.Attach(this);
            vWindow.Show();
            controller = new Controller();
            item_location_manager = new ItemLocationManager();

            current_item_width = 150;
            min_zoom = 150;
            doc_loaded = false;
            selection_color = Brushes.LightGreen;
            initialise_pointers();
            kinectHandler = new KinectHandler(vWindow.kinectSensorChooser);

            gManager = kinectHandler.getGestureManager();
            sManager = kinectHandler.getSpeechManager();
            gManager.Attach(this);
            sManager.Attach(this);
            //repaint();
        }