Example #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);
        }
Example #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);
        }