Ejemplo n.º 1
0
 public override void RestoreEnv()
 {
     if (this._drawTool != null)
     {
         this._drawTool.OnStartDraw    -= new OnStartDraw(_drawTool_OnStartDraw);
         this._drawTool.OnFinishedDraw -= new OnFinishedDraw(_drawTool_OnFinishedDraw);
         this._drawTool.End();
     }
     Map3DCommandManager.Pop();
 }
Ejemplo n.º 2
0
 public override void RestoreEnv()
 {
     if (this._uc != null)
     {
         this._uc.RestoreEnv();
         this._uc.Dispose();
         this._uc = null;
     }
     if (this._uPanel != null)
     {
         this._uPanel.GetControlContainer().Controls.Clear();
         this._uPanel.Close();
         this._uPanel = null;
     }
     Map3DCommandManager.Pop();
 }
Ejemplo n.º 3
0
 public override void RestoreEnv()
 {
     Clear();
     if (this._drawTool != null)
     {
         this._drawTool.OnStartDraw    -= new OnStartDraw(this.OnStartDraw);
         this._drawTool.OnFinishedDraw -= new OnFinishedDraw(this.OnFinishedDraw);
         this._drawTool.Close();
         this._drawTool.End();
     }
     Map3DCommandManager.Pop();
     //RenderControlEditServices.Instance().StopGeometryEdit(true);
     //FDECommand fDECommand = new FDECommand(true, false);
     //SelectCollection.Instance().Clear();
     //SelectCollection.Instance().ClearRowBuffers();
     //RenderControlEditServices.Instance().SetEditorPosition(null);
     //fDECommand.SetSelectionMap();
 }
Ejemplo n.º 4
0
        public override void RestoreEnv()
        {
            if (!Authority3DService.Instance.IsAuthorized)
            {
                return;
            }

            if (this._uc != null)
            {
                this._uc.RestoreEnv();
                this._uc.Dispose();
                this._uc = null;
            }
            if (this._uPanel != null)
            {
                this._uPanel.GetControlContainer().Controls.Clear();
                this._uPanel.Close();
                this._uPanel = null;
            }
            Map3DCommandManager.Pop();
        }
Ejemplo n.º 5
0
 public override void RestoreEnv()
 {
     if (dict != null)
     {
         foreach (KeyValuePair <IBaseLayer, bool> kv in dict)
         {
             kv.Key.Visible = kv.Value;
         }
     }
     if (this._uc != null)
     {
         this._uc.RestoreEnv();
         this._uc.Dispose();
         this._uc = null;
     }
     if (this._uPanel != null)
     {
         this._uPanel.GetControlContainer().Controls.Clear();
         this._uPanel.Close();
         this._uPanel = null;
     }
     Map3DCommandManager.Pop();
 }
Ejemplo n.º 6
0
 public override void RestoreEnv()
 {
     if (DF3DApplication.Application == null || DF3DApplication.Application.Current3DMapControl == null)
     {
         return;
     }
     DF3DApplication.Application.Workbench.SetStatusInfo("");
     if (dict != null)
     {
         foreach (KeyValuePair <IBaseLayer, bool> kv in dict)
         {
             kv.Key.Visible = kv.Value;
         }
     }
     Clear();
     if (this._drawTool != null)
     {
         this._drawTool.OnStartDraw    -= new OnStartDraw(this.OnStartDraw);
         this._drawTool.OnFinishedDraw -= new OnFinishedDraw(this.OnFinishedDraw);
         this._drawTool.Close();
         this._drawTool.End();
     }
     Map3DCommandManager.Pop();
 }
Ejemplo n.º 7
0
        public override void RestoreEnv()
        {
            //if (!_isAuth) return;

            IMap3DView map3DView = UCService.GetContent(typeof(Map3DView)) as Map3DView;

            if (map3DView == null)
            {
                return;
            }
            map3DView.UnBind(this);
            if (DF3DApplication.Application != null && DF3DApplication.Application.Current3DMapControl != null)
            {
                DF3DApplication.Application.Current3DMapControl.InteractMode          = Gvitech.CityMaker.RenderControl.gviInteractMode.gviInteractNormal;
                DF3DApplication.Application.Current3DMapControl.MouseSelectObjectMask = Gvitech.CityMaker.RenderControl.gviMouseSelectObjectMask.gviSelectAll;
                DF3DApplication.Application.Current3DMapControl.MouseSelectMode       = Gvitech.CityMaker.RenderControl.gviMouseSelectMode.gviMouseSelectClick;
                foreach (Guid g in this._listRender)
                {
                    DF3DApplication.Application.Current3DMapControl.ObjectManager.DeleteObject(g);
                }
                this._listRender.Clear();
            }
            Map3DCommandManager.Pop();
        }