| | |
| | | switch (id) |
| | | { |
| | | case 1034: |
| | | this.ShowHtml("è·ç¦»æµé", mainUrl + @"\Resources\DistanceMeasurement\distanceMeasurement.html", 20, 20, 400, 245); |
| | | this.ShowHtml("è·ç¦»æµé", mainUrl + @"\Resources\DistanceMeasurement\distanceMeasurement.html", 20, 20, 400, 275); |
| | | break; |
| | | case 1037: |
| | | this.ShowHtml("é¢ç§¯æµé", mainUrl + @"/Resources\AreaMeasurement\AreaMeasurement.html", 20, 20, 400, 245); |
| | | this.ShowHtml("é¢ç§¯æµé", mainUrl + @"/Resources\AreaMeasurement\AreaMeasurement.html", 20, 20, 400, 205); |
| | | break; |
| | | case 1149: |
| | | switch (arg) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | SGLang.lang = $.extend(SGLang.lang,{ |
| | | ToolTitle: "SkylineGlobe - Skyline Software Systems, Inc.", |
| | | ToolName: "Terrain Profile", |
| | | help: "Help", |
| | | Text0: "Cancel", |
| | | Text1: "Delete Last Point", |
| | | Text2: "Horizontal surface", |
| | | Text3: "Surface", |
| | | Text4: "3D surface", |
| | | Text5: "Surface Sample Interval ", |
| | | Text6: "Create Measurement Objects", |
| | | Text7: "Snapping", |
| | | Text19: "", |
| | | Text17: "Units", |
| | | Text18: " meters", |
| | | Text19: "Delete the measurement.", |
| | | Text20: "Delete the last measurement point.", |
| | | Text21: "Snap the measurement points to edges, objects, and vertices.", |
| | | Text22: "Calculate the area of the horizontal projection of your selection on the terrain.", |
| | | Text23: "Calculate area on an arbitrary plane. The polygonâs orientation is determined by the first three points selected.", |
| | | Text24: "Calculate the surface area of the selected region taking into account terrain contours.", |
| | | Text25: "Area:\nPerimeter:", |
| | | Text26: "Surface Area:", |
| | | |
| | | |
| | | |
| | | Text999: "" |
| | | }); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | SGLang.lang = $.extend(SGLang.lang,{ |
| | | ToolTitle: "SmartEarth - æ³°çæ°åç§æï¼åäº¬ï¼æéå
¬å¸", |
| | | ToolName: "å°å½¢åé¢", |
| | | help: "帮å©", |
| | | Text0: "åæ¶", |
| | | Text1: "å 餿åä¸ä¸ªèç¹", |
| | | Text2: "æ°´å¹³é¢", |
| | | Text3: "表é¢", |
| | | Text4: "3D表é¢", |
| | | Text5: "å°é¢éæ ·é´é ", |
| | | Text6: "å建æµé对象", |
| | | Text7: "ææ", |
| | | Text19: "", |
| | | Text17: "åä½", |
| | | Text18: " ç±³", |
| | | Text19: "å 餿µéç»æ.", |
| | | Text20: "å 餿åä¸ä¸ªèç¹.", |
| | | Text21: "ææè¾¹çº¿ï¼å¯¹è±¡ä»¥åèç¹.", |
| | | Text22: "è®¡ç®æéå°å½¢çæ°´å¹³æå½±é¢ç§¯.", |
| | | Text23: "计ç®ä»»æå¹³é¢ä¸çé¢ç§¯. å¤è¾¹å½¢çæ¹åç±éæ©çåä¸ä¸ªç¹å³å®.", |
| | | Text24: "æ ¹æ®å°å½¢çé«çº¿è®¡ç®æéåºåç表é¢ç§¯.", |
| | | Text25: "é¢ç§¯:\nå¨é¿:", |
| | | Text26: "表é¢ç§¯:", |
| | | |
| | | |
| | | |
| | | Text999: "" |
| | | }); |
| | |
| | | <style> |
| | | </style> |
| | | </head> |
| | | <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="border: 0px; overflow: hidden;" id="Body" class="hideUntillTranslated ToolButtonsArea" onload="Init()" onunload="OnUnload()"> |
| | | <!--oncontextmenu="return false;"> onclick="bHide=true;HideOptionsNow()" > --> |
| | | |
| | | <table border="0" width="100%" class="s8w" cellspacing="0" cellpadding="0"> |
| | | <tr > |
| | | <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="border: 0px" id="Body" class="hideUntillTranslated" onload="Init()" onunload="OnUnload()"> |
| | | <!--oncontextmenu="return false;"> onclick="bHide=true;HideOptionsNow()" > --> |
| | | <table border="0" width="100%" cellspacing="0" cellpadding="0"> |
| | | <tr class="s8"> |
| | | <td> |
| | | <table class="PropertiesSheet" cellspacing="0" cellpadding="0" ></table> |
| | | </td> |
| | | <tr> |
| | | <tr class="s8"> |
| | | <td colspan="2" align="left" class="ToolButtonsArea" style="border-bottom: 2px solid #ffffff;"> |
| | | <button id="deleteMeasure" class="MenuButton2" style="border:none;" onclick="OnDeleteMeasure();"><img src="./img/delete.png" /></button> |
| | | <button id="deleteLastPoint" class="MenuButton2" style="border:none;" onclick="OnDeleteLastPoint()"><img src="./img/delete_last_point.png" /></button> |
| | | <button id="snapping" class="MenuButton2" style="border-right: 2px solid #ffffff;" onclick="OnSnapping()"><img src="./img/snap.png" /><br /></button> |
| | | <button id="horizontalSurface" class="MenuButton2" style="border:none;" onclick="OnHorizontalSurface()"><img src="./img/horizontal.png" /><br /></button> |
| | | <button id="3dPlane" class="MenuButton2" style="border:none;" onclick="On3DPlane()"><img src="./img/3d_palne_area.png" /><br /></button> |
| | | <button id="terrainSurface" class="MenuButton2" style="border-left: 2px solid #ffffff;border-right: none;" onclick="OnTerrainSurface()"><img src="./img/surface.png" /><br /></button> |
| | | <button id="deleteMeasure" class="MenuButton2" style="border:none;" onclick="OnDeleteMeasure();"><img src="./img/delete.png" /><br/><!--<span class="i18n">Text0</span>--></button> |
| | | <button id="deleteLastPoint" class="MenuButton2" style="border:none;" onclick="OnDeleteLastPoint()"><img src="./img/delete_last_point.png" /><br /><!--<span class="i18n">Text1</span>--></button> |
| | | <button id="snapping" class="MenuButton2" style="border-right: 2px solid #ffffff;" onclick="OnSnapping()"><img src="./img/snap.png" /><br /><!--<span class="i18n" style="font:#2A4EA5">Text7</span>--></button> |
| | | <button id="horizontalSurface" class="MenuButton2" style="border:none;" onclick="OnHorizontalSurface()"><img src="./img/horizontal.png" /><br /><!--<span class="i18n" style="font:#2A4EA5">Text2</span>--></button> |
| | | <button id="3dPlane" class="MenuButton2" style="border-right: 2px solid #ffffff;" onclick="On3DPlane()"><img src="./img/3d_palne_area.png" /><br /><!--<span class="i18n" style="font:#2A4EA5">Text4</span>--></button> |
| | | <button id="terrainSurface" class="MenuButton2" style="border:none;" onclick="OnTerrainSurface()"><img src="./img/surface.png" /><br /><!--<span class="i18n" style="font:#2A4EA5">Text3</span>--></button> |
| | | |
| | | </td> |
| | | |
| | | </tr> |
| | | </table> |
| | | |
| | | |
| | | <table border="0" width="100%" class="s8w ToolButtonsArea" cellspacing="0" cellpadding="3pt"> |
| | | |
| | | <tr id="createTRId"> |
| | | <td > |
| | | <span class="i18n s8w" style="vertical-align:top;">Text6</span> |
| | | <input type="checkbox" align="bottom" id="createMeasurementObject" style="width:25px;" onclick="CreateMeasurementObject();"/> |
| | | <tr class="s8" height="40"> |
| | | <td align="left" class="ToolButtonsArea" style="color:#ffffff;"> |
| | | <span class="i18n" style="vertical-align:top;">Text6</span> |
| | | |
| | | <input type="checkbox" align="bottom" id="createMeasurementObject" style="width:25px;" onclick="CreateMeasurementObject();"/> |
| | | </td> |
| | | </tr> |
| | | |
| | | <tr > |
| | | <td class="textarea-container" > |
| | | <div class="textarea-size s8w" ></div> |
| | | <tr class="s8" height="48" bgcolor="0"> |
| | | <td class="textarea-container" style="color:#ffffff"> |
| | | <style> |
| | | div.textarea-size{font-size: 12px;} |
| | | </style> |
| | | <div class="textarea-size" ></div> |
| | | </td> |
| | | </tr> |
| | | |
| | | <tr id="sampleIntervalTR"> |
| | | <td align="left" > |
| | | <span class="i18n s8w">Text5</span> |
| | | <input type="text" id= "sampleInterval" style="width:25px; height:13px; background-color:#000000; color:#FFFFFF; padding:1px; margin-left: 2px;margin-right: 2px;" onkeypress="OnSampleInterval(event)"/> |
| | | <span class="i18n s8w">Text18</span> |
| | | <tr class="s8" bgcolor="0"> |
| | | <td align="left" class="ToolButtonsArea" style="color:#ffffff"> |
| | | <span class="i18n">Text5</span><input type="text" id= "sampleInterval" style="width:25px; height:11px; background-color:#000000; color:#FFFFFF;" onkeypress="OnSampleInterval(event)"/><span class="i18n">Text18</span> |
| | | </td> |
| | | </tr> |
| | | |
| | | <tr id="surfaceResultTR" > |
| | | <td class="textarea-container_surface" > |
| | | |
| | | <div class="textarea-size_surface s8w" ></div> |
| | | <tr class="s8" bgcolor="0" > |
| | | <td class="textarea-container_surface" style="color:#ffffff"> |
| | | <style> |
| | | div.textarea-size_surface{font-size: 12px} |
| | | </style> |
| | | <div class="textarea-size_surface" ></div> |
| | | </td> |
| | | </tr> |
| | | |
| | | |
| | | <tr id="unitTRId"> |
| | | <td align="right" > |
| | | <u><a class="btn btn-primary" href="#" role="button" id= "changeMeasurementUnits" onclick="OnChangeMeasurementUnits()"><span class="i18n s8w" style="padding-right:5px;">Text17</span></a></u> |
| | | <tr class="s8"> |
| | | <td align="right" bgcolor="0"> |
| | | <u style="color:#ffffff"><a class="btn btn-primary" style="color:#ffffff" href="#" role="button" id= "changeMeasurementUnits" onclick="OnChangeMeasurementUnits()"><span class="i18n" style="padding-right:5px;">Text17</span></a></u> |
| | | </td> |
| | | </tr> |
| | | </tr> |
| | |
| | | |
| | | |
| | | <script language="javascript" src="../jquery/jquery-3.1.1.min.js"></script> |
| | | <script language="javascript" src="../ToolsCommon71.js"></script> |
| | | <script language="javascript" src="../ToolsCommon70.js"></script> |
| | | |
| | | |
| | | |
| | |
| | | var g_bCalculateTerrainArea; |
| | | var _3D_PLANE_NAME = "plane"; |
| | | var _HORIZONTAL_NAME = "horizontal"; |
| | | //--------------------------------- |
| | | function Init() |
| | | { |
| | | document.getElementById("changeMeasurementUnits").value=SGLang.i18n("Text17"); |
| | | document.getElementById("sampleInterval").value=5; |
| | | |
| | | var isPM = GetParamValue("pm", "0"); // when opening this tool in PM we want to hide several options |
| | | if (isPM=="1"){ |
| | | $("#unitTRId").hide(); |
| | | $("#createTRId").hide(); |
| | | $("#terrainSurface").hide(); |
| | | $("#sampleIntervalTR").hide(); |
| | | $("#surfaceResultTR").hide(); |
| | | } |
| | | |
| | | $("#deleteMeasure").attr('title', SGLang.i18n("Text19")); |
| | | $("#deleteLastPoint").attr('title', SGLang.i18n("Text20")); |
| | | $("#snapping").attr('title', SGLang.i18n("Text21")); |
| | | $("#horizontalSurface").attr('title', SGLang.i18n("Text22")); |
| | | $("#3dPlane").attr('title', SGLang.i18n("Text23")); |
| | | $("#terrainSurface").attr('title', SGLang.i18n("Text24")); |
| | | |
| | | |
| | | textContainer = document.querySelector('.textarea-container'); |
| | | textareaSize = textContainer.querySelector('.textarea-size'); |
| | | textareaSize.innerText = SGLang.i18n("Text25"); |
| | | |
| | | textContainer = document.querySelector('.textarea-container_surface'); |
| | | textareaSize = textContainer.querySelector('.textarea-size_surface'); |
| | | textareaSize.innerText = SGLang.i18n("Text26"); |
| | | |
| | | |
| | | SGWorld.AttachEvent("OnMeasurementAreaResult", OnMeasurementResult); |
| | | SGWorld.AttachEvent("OnInputModeChanged", OnInputModeChanged); |
| | | SGWorld.AttachEvent("OnEndDrawMeasurement", OnEndDrawMeasurement); |
| | | |
| | | var bCreateMeasurementObject = (isPM=="1")?false:SGWorld.GetOptionParam("CreateMeasurementObjects"); |
| | | document.getElementById("createMeasurementObject").checked = bCreateMeasurementObject; |
| | | CreateMeasurementObject(); |
| | | |
| | | Reset(1,0); |
| | | if(SGWorld.GetOptionParam("AreaMeasurementDefaultMode") == _3D_PLANE_NAME) |
| | | document.getElementById("3dPlane").click(); |
| | | else |
| | | document.getElementById("horizontalSurface").click(); |
| | | |
| | | |
| | | } |
| | | //--------------------------------- |
| | | function Reset(FirstTime, FromMouseInputMode) |
| | | { |
| | | |
| | | ResetButtons(); |
| | | SGWorld.Window.SetInputMode(0); |
| | | gGeometry = null; |
| | | } |
| | | //--------------------------------- |
| | | function OnSampleInterval(evt) |
| | | { |
| | | |
| | | |
| | | |
| | | var theEvent = evt || window.event; |
| | | |
| | | // Handle paste |
| | |
| | | } |
| | | |
| | | } |
| | | //--------------------------------- |
| | | |
| | | |
| | | |
| | | function OnDeleteMeasure() |
| | | { |
| | | var is3dPlane = $("#3dPlane").hasClass("MenuButtonHighlight"); |
| | |
| | | |
| | | EnableDisableButtons(); |
| | | } |
| | | //--------------------------------- |
| | | |
| | | function OnUnload() |
| | | { |
| | | var measurementMode = SGWorld.GetParam(9916); |
| | | if(measurementMode == 33351/*ID_MEASURE_TERRAIN_AREA*/ || measurementMode == 33350/*ID_MEASURE_AREA*/) |
| | | SGWorld.Window.SetInputMode(0); |
| | | } |
| | | //--------------------------------- |
| | | |
| | | function OnEndDrawMeasurement(geometry) |
| | | { |
| | | gGeometry = geometry; |
| | | EnableDisableButtons(); |
| | | } |
| | | //--------------------------------- |
| | | |
| | | function Init() |
| | | { |
| | | document.getElementById("changeMeasurementUnits").value=SGLang.i18n("Text17"); |
| | | document.getElementById("sampleInterval").value=5; |
| | | |
| | | |
| | | document.getElementById("deleteMeasure").title=SGLang.i18n("Text19"); |
| | | document.getElementById("deleteLastPoint").title=SGLang.i18n("Text20"); |
| | | document.getElementById("snapping").title=SGLang.i18n("Text21"); |
| | | document.getElementById("horizontalSurface").title=SGLang.i18n("Text22"); |
| | | document.getElementById("3dPlane").title=SGLang.i18n("Text23"); |
| | | document.getElementById("terrainSurface").title=SGLang.i18n("Text24"); |
| | | |
| | | |
| | | textContainer = document.querySelector('.textarea-container'); |
| | | textareaSize = textContainer.querySelector('.textarea-size'); |
| | | textareaSize.innerText = SGLang.i18n("Text25"); |
| | | |
| | | textContainer = document.querySelector('.textarea-container_surface'); |
| | | textareaSize = textContainer.querySelector('.textarea-size_surface'); |
| | | textareaSize.innerText = SGLang.i18n("Text26"); |
| | | |
| | | |
| | | SGWorld.AttachEvent("OnMeasurementAreaResult", OnMeasurementResult); |
| | | SGWorld.AttachEvent("OnInputModeChanged", OnInputModeChanged); |
| | | SGWorld.AttachEvent("OnEndDrawMeasurement", OnEndDrawMeasurement); |
| | | |
| | | |
| | | //Turn off CreateMeasurementObject |
| | | // SGWorld.Command.Execute(2226,0); |
| | | |
| | | |
| | | var bCreateMeasurementObject = SGWorld.GetOptionParam("CreateMeasurementObjects"); |
| | | document.getElementById("createMeasurementObject").checked = bCreateMeasurementObject; |
| | | |
| | | Reset(1,0); |
| | | if(SGWorld.GetOptionParam("AreaMeasurementDefaultMode") == _3D_PLANE_NAME) |
| | | document.getElementById("3dPlane").click(); |
| | | else |
| | | document.getElementById("horizontalSurface").click(); |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | function OnInputModeChanged(mode) |
| | | { |
| | | if(mode==0) |
| | |
| | | ResetButtons(); |
| | | } |
| | | } |
| | | //--------------------------------- |
| | | |
| | | |
| | | |
| | | function OnMeasurementResult(measurementResult,SounrceID) |
| | | { |
| | | measurementResult = measurementResult.replace("N/A", "ä¸éç¨") |
| | | .replace("Surface Area:", "表é¢ç§¯ï¼") |
| | | .replace("Area:", "é¢ç§¯ï¼") |
| | | .replace("Square Meter", "å¹³æ¹ç±³") |
| | | .replace("Square km", "å¹³æ¹åç±³") |
| | | .replace("Perimeter: ", "å¨é¿ï¼") |
| | | .replace(/Km/g, " åç±³") |
| | | .replace(/m/g, " ç±³"); |
| | | |
| | | if(!g_bCalculateTerrainArea) |
| | | { |
| | | textContainer = document.querySelector('.textarea-container'); |
| | |
| | | EnableDisableButtons(); |
| | | |
| | | return true; |
| | | } |
| | | //--------------------------------- |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | function OnChangeMeasurementUnits() |
| | | { |
| | | SGWorld.Command.Execute(1011,3); |
| | | } |
| | | //--------------------------------- |
| | | |
| | | function CreateMeasurementObject() |
| | | { |
| | | var bCreateMeasurementObject = document.getElementById("createMeasurementObject").checked==true; |
| | | SGWorld.SetOptionParam("CreateMeasurementObjects",bCreateMeasurementObject); |
| | | } |
| | | //--------------------------------- |
| | | |
| | | function EnableDisableButtons() |
| | | { |
| | | var bEnableTerrainSurface = $("#horizontalSurface").hasClass("MenuButtonHighlight") && gGeometry!=null; |
| | |
| | | document.getElementById("deleteLastPoint").style.opacity = 0.3; |
| | | } |
| | | } |
| | | //--------------------------------- |
| | | function ResetButtons() |
| | | { |
| | | $("#horizontalSurface").removeClass("MenuButtonHighlight"); |
| | |
| | | |
| | | } |
| | | |
| | | //--------------------------------- |
| | | //------------------ |
| | | // Reset |
| | | //------------------ |
| | | function Reset(FirstTime, FromMouseInputMode) |
| | | { |
| | | |
| | | ResetButtons(); |
| | | SGWorld.Window.SetInputMode(0); |
| | | gGeometry = null; |
| | | } |
| | | |
| | | |
| | | |
| | | function SetSnapping() |
| | | { |
| | | if( $("#snapping").hasClass("MenuButtonHighlight")) |
| | |
| | | else |
| | | SGWorld.SetParam(9912,0); |
| | | } |
| | | //--------------------------------- |
| | | |
| | | |
| | | |
| | | function OnSnapping() |
| | | { |
| | | //$("#snapping").removeClass("MenuButtonHighlight"); |
| | |
| | | } |
| | | |
| | | } |
| | | //--------------------------------- |
| | | |
| | | function On3DPlane() |
| | | { |
| | | |
| | |
| | | |
| | | Reset(0,0); |
| | | $(event.srcElement).addClass("MenuButtonHighlight"); |
| | | SGWorld.Command.Execute(2358,0);//__TEC_MEASURE_AREA |
| | | SGWorld.Command.Execute(1037,0); |
| | | |
| | | textContainer = document.querySelector('.textarea-container'); |
| | | textareaSize = textContainer.querySelector('.textarea-size'); |
| | |
| | | |
| | | EnableDisableButtons(); |
| | | } |
| | | //--------------------------------- |
| | | |
| | | function OnTerrainSurface() |
| | | { |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //Reset(0,0); |
| | | g_bCalculateTerrainArea = true; |
| | | if(document.getElementById("sampleInterval").value>0.0) |
| | | SGWorld.Command.Execute(2359/*__TEC_MEASURE_TERRAIN_AREA*/,document.getElementById("sampleInterval").value); |
| | | g_bCalculateTerrainArea = true; |
| | | SGWorld.Command.Execute(1165,document.getElementById("sampleInterval").value); |
| | | g_bCalculateTerrainArea = false; |
| | | |
| | | SetSnapping(); |
| | | } |
| | | //--------------------------------- |
| | | |
| | | function OnHorizontalSurface() |
| | | { |
| | | if( $(event.srcElement).hasClass("MenuButtonHighlight")) |
| | |
| | | |
| | | Reset(0,0); |
| | | $(event.srcElement).addClass("MenuButtonHighlight"); |
| | | SGWorld.Command.Execute(2359/*__TEC_MEASURE_TERRAIN_AREA*/,0); |
| | | SGWorld.Command.Execute(1165,0); |
| | | |
| | | textContainer = document.querySelector('.textarea-container'); |
| | | textareaSize = textContainer.querySelector('.textarea-size'); |
| | |
| | | SGWorld.SetOptionParam("AreaMeasurementDefaultMode",_HORIZONTAL_NAME); |
| | | EnableDisableButtons(); |
| | | } |
| | | //--------------------------------- |
| | | |
| | | function OnDeleteLastPoint() |
| | | { |
| | | SGWorld.SetParam(9914,0); |
| | |
| | | </html> |
| | | |
| | | |
| | | <!--Sig:00000040au6WjiNW.uqyaxQdPdCltSVnmGMYOWXEgBB9yrqQ.Kyq91MhWbUupggV5yi1GRel4nJZMYQa3tOFAX56jNS8XmJJ--> |
| | | <!--Sig:00000040cmE.PBmLiWjz#bS.7ZWINxbOMbqfXqeomSoDY5dub1B7HFdROoCX7zoMTDDWngnh3FAbpgzaoXzBPqFecaMgMAJJ--> |
| | |
| | | SGLang.lang = $.extend(SGLang.lang,{ |
| | | ToolTitle: "é¢ç§¯æµé", |
| | | ToolName: "å°å½¢åé¢", |
| | | help: "帮å©", |
| | | Text0: "åæ¶", |
| | | Text1: "å 餿åèç¹", |
| | | Text2: "æ°´å¹³é¢", |
| | | Text3: "å°è¡¨", |
| | | Text4: "å°å½¢å°è¡¨", |
| | | Text5: "éæ ·é´é ", |
| | | Text6: "å建æµé对象", |
| | | Text7: "ææ", |
| | | ToolTitle: "SkylineGlobe - Skyline Software Systems, Inc.", |
| | | ToolName: "Terrain Profile", |
| | | help: "Help", |
| | | Text0: "Cancel", |
| | | Text1: "Delete Last Point", |
| | | Text2: "Horizontal surface", |
| | | Text3: "Surface", |
| | | Text4: "3D surface", |
| | | Text5: "Surface Sample Interval ", |
| | | Text6: "Create Measurement Objects", |
| | | Text7: "Snapping", |
| | | Text19: "", |
| | | Text17: "åä½", |
| | | Text18: " ç±³", |
| | | Text19: "å 餿µéå¼", |
| | | Text20: "å 餿åä¸ä¸ªæµéç¹", |
| | | Text21: "å°æµéç¹ææå°è¾¹ã对象åé¡¶ç¹", |
| | | Text22: "计ç®å¨å°å½¢ä¸çæ°´å¹³æå½±é¢ç§¯", |
| | | Text23: "计ç®ä»»æå¹³é¢ä¸çé¢ç§¯ï¼è¯¥å¤è¾¹å½¢çæ¹åç±éå®çåä¸ä¸ªç¹å³å®ã", |
| | | Text24: "èèå°å½¢èµ·ä¼ï¼è®¡ç®éå®åºåç表é¢ç§¯ã", |
| | | Text25: "é¢ç§¯:\å¨é¿:", |
| | | Text26: "表é¢ç§¯:", |
| | | Text17: "Units", |
| | | Text18: " meters", |
| | | Text19: "Delete the measurement.", |
| | | Text20: "Delete the last measurement point.", |
| | | Text21: "Snap the measurement points to edges, objects, and vertices.", |
| | | Text22: "Calculate the area of the horizontal projection of your selection on the terrain.", |
| | | Text23: "Calculate area on an arbitrary plane. The polygonâs orientation is determined by the first three points selected.", |
| | | Text24: "Calculate the surface area of the selected region taking into account terrain contours.", |
| | | Text25: "Area:\nPerimeter:", |
| | | Text26: "Surface Area:", |
| | | |
| | | |
| | | |
| | | Text999: "" |
| | | }); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | SGLang.lang = $.extend(SGLang.lang,{ |
| | | ToolTitle: "SkylineGlobe - Skyline Software Systems, Inc.", |
| | | ToolName: "Terrain Profile", |
| | | help: "Help", |
| | | //Text0: "Cancel", |
| | | //Text1: "Delete Last Point", |
| | | //Text2: "Aerial", |
| | | //Text3: "Horizontal", |
| | | //Text4: "Vertical", |
| | | //Text5: "OnGround", |
| | | Text6: "Create Measurement Objects", |
| | | Text7: "Snapping", |
| | | //Text19: "Calculating query points", |
| | | //Text16: "Left click on the terrain to draw a polygon/Polyline. Right click to finish operation.", |
| | | Text17: "Units", |
| | | Text18: "Delete the measurement.", |
| | | Text19: "Delete the last measurement point.", |
| | | Text20: "Snap the measurement points to edges, objects, and vertices.", |
| | | // Text21: "Calculate aerial distance, i.e., the actual distance between points in the 3D Window.", |
| | | // Text22: "Calculate horizontal distance between points in the 3D Window.", |
| | | Text23: "Display the terrain elevation profile along an aerial line.", |
| | | Text24: "Show Aerial Distance", |
| | | Text25: "Show Horizontal Distance", |
| | | Text26: "Show Vertical Distance", |
| | | |
| | | }); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | SGLang.lang = $.extend(SGLang.lang,{ |
| | | ToolTitle: "SmartEarth - æ³°çæ°åç§æï¼åäº¬ï¼æéå
¬å¸", |
| | | ToolName: "å°å½¢åé¢", |
| | | help: "帮å©", |
| | | //Text0: "Cancel", |
| | | //Text1: "Delete Last Point", |
| | | //Text2: "Aerial", |
| | | //Text3: "Horizontal", |
| | | //Text4: "Vertical", |
| | | //Text5: "OnGround", |
| | | Text6: "å建æµé对象", |
| | | Text7: "ææ", |
| | | //Text19: "Calculating query points", |
| | | //Text16: "Left click on the terrain to draw a polygon/Polyline. Right click to finish operation.", |
| | | Text17: "åä½", |
| | | Text18: "å 餿µéç»æ.", |
| | | Text19: "å 餿åä¸ä¸ªèç¹.", |
| | | Text20: "ææè¾¹çº¿ï¼å¯¹è±¡ä»¥åèç¹.", |
| | | // Text21: "Calculate aerial distance, i.e., the actual distance between points in the 3D Window.", |
| | | // Text22: "Calculate horizontal distance between points in the 3D Window.", |
| | | Text23: "æ¾ç¤ºå°å½¢é«ç¨åé¢.", |
| | | Text24: "æ¾ç¤ºç©ºé´è·ç¦»", |
| | | Text25: "æ¾ç¤ºæ°´å¹³è·ç¦»", |
| | | Text26: "æ¾ç¤ºåç´è·ç¦»", |
| | | |
| | | }); |
| | |
| | | SGLang.lang = $.extend(SGLang.lang,{ |
| | | ToolTitle: "è·ç¦»æµé", |
| | | ToolName: "å°å½¢åé¢", |
| | | help: "帮å©", |
| | | ToolTitle: "SkylineGlobe - Skyline Software Systems, Inc.", |
| | | ToolName: "Terrain Profile", |
| | | help: "Help", |
| | | //Text0: "Cancel", |
| | | //Text1: "Delete Last Point", |
| | | //Text2: "Aerial", |
| | | //Text3: "Horizontal", |
| | | //Text4: "Vertical", |
| | | //Text5: "OnGround", |
| | | Text6: "å建æµé对象", |
| | | Text7: "ææ", |
| | | Text6: "Create Measurement Objects", |
| | | Text7: "Snapping", |
| | | //Text19: "Calculating query points", |
| | | //Text16: "Left click on the terrain to draw a polygon/Polyline. Right click to finish operation.", |
| | | Text17: "åä½", |
| | | Text18: "å 餿µéå¼", |
| | | Text19: "å 餿åä¸ä¸ªæµéç¹", |
| | | Text20: "å°æµéç¹ææå°è¾¹ã对象åé¡¶ç¹", |
| | | Text17: "Units", |
| | | Text18: "Delete the measurement.", |
| | | Text19: "Delete the last measurement point.", |
| | | Text20: "Snap the measurement points to edges, objects, and vertices.", |
| | | // Text21: "Calculate aerial distance, i.e., the actual distance between points in the 3D Window.", |
| | | // Text22: "Calculate horizontal distance between points in the 3D Window.", |
| | | Text23: "å¨ç©ºä¸æ¾ç¤ºå°å½¢é«ç¨", |
| | | Text24: "æ¾ç¤ºç©ºä¸è·ç¦»", |
| | | Text25: "æ¾ç¤ºæ°´å¹³è·ç¦»", |
| | | Text26: "æ¾ç¤ºåç´è·ç¦»", |
| | | Text23: "Display the terrain elevation profile along an aerial line.", |
| | | Text24: "Show Aerial Distance", |
| | | Text25: "Show Horizontal Distance", |
| | | Text26: "Show Vertical Distance", |
| | | |
| | | }); |
| | |
| | | <style> |
| | | </style> |
| | | </head> |
| | | <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="border: 0px; overflow: hidden;" id="Body" class="hideUntillTranslated ToolButtonsArea" onload="Init()" onunload="OnUnload()"> |
| | | <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" style="border: 0px" id="Body" class="hideUntillTranslated" onload="Init()" onunload="OnUnload()"> |
| | | <!--oncontextmenu="return false;"> onclick="bHide=true;HideOptionsNow()" > --> |
| | | <table border="0" width="100%" class="s8w" cellspacing="0" cellpadding="0"> |
| | | <table border="0" width="100%" cellspacing="0" cellpadding="2"> |
| | | |
| | | |
| | | <tr class="s8"> |
| | | <td colspan="2" align="left" class="ToolButtonsArea" style="border-bottom: 2px solid #ffffff;"> |
| | | <button id="deleteMeasure" class="MenuButton2" style="border:none;" onclick="OnDeleteMeasure();"><img src="./img/delete.png" /><br /> <!-- <span class="i18n">Text0</span> --></button> |
| | | <button id="deleteLastPoint" class="MenuButton2" style="border:none;" onclick="OnDeleteLastPoint()"><img src="./img/delete_last_point.png" /><br /><!-- <span class="i18n">Text1</span> --></button> |
| | | <button id="snapping" class="MenuButton2" style="border:none;" onclick="OnSnapping()"><img src="./img/snap.png" /><br /><!-- <span class="i18n" style="font:#2A4EA5">Text7</span>--> </button> |
| | | <button id="onGroundDistance" class="MenuButton2" style="border-left: 2px solid #ffffff;border-right: none;" onclick="OnGroundDistance()"><img src="./img/TerrainProfile.png" /><br /><!-- <span class="i18n" style="font:#2A4EA5">Text5</span>--></button> |
| | | <button id="snapping" class="MenuButton2" style="border-right: 2px solid #ffffff;" onclick="OnSnapping()"><img src="./img/snap.png" /><br /><!-- <span class="i18n" style="font:#2A4EA5">Text7</span>--> </button> |
| | | <button id="onGroundDistance" class="MenuButton2" style="border:none;" onclick="OnGroundDistance()"><img src="./img/TerrainProfile.png" /><br /><!-- <span class="i18n" style="font:#2A4EA5">Text5</span>--></button> |
| | | |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | |
| | | <table border="0" width="100%" class="s8w ToolButtonsArea" cellspacing="0" cellpadding="3pt"> |
| | | |
| | | |
| | | <tr id="createTRId"> |
| | | <td > |
| | | <span class="i18n s8w" style="vertical-align:top;">Text6</span> |
| | | <tr class="s8" height="40"> |
| | | <td align="left" class="ToolButtonsArea" style="color:#ffffff;"> |
| | | <span class="i18n" style="vertical-align:top;">Text6</span> |
| | | <input type="checkbox" align="bottom" id="createMeasurementObject" style="width:25px;" onclick="CreateMeasurementObject();"/> |
| | | </td> |
| | | </tr> |
| | | <tr > |
| | | <td > |
| | | <span class="i18n s8w" style="vertical-align:top;color:yellow;">Text24</span> |
| | | <tr height="10"> |
| | | <td align="left" class="ToolButtonsArea" style="color:#ffffff;"> |
| | | <span class="i18n" style="vertical-align:top;color:yellow;">Text24</span> |
| | | <input type="checkbox" id="showAerialDistance" checked align="bottom" style="width:75px;" onclick="OnShowAerial();"/> |
| | | </td> |
| | | |
| | | </tr> |
| | | <tr > |
| | | <td > |
| | | <span class="i18n s8w" style="vertical-align:top;color:white;">Text25</span> |
| | | <tr height="10"> |
| | | <td align="left" class="ToolButtonsArea" style="color:#ffffff;"> |
| | | <span class="i18n" style="vertical-align:top;color:white;">Text25</span> |
| | | <input type="checkbox" id="showHorizontalDistance" align="bottom" style="width:25px;" onclick="OnShowHorizontal();"/> |
| | | </td> |
| | | </tr> |
| | | <tr > |
| | | <td > |
| | | <span class="i18n s8w" style="vertical-align:top;color:#FF49E6;">Text26</span> |
| | | <tr height="10"> |
| | | <td align="left" class="ToolButtonsArea" style="color:#ffffff;"> |
| | | <span class="i18n" style="vertical-align:top;color:#FF49E6;">Text26</span> |
| | | <input type="checkbox" id="showVerticalDistance" align="bottom" style="width:55px;" onclick="OnShowVertical();"/> |
| | | </td> |
| | | </tr> |
| | | <tr > |
| | | <td class="textarea-container"> |
| | | <tr class="s8" height="72" bgcolor="0"> |
| | | <td class="textarea-container" style="color:#ffffff"> |
| | | <style> |
| | | div.textarea-size{font-size: 12px;} |
| | | </style> |
| | | <div class="textarea-size s8w" ></div> |
| | | <div class="textarea-size" ></div> |
| | | </td> |
| | | </tr> |
| | | <tr id="unitTRId"> |
| | | <td align="right" > |
| | | <span id= "changeMeasurementUnits" onclick="OnChangeMeasurementUnits()" class="i18n s9w link">Text17</span> |
| | | <tr class="s8"> |
| | | <td align="right" bgcolor="0"> |
| | | <u style="color:#ffffff"><a class="btn btn-primary" style="color:#ffffff" href="#" role="button" id= "changeMeasurementUnits" onclick="OnChangeMeasurementUnits()"><span class="i18n">Text17</span></a></u> |
| | | </td> |
| | | </tr> |
| | | |
| | |
| | | |
| | | |
| | | var gGeometry = null; |
| | | |
| | | |
| | | //---------------- |
| | | function Init() |
| | | { |
| | | SGWorld.AttachEvent("OnMeasurementDistanceResult", OnMeasurementResult); |
| | | SGWorld.AttachEvent("OnInputModeChanged", OnInputModeChanged); |
| | | SGWorld.AttachEvent("OnEndDrawMeasurement", OnEndDrawMeasurement); |
| | | SGWorld.AttachEvent("OnLButtonUp", OnLButtonUp); |
| | | |
| | | var isPM = GetParamValue("pm", "0"); |
| | | if (isPM=="1"){ |
| | | $("#unitTRId").hide(); |
| | | $("#createTRId").hide(); |
| | | $("#onGroundDistance").hide(); |
| | | } |
| | | document.getElementById("changeMeasurementUnits").value=SGLang.i18n(""); |
| | | document.getElementById("deleteMeasure").title=SGLang.i18n("Text18"); |
| | | document.getElementById("deleteLastPoint").title=SGLang.i18n("Text19"); |
| | | document.getElementById("snapping").title=SGLang.i18n("Text20"); |
| | | document.getElementById("onGroundDistance").title=SGLang.i18n("Text23"); |
| | | |
| | | ////Turn off CreateMeasurementObject |
| | | //SGWorld.Command.Execute(2225,0); |
| | | |
| | | var bCreateMeasurementObject = (isPM=="1")?false:SGWorld.GetOptionParam("CreateMeasurementObjects"); |
| | | document.getElementById("createMeasurementObject").checked = bCreateMeasurementObject; |
| | | CreateMeasurementObject(); |
| | | |
| | | Reset(1,0); |
| | | |
| | | SGWorld.Command.Execute(2356,0);//__TEC_MEASURE_AERIAL_DIST |
| | | |
| | | SetSnapping(); |
| | | |
| | | document.getElementById("showAerialDistance").checked = SGWorld.GetOptionParam(_AERIAL_REG_NAME); |
| | | document.getElementById("showHorizontalDistance").checked = SGWorld.GetOptionParam(_HORIZONTAL_REG_NAME); |
| | | document.getElementById("showVerticalDistance").checked = SGWorld.GetOptionParam(_VERTICAL_REG_NAME); |
| | | |
| | | //////////////OnShow(); |
| | | |
| | | EnableDisableButtons(); |
| | | |
| | | |
| | | //showVerticalDistance |
| | | } |
| | | //---------------- |
| | | // ShowPopup |
| | | function ShowPopup(ProfileType, ObjID) |
| | | { |
| | | var CompareStr = ""; |
| | |
| | | Reset(0,0); |
| | | |
| | | |
| | | SGWorld.Command.Execute(2356, 0);//__TEC_MEASURE_AERIAL_DIST |
| | | SGWorld.Command.Execute(1035, 0); |
| | | |
| | | EnableDisableButtons(); |
| | | //alert("bb"); |
| | |
| | | |
| | | } |
| | | |
| | | function Init() |
| | | { |
| | | SGWorld.AttachEvent("OnMeasurementDistanceResult", OnMeasurementResult); |
| | | SGWorld.AttachEvent("OnInputModeChanged", OnInputModeChanged); |
| | | SGWorld.AttachEvent("OnEndDrawMeasurement", OnEndDrawMeasurement); |
| | | SGWorld.AttachEvent("OnLButtonUp", OnLButtonUp); |
| | | |
| | | |
| | | document.getElementById("changeMeasurementUnits").value=SGLang.i18n(""); |
| | | |
| | | document.getElementById("deleteMeasure").title=SGLang.i18n("Text18"); |
| | | document.getElementById("deleteLastPoint").title=SGLang.i18n("Text19"); |
| | | document.getElementById("snapping").title=SGLang.i18n("Text20"); |
| | | |
| | | |
| | | document.getElementById("onGroundDistance").title=SGLang.i18n("Text23"); |
| | | |
| | | ////Turn off CreateMeasurementObject |
| | | //SGWorld.Command.Execute(2225,0); |
| | | |
| | | var bCreateMeasurementObject = SGWorld.GetOptionParam("CreateMeasurementObjects"); |
| | | document.getElementById("createMeasurementObject").checked = bCreateMeasurementObject; |
| | | |
| | | Reset(1,0); |
| | | |
| | | |
| | | SGWorld.Command.Execute(1035,0); |
| | | |
| | | |
| | | SetSnapping(); |
| | | |
| | | |
| | | |
| | | |
| | | document.getElementById("showAerialDistance").checked = SGWorld.GetOptionParam(_AERIAL_REG_NAME); |
| | | document.getElementById("showHorizontalDistance").checked = SGWorld.GetOptionParam(_HORIZONTAL_REG_NAME); |
| | | document.getElementById("showVerticalDistance").checked = SGWorld.GetOptionParam(_VERTICAL_REG_NAME); |
| | | |
| | | |
| | | OnShow(); |
| | | |
| | | EnableDisableButtons(); |
| | | |
| | | |
| | | //showVerticalDistance |
| | | |
| | | |
| | | } |
| | | |
| | | function OnLButtonUp(Flags, X, Y) |
| | | { |
| | |
| | | |
| | | function OnMeasurementResult(measurementResult,SounrceID) |
| | | { |
| | | measurementResult = measurementResult.replace("Total Aerial Distance:", "æ»ç©ºä¸è·ç¦»ï¼") |
| | | .replace("Total Horizontal Distance:", "æ»æ°´å¹³è·ç¦»ï¼") |
| | | .replace("Total Vertical Distance:", "æ»åç´è·ç¦»ï¼") |
| | | .replace("Total Vertical Distance (First point to last point):", "æ»åç´è·ç¦»ï¼ä»ç¬¬ä¸ç¹å°æåä¸ç¹ï¼ï¼") |
| | | .replace("Slope:", "å¡åº¦ï¼") |
| | | .replace("Slope (First point to last point):", "å¡åº¦ï¼ä»ç¬¬ä¸ç¹å°æåä¸ç¹ï¼ï¼") |
| | | .replace(/km/g, " åç±³") |
| | | .replace(/cm/g, " åç±³") |
| | | .replace(/mm/g, " 毫米") |
| | | .replace(/m/g, " ç±³"); |
| | | |
| | | textContainer = document.querySelector('.textarea-container'); |
| | | textareaSize = textContainer.querySelector('.textarea-size'); |
| | | //input = textContainer.querySelector('textarea'); |
| | |
| | | </html> |
| | | |
| | | |
| | | <!--Sig:000000408JYdtBwnEhYwKwSHBToL4ROTBsQ92IumwfiHRg2dcUb.aSdjqmR2hWrrJjiq7xBbYr6MVX764LIe8a6004zvXaJJ--> |
| | | <!--Sig:000000405.7Y75ySqtgDkqtb.Vz1lxgEisNhH.6TgboicXd4MIc7pamv2pMtgQL32A.a0g3r3BvYuCKxsIkZyGSiAi2LX8JJ--> |
| | |
| | | <EmbeddedResource Include="Resources\DistanceMeasurement\Lang.js"> |
| | | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="Resources\AreaMeasurement\1033\Lang.js"> |
| | | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="Resources\AreaMeasurement\2052\Lang.js"> |
| | | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="Resources\DistanceMeasurement\1033\Lang.js"> |
| | | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="Resources\DistanceMeasurement\2052\Lang.js"> |
| | | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
| | | </EmbeddedResource> |
| | | <Content Include="Resources\log4net4.dll" /> |
| | | <Content Include="Resources\Newtonsoft.Json.dll" /> |
| | | </ItemGroup> |