예제 #1
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            asc.controllInitializeSize(this);
            sgworld.OnLoadFinished += new
                                      _ISGWorld61Events_OnLoadFinishedEventHandler(OnProjectLoadFinished);
            //string flyFile = "http://www.skylineglobe.com/SkylineGlobe/WebClient/PresentationLayer/WebClient/SkyglobeLB.fly";
            string flyFile = Application.StartupPath + "\\elta.fly";

            //ITE.LoadEx(Application.StartupPath + @"\elta.fly", "", "", 0);
            sgworld.Project.Open(flyFile, true, null, null);
            CoTE                     = new TerraExplorerClass();
            ITE                      = (TerraExplorerX.ITerraExplorer5)CoTE;
            IInfoTree                = (TerraExplorerX.IInformationTree5)CoTE;
            IRender                  = (IRender5)CoTE;
            IObjectManager           = (IObjectManager5)CoTE;
            this.CoTE.OnLButtonDown += new _ITerraExplorerEvents5_OnLButtonDownEventHandler(OnLButtonDown);

            numObjs  = 0;
            currObj  = 0;
            objArray = new object[2000];
            sx       = new double[2000];
            sy       = new double[2000];
            xx       = new double[2000];
            yy       = new double[2000];
            InitArray();
        }
예제 #2
0
파일: Program.cs 프로젝트: hy1314200/HyDM
        static Program()
        {
            TE = new TerraExplorerClass();
            sgworld = new SGWorld61Class();

            Program.ITE = Program.TE as ITerraExplorer5;
            Program.IInfoTree = (IInformationTree5)Program.TE;
            Program.pRender = (IRender5)Program.TE;
            Program.pPlane5 = (IPlane5)Program.TE;
            Program.Terrain5 = (ITerrain5)Program.TE;
            Program.pNavigate6 = (INavigate61)Program.sgworld.Navigate;
            Program.pIobject = (IObjectManager51)Program.TE;
            Program.pCreator6 = (ICreator61)Program.sgworld.Creator;
            Program.pDateTime = (IDateTime61)Program.sgworld.DateTime;
            Program.pCoordServices6 = (ICoordServices61)Program.sgworld.CoordServices;
            Program.CoordSys = (ICoordSys3)Program.TE;
        }