TEWin/FrmTree.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
TEWin/FrmWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
TEWin/Resources/CommonImg/prop.png | 补丁 | 查看 | 原始文档 | blame | 历史 | |
TEWin/Resources/SpatialQuery/SpatialQuery.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
TEWin/Resources/SpatialQuery/img/ToolIcon.png | 补丁 | 查看 | 原始文档 | blame | 历史 | |
TEWin/Resources/Volume/Volume.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
TEWin/TEWin.csproj | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
TEWin/app.config | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
TEWin/FrmTree.cs
@@ -14,55 +14,9 @@ { public partial class FrmTree : Form { public SGWorld74 SG = null; public static string StartupPath { get { return System.Windows.Forms.Application.StartupPath; } } public FrmTree() { InitializeComponent(); this.Load += FrmWeb_Load; this.FormClosed += FrmWin_FormClosed; } void FrmWeb_Load(object sender, EventArgs e) { try { LogOut.Info("å¼å§è¿è¡.."); string fly = Path.Combine(StartupPath, "Resources\\sample.fly"); if (!File.Exists(fly)) { LogOut.Error("Flyæä»¶ä¸åå¨ï¼" + fly); return; } SG = new SGWorld74(); SG.OnLoadFinished += SG_OnLoadFinished; SG.Open(fly); } catch (Exception ex) { LogOut.Error(ex.Message + "\r\n" + ex.StackTrace); } } void SG_OnLoadFinished(bool bSuccess) { // } void FrmWin_FormClosed(object sender, FormClosedEventArgs e) { LogOut.Info("å ³éç¨åº."); } } } TEWin/FrmWin.cs
@@ -41,8 +41,7 @@ mainUrl = Application.StartupPath; bool isTest = "1" == ConfigurationManager.AppSettings["isTest"]; string fly = Path.Combine(Application.StartupPath, "Resources\\sample.fly"); fly = isTest ? "E:\\data\\opting\\2022.fly" : fly; string fly = isTest ? ConfigurationManager.AppSettings["testFly"] : Path.Combine(Application.StartupPath, "Resources\\sample.fly"); if (!File.Exists(fly)) { LogOut.Error("Flyæä»¶ä¸åå¨ï¼" + fly); @@ -58,8 +57,8 @@ if (isTest) { this.FormBorderStyle = FormBorderStyle.FixedSingle; tree.FormBorderStyle = FormBorderStyle.FixedSingle; this.FormBorderStyle = FormBorderStyle.Sizable; tree.FormBorderStyle = FormBorderStyle.Sizable; tool = new FrmTool(this); tool.Show(); } @@ -268,6 +267,7 @@ return str; } #region è§éç®+空é´ç»è®¡+空é´åæ+osgblab public void AngleMeasurement() { // @@ -287,5 +287,6 @@ { // } #endregion } } TEWin/Resources/CommonImg/prop.png
TEWin/Resources/SpatialQuery/SpatialQuery.html
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,164 @@ <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>ç©ºé´æ¥è¯¢</title> <meta http-equiv="Expires" content="0" /> <meta http-equiv="Cache" content="no-cache" /> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Cache-control" content="no-cache" /> <!--<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />--> <meta http-equiv="X-UA-Compatible" content="IE=9" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script src="../Jquery/jquery.min.js"></script> <script src="../ToolsCommon71.js"></script> <link href="../Style.css" rel="StyleSheet" type="text/css" /> <style> html, body { margin: 0; padding: 0; height: 100%; width: 100%; } </style> <script> $(function () { init(); }); function init() { window.ondragstart = function () { return false; } refreshList(); } function refreshList() { try { $("#LayerId").html(""); var layers = [], index = 0; BuildObjectsList(SGWorld.ProjectTree.RootID, layers, 36); layers.forEach(function (val) { var name = SGWorld.ProjectTree.GetItemName(val); $("#LayerId").append("<option value=" + val + (0 == index ? " selected='selected' " : "") + ">" + name + "</option>"); index++; }); if (layers.length) SGWorld.ProjectTree.SelectItem(layers[0]); } catch (e) { console.log(e); } } function changeLayer(e) { var id = $(e).val(); if (id) SGWorld.ProjectTree.SelectItem(id); } var buffer = 0; function changeBuffer(e) { var val = $(e).val(); if (val == buffer || isNaN(val)) return; buffer = parseFloat(val); SGWorld.Command.Execute(1096, buffer); } function changeSR(e) { var val = parseInt($(e).val()); SGWorld.Command.Execute(1097, val); } function openPropTab(e) { SGWorld.Command.Execute(1086, null); } function startQuery(e) { var id = parseInt($("#SelectType").val()); SGWorld.Command.Execute(id, null); } </script> </head> <body> <table style="border: 0; padding: 0; border-spacing: 0; border-spacing: 2px; width: 100%;"> <tr> <td class="ToolTopArea" width="100%" valign="middle"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="55px"> <img style="margin-left: 5px;" src="img/ToolIcon.png" alt="" /></td> <td id="TitleTD" align="center" class="s12w i18n">空é´åæ</td> <td align="right" id="CloseHelpTd"> <img style="margin-right: 5px;" alt="" src="../CommonImg/help.png" border="0" class="i18n" alt="help" title="帮å©" onclick="DisplayHelpPopup6(SGLang.i18nFile('help.html'),SGLang.i18n('help'))" style="cursor: pointer;"/></td> </tr> </table> </td> </tr> <tr> <td class="ToolTopSeperator"></td> </tr> <tr> <td> <table class="PropertiesSheet" style="border: 0; padding: 0; border-spacing: 0; border-spacing: 2px;"> <tr class='TableOtherLine'> <td class="s8b"> <label for="Mode" class="i18n">éæ©å¾å±</label> </td> <td> <select id="LayerId" onchange="changeLayer(this);" style="width: 200pt;"></select> <span id="refresh" onclick="refreshList();" style="text-decoration: underline; cursor: pointer;" class="i18n">å·æ°</span> </td> </tr> <tr> <td class="s8b"> <label for="Mode" class="i18n">ç¼å²è·ç¦»</label> </td> <td> <input id="Buffer" type="text" style="width: 98pt;" value="0" size="7" onchange="CheckNumberEx(Buffer, 0, 0, 9999999); changeBuffer(this);" /> ç±³ </td> </tr> <tr> <td class="s8b"> <label for="Mode" class="i18n">空é´å ³ç³»</label> </td> <td> <select id="SpatialRelationship" onchange="changeSR(this);" style="width: 100pt;"> <option class="i18n" value="1" selected="selected">ç¸äº¤</option> <option class="i18n" value="2">å å«</option> </select> </td> </tr> <tr> <td class="s8b"> <label for="Mode" class="i18n">æ¥è¯¢ç±»å</label> </td> <td> <select id="SelectType" style="width: 100pt;"> <option value="1156">ç¹æ¥</option> <option value="1072">线æ¥</option> <option value="1071" selected="selected">颿¥</option> <option value="1156">éæ©å¯¹è±¡</option> </select> </td> </tr> </table> </td> </tr> <tr> <td align="center" class="ToolButtonsArea"> <div id="SurfaceDiv"> <button id="clipboardButton" class="MenuButton" onclick="openPropTab(this);" style="cursor: pointer;"> <img src="../commonImg/prop.png" /><br /> <span class="i18n">屿§è¡¨</span></button> <button id="DrawPlaneBtn" class="MenuButton MenuButtonLast" onclick="startQuery(this);" style="cursor: pointer;"> <img src="../commonImg/polygon.png" /><br /> <span class="i18n">å¼å§æ¥è¯¢</span></button> </div> </td> </tr> <tr> <td> <object id="SGWorld" classid="CLSID:3a4f9199-65a8-11d5-85c1-0001023952c1"></object> </td> </tr> </table> </body> </html> TEWin/Resources/SpatialQuery/img/ToolIcon.png
TEWin/Resources/Volume/Volume.html
@@ -16,16 +16,19 @@ <td class="ToolTopArea" id="TopAreaTD" width="100%" valign="middle" > <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td width="55px"><img style="margin-left:5px;" src="ToolIcon.png" alt="" /></td> <td width="55px"> <img style="margin-left: 5px;" src="ToolIcon.png" alt="" /></td> <td id="TitleTD" align="center" class="s12w i18n">ToolName</td> <td align="right" id="CloseHelpTd"><img style="margin-right:5px;" alt="" src="../CommonImg/help.png" border="0" class="i18n" alt="help" title="help" onclick="DisplayHelpPopup6(SGLang.i18nFile('help.html'),SGLang.i18n('help'))" style="cursor: pointer;"></td> <td align="right" id="CloseHelpTd"> <img style="margin-right: 5px;" alt="" src="../CommonImg/help.png" border="0" class="i18n" alt="help" title="help" onclick="DisplayHelpPopup6(SGLang.i18nFile('help.html'),SGLang.i18n('help'))" style="cursor: pointer;"></td> </tr> </table> </td> </tr> <tr> <td class="ToolTopSeperator"></td> </tr> <tr class="s8"> </tr> <tr class="s8"> <td > <table class="PropertiesSheet" cellspacing="0" cellpadding="2" > @@ -33,8 +36,7 @@ <td class="s8b" > <label for="Mode" class="i18n">compare</label> </td> <td align="left"> <select id="CompareModeID" onchange="ChangeMode();" style="width:155pt;"> <td align="left"> <select id="CompareModeID" onchange="ChangeMode();" style="width: 155pt;"> <option class="i18n" value="3" selected="selected">aboveSurface</option> <option class="i18n" value="1" >modifyNew</option> <option class="i18n" value="0" >modifySelect</option> @@ -54,7 +56,8 @@ This focus call minimize the effect of a very strange bug. When you select an entry from the Viewshed list, click on the terrain and then ctrl-click on other list entry the HTML list control do not really recieve this additional selection (although you do see the new line highlighted). --> <!-- <span class="i18n">selectModifyFromlist</span> --> <select id="ModifyID" size='5' multiple onmouseover="this.focus()" ondblclick="flyToSelected('ModifyID');" style="width:100%;" > </select> </br> <select id="ModifyID" size='5' multiple onmouseover="this.focus()" ondblclick="flyToSelected('ModifyID');" style="width: 100%;"> </select> </br> <span id="refresh" onclick="RefreshList('ModifyID',30);" style="text-decoration:underline;cursor:pointer;" class="i18n">refresh</span> </td> @@ -79,8 +82,7 @@ <td class="s8b"> <label for="Mode" class="i18n">quality</label> </td> <td align="left"> <select id="DensityID" > <td align="left"> <select id="DensityID"> <option class="i18n" value="0" >low</option> <option class="i18n" value="1" selected="selected">medium</option> <option class="i18n" value="2" >high</option> @@ -104,16 +106,24 @@ <tr class="s8"> <td colspan="2" align="center" class="ToolButtonsArea"> <div id="selectModifyDiv"> <button id="selectModifyBtn" class="MenuButton MenuButtonLast" onclick="startCalculate();"> <img src="./img/Calculate.png" /><br /><span class="i18n">startCalculate</span></button> <button id="selectModifyBtn" class="MenuButton MenuButtonLast" onclick="startCalculate();"> <img src="./img/Calculate.png" /><br /> <span class="i18n">startCalculate</span></button> </div> <div id="ModifyDiv" style="display:none"> <button id="DrawModifyBtn" class="MenuButton MenuButtonLast" onclick="startCalculate();"> <img src="./img/ModifyTerrain.png" /><br /><span class="i18n">createModify</span></button> <button id="DrawModifyBtn" class="MenuButton MenuButtonLast" onclick="startCalculate();"> <img src="./img/ModifyTerrain.png" /><br /> <span class="i18n">createModify</span></button> </div> <div id="SurfaceDiv" style="display:none"> <button id="DrawPlaneBtn" class="MenuButton" onclick="startCalculate();"> <img src="../commonImg/polygon.png" /><br /> <span class="i18n">drawArea</span></button> <button id="clipboardButton" class="MenuButton MenuButtonLast" onclick="SelectClipboardObjects()"> <img src="../commonImg/Clipboard.png" /><br /> <span class="i18n">fromClipboard</span></button> <button id="DrawPlaneBtn" class="MenuButton" onclick="startCalculate();"> <img src="../commonImg/polygon.png" /><br /> <span class="i18n">drawArea</span></button> <button id="clipboardButton" class="MenuButton MenuButtonLast" onclick="SelectClipboardObjects()"> <img src="../commonImg/Clipboard.png" /><br /> <span class="i18n">fromClipboard</span></button> </div> </td> TEWin/TEWin.csproj
@@ -178,6 +178,15 @@ </COMReference> </ItemGroup> <ItemGroup> <EmbeddedResource Include="Resources\CommonImg\prop.png"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </EmbeddedResource> <EmbeddedResource Include="Resources\SpatialQuery\img\ToolIcon.png"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </EmbeddedResource> <EmbeddedResource Include="Resources\SpatialQuery\SpatialQuery.html"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </EmbeddedResource> <EmbeddedResource Include="Resources\Style.css"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </EmbeddedResource> @@ -748,6 +757,7 @@ <Content Include="Resources\log4net4.dll" /> <Content Include="Resources\Newtonsoft.Json.dll" /> </ItemGroup> <ItemGroup /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <!-- To modify your build process, add your task inside one of the targets below and uncomment it. Other similar extension points exist, see Microsoft.Common.targets. TEWin/app.config
@@ -2,6 +2,7 @@ <configuration> <appSettings> <add key="isTest" value="1"/> <add key="testFly" value="E:\data\opting\2022.fly"/> <add key="tePath" value="C:\Program Files\Skyline\TerraExplorer Pro"/> </appSettings> <startup>