コード例 #1
0
ファイル: Preview3D.xaml.cs プロジェクト: jdauie/cloudae
        private void OnBackgroundRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            if ((e.Cancelled))
            {
            }
            else if (e.Error != null)
            {
            }
            else
            {
                Trackball trackball = new Trackball();
                trackball.EventSource = previewImageGrid;

                viewport.Camera.Transform = trackball.Transform;

                //FlyMotionController flyMotionController = new FlyMotionController();
                //flyMotionController.EventSource = previewImageGrid;

                //viewport.Camera.Transform = flyMotionController.Transform;

                previewImageGrid.MouseMove += OnViewportGridMouseMove;

                if (START_ORBIT)
                    m_timer.Start();
            }
        }
コード例 #2
0
ファイル: Cloud3D.xaml.cs プロジェクト: jdauie/cloudae
        private void OnBackgroundRunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
        {
            if ((e.Cancelled))
            {
            }
            else if (e.Error != null)
            {
            }
            else
            {
                Trackball trackball = new Trackball();
                trackball.EventSource = previewImageGrid;

                viewport.Camera.Transform = trackball.Transform;
            }
        }