Exemplo n.º 1
0
 /// <summary>
 /// Constructor, uses the constructor of CanvasWindow as well to pass the desired title name
 /// </summary>
 /// <param name="touchWall"></param>
 private MultiTouchWindow(TouchWallApp touchWall)
     : base(touchWall, "Touch Wall - Multi Touch Mode")
 {
     InitializeComponent();
     _touchWall = touchWall;
     _touchWall.FrameDataManager.DepthFrameReader.FrameArrived += MapPoints;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor to initialize
 /// </summary>
 /// <param name="touchWall">TouchWallApp Object</param>
 /// <param name="winTitle">Title of the window</param>
 public CanvasWindow(TouchWallApp touchWall, String winTitle)
 {
     InitializeComponent();
     _touchWall = touchWall;
     _touchWall.FrameDataManager.DepthFrameReader.FrameArrived += MapPoints;
     Title = winTitle;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Returns the MultiTouchWindow instance. We only want one of these
 /// </summary>
 /// <param name="touchWall"></param>
 /// <returns>Returns the MultiTouchWindow instance</returns>
 public static CanvasWindow GetMultiTouchWindowInstance(TouchWallApp touchWall)
 {
     if (Instance == null)
     {
         Instance = new MultiTouchWindow(touchWall);
     }
     return(Instance);
 }
Exemplo n.º 4
0
 public static PreviewWindow OpenPreviewWindow(TouchWallApp TouchWall)
 {
     if (_instance == null)
     {
         _instance = new PreviewWindow(TouchWall);
     }
     return(_instance);
 }
Exemplo n.º 5
0
        /// <summary>
        /// Constructor
        /// </summary>
        public MainWindow()
        {
            // Initialize the components (controls) of the window
            InitializeComponent();

            _touchWall = new TouchWallApp(this);

            // Wire handler for frame arrival
            _touchWall.FrameDataManager.DepthFrameReader.FrameArrived += _touchWall.FrameDataManager.Reader_FrameArrived;

            // Update the UI on each frame
            _touchWall.FrameDataManager.DepthFrameReader.FrameArrived += UpdateLabels;

            // Set IsAvailableChanged event notifier
            TouchWallApp.KinectSensor.IsAvailableChanged += Sensor_IsAvailableChanged;

            DataContext = this;

            UpdateAllLabels();
        }
Exemplo n.º 6
0
 private PreviewWindow(TouchWallApp TouchWall)
 {
     _touchWall = TouchWall;
     //_touchWall.FrameDataManager.DepthFrameReader.FrameArrived += _touchWall.FrameDataManager.Reader_FrameArrived;
     InitializeComponent();
 }