| | |
| | | switch (m.Msg) |
| | | { |
| | | case 0xc0: // 重置鼠标模式 |
| | | SG.Window.SetInputMode(0); |
| | | break; |
| | | SG.Window.SetInputMode(0); break; |
| | | case 0xc1: // 打开数据方案/打开显示场景 |
| | | SG.Command.Execute(1001, null); |
| | | break; |
| | | SG.Command.Execute(1001, null); break; |
| | | case 0xc2: // 保存数据方案/保存显示场景 |
| | | SG.Command.Execute(1003, null); |
| | | break; |
| | | SG.Command.Execute(1003, null); break; |
| | | case 0xc3: // 矢量数据(默认为*.shp,支持Excel) |
| | | SG.Command.Execute(1013, 5); |
| | | break; |
| | | SG.Command.Execute(1013, 5); break; |
| | | case 0xc4: // 影像数据(默认为*.tif) |
| | | SG.Command.Execute(1014, 9); |
| | | break; |
| | | SG.Command.Execute(1014, 9); break; |
| | | case 0xc5: // 地形数据(默认为*.tif) |
| | | SG.Command.Execute(1014, 26); |
| | | break; |
| | | SG.Command.Execute(1014, 26); break; |
| | | case 0xc6: // 模型数据(*.osgb) |
| | | //SG.Command.Execute(2342, null); |
| | | string path = Path.Combine(ConfigurationManager.AppSettings["tePath"], "MeshLayerTool.exe"); |
| | | string args = " -RunApp TerraExplorer -RunConvertor -Mode ImportMeshLayer -Type osgb"; |
| | | ExecCmd(new List<string> { "taskkill /f /t /im MeshLayerTool.exe" }); |
| | | RunExe(path, args, false); |
| | | ExecCmd(new List<string> { "taskkill /f /t /im MeshLayerTool.exe" }); // SG.Command.Execute(2342, null); |
| | | RunExe(Path.Combine(ConfigurationManager.AppSettings["tePath"], "MeshLayerTool.exe"), " -RunApp TerraExplorer -RunConvertor -Mode ImportMeshLayer -Type osgb", false); |
| | | break; |
| | | case 0xc7: // 模型数据(*.obj) |
| | | SG.Command.Execute(1012, 13); |
| | | break; |
| | | SG.Command.Execute(1012, 13); break; |
| | | case 0xc8: // 基础编辑(选择对象) |
| | | SG.Command.Execute(1021, null); |
| | | break; |
| | | SG.Command.Execute(1021, null); break; |
| | | case 0xc9: // 点量算(坐标+高程) |
| | | SG.Command.Execute(1023, null); |
| | | break; |
| | | SG.Command.Execute(1023, null); break; |
| | | case 0xca: // 点量算(坡度+坡向) |
| | | // |
| | | break; |
| | | case 0xcb: // 距离量算 |
| | | SG.Command.Execute(2356, null); |
| | | break; |
| | | SG.Command.Execute(2356, null); break; |
| | | case 0xcc: // 面积量算 |
| | | if (SG.Command.IsChecked(2359, null)) |
| | | SG.Window.SetInputMode(0); |
| | | else |
| | | SG.Command.Execute(2359, null); |
| | | break; |
| | | |
| | | default: |
| | | base.DefWndProc(ref m); |
| | | break; |
| | | base.DefWndProc(ref m); break; |
| | | } |
| | | } |
| | | |