示例#1
0
 public CSymbol(string pDesc, bool pBlinking, double pZoom, float pMWidth, double pGocX, double pGocY, CGraphicObjs pGObjs, float pHeading)
     : this()
 {
     this.m_GocX   = pGocX;
     this.m_GocY   = pGocY;
     this.m_Zoom   = pZoom;
     this.m_MWidth = pMWidth;
     this.m_GObjs  = new CGraphicObjs();
     try
     {
         IEnumerator enumerator = pGObjs.GetEnumerator();
         while (enumerator.MoveNext())
         {
             GraphicObject graphicObject = (GraphicObject)enumerator.Current;
             this.m_GObjs.Add(graphicObject.Clone());
         }
     }
     finally
     {
         IEnumerator enumerator;
         if (enumerator is IDisposable)
         {
             (enumerator as IDisposable).Dispose();
         }
     }
     this.m_Description = pDesc;
     this.m_Blinking    = pBlinking;
     this.Heading       = pHeading;
 }
示例#2
0
        public CSymbol(AxMap pMap, CGraphicObjs pGObjs)
            : this()
        {
            float num  = 0f;
            float num2 = 0f;

            pMap.ConvertCoord(ref num, ref num2, ref this.m_GocX, ref this.m_GocY, ConversionConstants.miScreenToMap);
            this.m_Zoom   = pMap.Zoom;
            this.m_MWidth = pMap.MapScreenWidth;
            this.m_GObjs  = new CGraphicObjs();
            try
            {
                IEnumerator enumerator = pGObjs.GetEnumerator();
                while (enumerator.MoveNext())
                {
                    GraphicObject graphicObject = (GraphicObject)enumerator.Current;
                    this.m_GObjs.Add(graphicObject.Clone());
                }
            }
            finally
            {
                IEnumerator enumerator;
                if (enumerator is IDisposable)
                {
                    (enumerator as IDisposable).Dispose();
                }
            }
            this.m_Description = "";
            this.m_Blinking    = false;
        }
示例#3
0
        public CSymbol(AxMap pMap, PointF pt0, CGraphicObjs pGObjs, double pZoom, float pMWidth)
            : this()
        {
            float x = pt0.X;
            float y = pt0.Y;

            pMap.ConvertCoord(ref x, ref y, ref this.m_GocX, ref this.m_GocY, ConversionConstants.miScreenToMap);
            pt0.Y         = y;
            pt0.X         = x;
            this.m_Zoom   = pZoom;
            this.m_MWidth = pMWidth;
            this.m_GObjs  = new CGraphicObjs();
            try
            {
                IEnumerator enumerator = pGObjs.GetEnumerator();
                while (enumerator.MoveNext())
                {
                    GraphicObject graphicObject = (GraphicObject)enumerator.Current;
                    this.m_GObjs.Add(graphicObject.Clone());
                }
            }
            finally
            {
                IEnumerator enumerator;
                if (enumerator is IDisposable)
                {
                    (enumerator as IDisposable).Dispose();
                }
            }
            this.m_Description = "";
            this.m_Blinking    = false;
        }