管道基础大数据平台系统开发-【CS】-ExportMap
13693261870
2024-01-11 fbb3ef63775673bdceeb921542d5cd3f06f1ca45
适配TE 7.21版本
已修改6个文件
38 ■■■■ 文件已修改
TEWin/FrmTool.Designer.cs 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
TEWin/FrmTree.Designer.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
TEWin/FrmWin.Designer.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
TEWin/FrmWin.cs 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
TEWin/Resources/Volume/Volume.html 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
TEWin/app.config 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
TEWin/FrmTool.Designer.cs
@@ -36,7 +36,7 @@
            // txtCode
            // 
            this.txtCode.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.txtCode.Location = new System.Drawing.Point(244, 32);
            this.txtCode.Location = new System.Drawing.Point(225, 12);
            this.txtCode.Name = "txtCode";
            this.txtCode.Size = new System.Drawing.Size(160, 26);
            this.txtCode.TabIndex = 1;
@@ -45,7 +45,7 @@
            // btnTest
            // 
            this.btnTest.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.btnTest.Location = new System.Drawing.Point(417, 32);
            this.btnTest.Location = new System.Drawing.Point(399, 12);
            this.btnTest.Name = "btnTest";
            this.btnTest.Size = new System.Drawing.Size(75, 26);
            this.btnTest.TabIndex = 0;
@@ -57,7 +57,7 @@
            // 
            this.cbCode.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.cbCode.FormattingEnabled = true;
            this.cbCode.Location = new System.Drawing.Point(23, 34);
            this.cbCode.Location = new System.Drawing.Point(12, 12);
            this.cbCode.Name = "cbCode";
            this.cbCode.Size = new System.Drawing.Size(198, 24);
            this.cbCode.TabIndex = 2;
@@ -66,12 +66,14 @@
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(504, 89);
            this.ClientSize = new System.Drawing.Size(486, 48);
            this.Controls.Add(this.cbCode);
            this.Controls.Add(this.btnTest);
            this.Controls.Add(this.txtCode);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            this.Name = "FrmTool";
            this.ShowInTaskbar = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
            this.Text = "FrmTool";
            this.ResumeLayout(false);
            this.PerformLayout();
TEWin/FrmTree.Designer.cs
@@ -41,14 +41,14 @@
            this.axTETree.Margin = new System.Windows.Forms.Padding(2);
            this.axTETree.Name = "axTETree";
            this.axTETree.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axTETree.OcxState")));
            this.axTETree.Size = new System.Drawing.Size(400, 600);
            this.axTETree.Size = new System.Drawing.Size(280, 600);
            this.axTETree.TabIndex = 1;
            // 
            // FrmTree
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(400, 600);
            this.ClientSize = new System.Drawing.Size(280, 600);
            this.Controls.Add(this.axTETree);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.Margin = new System.Windows.Forms.Padding(2);
TEWin/FrmWin.Designer.cs
@@ -41,14 +41,14 @@
            this.axTEWin.Margin = new System.Windows.Forms.Padding(2);
            this.axTEWin.Name = "axTEWin";
            this.axTEWin.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axTEWin.OcxState")));
            this.axTEWin.Size = new System.Drawing.Size(784, 561);
            this.axTEWin.Size = new System.Drawing.Size(1024, 768);
            this.axTEWin.TabIndex = 1;
            // 
            // FrmWin
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(784, 561);
            this.ClientSize = new System.Drawing.Size(1024, 768);
            this.Controls.Add(this.axTEWin);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.Margin = new System.Windows.Forms.Padding(2);
TEWin/FrmWin.cs
@@ -26,7 +26,7 @@
        string mainUrl;
        public SGWorld74 SG;
        public SGWorld71 SG;
        private bool isAngle;
@@ -34,9 +34,9 @@
        private double angleSize;
        private ITerrainLabel74 angleLabel;
        private ITerrainLabel71 angleLabel;
        private ITerrainPolyline74 angleLine;
        private ITerrainPolyline71 angleLine;
        private string angleGroupName = "角量算";
@@ -62,7 +62,7 @@
                    return;
                }
                SG = new SGWorld74();
                SG = new SGWorld71();
                SG.OnLoadFinished += SG_OnLoadFinished;
                tree = new FrmTree();
@@ -141,7 +141,7 @@
                    SG.Command.Execute(1014, 26); break;
                case 0xc6: // 模型数据(*.osgb)
                    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);
                    RunExe(Path.Combine(ConfigurationManager.AppSettings["tePath"], "MeshLayerTool.exe"), " -RunConvertor -Mode ImportMeshLayer -Type osgb", false); // -RunApp TerraExplorer
                    break;
                case 0xc7: // 模型数据(*.obj)
                    SG.Command.Execute(1012, 13); break;
@@ -206,7 +206,7 @@
                    this.ShowHtml("坡度分析", mainUrl + @"\Resources\SlopeMapQuery\SlopeMapQuery.html", 20, 20, 350, 365);
                    break;
                case 1045:
                    this.ShowHtml("体积分析", mainUrl + @"\Resources\Volume\Volume.html", 20, 20, 350, 255);
                    this.ShowHtml("体积分析", mainUrl + @"\Resources\Volume\Volume.html", 20, 20, 350, 225);
                    break;
            }
        }
TEWin/Resources/Volume/Volume.html
@@ -89,7 +89,7 @@
            </select>
            </td>
          </tr>
          <tr>
          <!--<tr>
            <td class="s8b">
              <label for="Mode" class="i18n">drawObjects</label>
            </td>
@@ -98,9 +98,8 @@
                <input type="checkbox" id="showObjectsID">
                <span class="slider round"></span>
              </label>
              <!-- &nbsp; <input type="checkbox" id="showObjectsID" /> -->
            </td>
          </tr>
          </tr>-->
        </table>
        <tr class="s8">
TEWin/app.config
@@ -3,7 +3,8 @@
  <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"/>
    <!--<add key="tePath" value="C:\Program Files\Skyline\TerraExplorer Pro"/>-->
    <add key="tePath" value="C:\Program Files\SmartEarth\TerraExplorer Pro"/>
  </appSettings>
  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>