public override void RestoreEnv() { //RenderControlEditServices.Instance().StopGeometryEdit(true); //FDECommand fDECommand = new FDECommand(true, false); //SelectCollection.Instance().Clear(); //SelectCollection.Instance().ClearRowBuffers(); //RenderControlEditServices.Instance().SetEditorPosition(null); //fDECommand.SetSelectionMap(); IMap3DView map3DView = UCService.GetContent(typeof(Map3DView)) as Map3DView; if (map3DView == null) { return; } map3DView.UnBind(this); DF3DApplication app = DF3DApplication.Application; if (app == null || app.Current3DMapControl == null) { return; } app.Current3DMapControl.InteractMode = gviInteractMode.gviInteractNormal; app.Current3DMapControl.MouseSelectObjectMask = gviMouseSelectObjectMask.gviSelectNone; app.Current3DMapControl.MouseSelectMode = gviMouseSelectMode.gviMouseSelectHover; }
public override void RestoreEnv() { IMap2DView map2DView = UCService.GetContent(typeof(Map2DView)) as Map2DView; if (map2DView == null) { return; } map2DView.UnBind(this); 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 = gviInteractMode.gviInteractNormal; DF3DApplication.Application.Current3DMapControl.MouseSelectObjectMask = gviMouseSelectObjectMask.gviSelectAll; DF3DApplication.Application.Current3DMapControl.Camera.FlyTime = flyTime; } }
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(); }