Beispiel #1
0
        public CTEObject showTEObject(CHotSpot hs1, CHotSpot hs2, bool isStopping = false)
        {
            CTEObject obj = null;

            switch (hs1.ObjectType)
            {
            case "Project":
                CRailwayProject rp = (CRailwayProject)(hs1.ObjectRef);

                //string s = "当前位置: " + rp.ToString() + "\t\t";

                //labelRoll2.Text = s;
                //labelRoll2.Refresh();

                obj = showTEProject(rp, isStopping);


                break;

            case "Firm":
                CRailwayFirm rf = (CRailwayFirm)(hs1.ObjectRef);
                obj = showTEFirms(rf, isStopping);
                break;

            case "Cons":
                ConsLocation cl = (ConsLocation)(hs1.ObjectRef);
                obj = showTECons(cl, isStopping);
                break;
            }
            return(obj);
        }
Beispiel #2
0
        public CTECons(ConsLocation cl, CRailwayScene s, CTEScene ss)
            : base(s, ss)
        {
            sgworld = new SGWorld66();
            consLoc = cl;
            IPosition66 p = sgworld.Creator.CreatePosition(cl.Longitude, cl.Latitude, 30, AltitudeTypeCode.ATC_TERRAIN_RELATIVE,
                                                           0, -90.0, 0, 0);

            circlePeople = sgworld.Creator.CreateCircle(p, cl.Number * 2 + 200, 0xFF0000FF, 0x00FF00FF, mGroupIDDynamic, cl.ProjName + cl.Number);
            //  circle.de
            circlePeople.LineStyle.Width = -3.0;
            circlePeople.Visibility.MinVisibilityDistance = 2000;
            //circle.SetParam

            labelSign = sgworld.Creator.CreateLabel(p, cl.Number + "", CGisDataSettings.gDataPath + @"Common\Textures\working.gif", CRWTEStandard.mLabelStyleL2, mGroupIDDynamic, "Con|" + cl.ProjName);
            //labelSign.Message.MessageID = sgworld.Creator.CreateMessage(MsgTargetPosition.MTP_POPUP, cl.ToString(), MsgType.TYPE_TEXT, true).ID;
        }
Beispiel #3
0
        private CTEObject showTECons(ConsLocation cl, bool isStopping = false)
        {
            CTECons tf = mTEConsList.Find(delegate(CTECons tff) { return(tff.consLoc == cl); });

            return(tf);
        }