コード例 #1
0
        public void CreateWindow()
        {
            if (ParentWindow != null)
            {
                return;
            }

            ParentWindow             = new PatchWindow();
            ParentWindow.DataContext = this;
            ParentWindow.Closing    += (sender, args) => { StopPlanarization(); ParentWindow = null; DetachFromViewport(); };
            ParentWindow.Show();

            AttachToViewport(ParentWindow.Viewport);
            Viewport.IsRollOnly = true;

            Viewport.Camera.IsOrthogonal = true;
            Viewport.Camera.CenterOn(SurfaceMesh);
        }
コード例 #2
0
ファイル: SurfacePatch.cs プロジェクト: dtegunov/membranorama
        public void CreateWindow()
        {
            if (ParentWindow != null)
                return;

            ParentWindow = new PatchWindow();
            ParentWindow.DataContext = this;
            ParentWindow.Closing += (sender, args) => { StopPlanarization(); ParentWindow = null; DetachFromViewport(); };
            ParentWindow.Show();

            AttachToViewport(ParentWindow.Viewport);
            Viewport.IsRollOnly = true;

            Viewport.Camera.IsOrthogonal = true;
            Viewport.Camera.CenterOn(SurfaceMesh);
        }