Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 3
0
 public override void OnCreate(object hook)
 {
     m_TEHelper = hook as Utility.TEHookHelper;
 }
Esempio n. 4
0
 public override void OnCreate(object hook)
 {
     m_TEHelper = hook as Utility.TEHookHelper;
 }