Пример #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            mRoomVisualizer = new WWRoomVisualizer(mCanvas);
            mRoomVisualizer.SetRoom(mRoom);
            mRoomVisualizer.ResetCamera(CAMERA_DISTANCE_DEFAULT);
            mRoomVisualizer.SetCrossFeed(mCrossFeed);

            if (!UpdateParameters())
            {
                Close();
            }

            UpdateRoomCanvas();

            mBw.DoWork             += BackgroundWorkerDoWork;
            mBw.RunWorkerCompleted += BackgroundWorkerRunWorkerCompleted;
        }
Пример #2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            mRoomVisualizer = new WWRoomVisualizer(mCanvas);
            mRoomVisualizer.SetRoom(mRoom);
            mRoomVisualizer.ResetCamera(CAMERA_DISTANCE_DEFAULT);
            mRoomVisualizer.SetCrossFeed(mCrossFeed);

            if (!UpdateParameters()) {
                Close();
            }

            UpdateRoomCanvas();

            mBw.DoWork += BackgroundWorkerDoWork;
            mBw.RunWorkerCompleted += BackgroundWorkerRunWorkerCompleted;
        }
Пример #3
0
 private void UpdateRoomCanvas()
 {
     mRoomVisualizer.SetRoom(mRoom);
     mRoomVisualizer.SetCrossFeed(mCrossFeed);
     mRoomVisualizer.Redraw();
 }