예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
파일: UC3DWindow.cs 프로젝트: zj8487/HyDM
 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;
 }
예제 #4
0
 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;
 }