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;
        }
Exemple #2
0
 private KinectServer()
 {
     serverMessageProcessor = ServerMessageProcessor.Instance;
     StartServer();
 }