示例#1
0
        public MainWindow()
        {
            InitializeComponent();

            AddCameraWorkspace();

            kinectSensor = KinectSensor.GetDefault();

            cloudView = new CloudView();

            WorkspacePointCloudHolder.Children.Add(cloudView);

            bodyView = new BodyView();

            HandCheckBodyViewHolder.Children.Add(bodyView);

            roomPointCloudView = new RoomPointCloudView();

            RoomPointCloudHolder.Children.Add(roomPointCloudView);

            roomPointCloudView.DataContext = cloudView.AllCameraSpacePoints;

            WorkspaceList.ItemsSource = workspaceList;

            EditWorkspace.DataContext = activeWorkspace;
        }
示例#2
0
        public MainWindow()
        {
            InitializeComponent();

            kinectServer = KinectServer.Instance;
            serverMessageProcessor = ServerMessageProcessor.Instance;

            serverMessageProcessor.WorkspaceUpdated += kinectServer_WorkspaceUpdated;
            serverMessageProcessor.DepthMessageArrived += kinectServer_DepthDataArrived;
            serverMessageProcessor.TextMessageArrived += kinectServer_TextMessageArrived;

            activeWorkspace = new Workspace()
            {
                Name = "asd",
                Vertices = new ObservableCollection<Point>
                {
                    new Point(0,0),
                    new Point(0,50),
                    new Point(50,50),
                    new Point(50,0)
                }
            };

            AddCameraWorkspace();

            cloudView = new CloudView();

            WorkspacePointCloudHolder.Children.Add(cloudView);

            bodyView = new BodyView();

            //HandCheckBodyViewHolder.Children.Add(bodyView);

            roomPointCloudView = new RoomPointCloudView();

            RoomPointCloudHolder.Children.Add(roomPointCloudView);

            calibrationView = new CalibrationView();

            CalibrationViewHolder.Children.Add(calibrationView);

            WorkspaceList.ItemsSource = workspaceList;

            EditWorkspace.DataContext = activeWorkspace;
        }