public UC3DNavigate() { InitializeComponent(); this.TerrainExplorer = new TerraExplorerX.TerraExplorerClass(); this.SGWorld = new TerraExplorerX.SGWorld61(); SGWorld.SetOptionParam("AltitudeAndDistance", 0); SGWorld.SetOptionParam("AltitudeType", 0); m_TEHelper = new Utility.TEHookHelper(TerrainExplorer, SGWorld); Utility.CommandAdapter cmdAdapter = new Utility.CommandAdapter(m_TEHelper); //cmdAdapter.AddCommand(new ThreeDimenDataManage.Command.TE.CommandLoadProject()); string[] strCommands = { "ThreeDimenDataManage.Command.TE.CommandLoadProject", "ThreeDimenDataManage.Command.TE.CommandViewGlobe", "ThreeDimenDataManage.Command.TE.CommandViewState", "ThreeDimenDataManage.Command.TE.CommandViewCity", "ThreeDimenDataManage.Command.TE.CommandViewStreet", "ThreeDimenDataManage.Command.TE.CommandViewHouse", "ThreeDimenDataManage.Command.TE.CommandAddShpLayer" }; cmdAdapter.Adapter(this.barManager1, strCommands); }
public void CreateHooker(out TerraExplorerX.SGWorld61 sgwTopLeft, out TerraExplorerX.SGWorld61 sgwTopRight, out TerraExplorerX.SGWorld61 sgwBottomLeft, out TerraExplorerX.SGWorld61 sgwBottomRight) { if (m_sgwTopLeft == null) { m_sgwTopLeft = new TerraExplorerX.SGWorld61Class(); m_sgwTopRight = this.teTopRight.CreateInstance("TerraExplorerX.SGWorld61") as TerraExplorerX.SGWorld61; m_sgwBottomLeft = this.teBottomLeft.CreateInstance("TerraExplorerX.SGWorld61") as TerraExplorerX.SGWorld61; m_sgwBottomRight = this.teBottomRight.CreateInstance("TerraExplorerX.SGWorld61") as TerraExplorerX.SGWorld61; } sgwTopLeft = m_sgwTopLeft; sgwTopRight = m_sgwTopRight; sgwBottomLeft = m_sgwBottomLeft; sgwBottomRight = m_sgwBottomRight; }