Esempio n. 1
0
 public RenderRegion(MapRectangle rect, DirtyEvent parentDirty)
 {
     dirtyEvent = new DirtyEvent(parentDirty);
     vertexList.Add(rect.GetNW());
     vertexList.Add(rect.GetSW());
     vertexList.Add(rect.GetSE());
     vertexList.Add(rect.GetNE());
 }
Esempio n. 2
0
		public RenderRegion(MapRectangle rect, DirtyEvent parentDirty)
		{
			this.dirtyEvent = new DirtyEvent(parentDirty);
			this.vertexList.Add(rect.GetNW());
			this.vertexList.Add(rect.GetSW());
			this.vertexList.Add(rect.GetSE());
			this.vertexList.Add(rect.GetNE());
		}
Esempio n. 3
0
        public TracedScreenPoint[] GetPath(MapRectangle mapWindow, int zoom, CoordinateSystemIfc csi)
        {
            MapRectangle        mapWindow2 = mapWindow.GrowFraction(0.1);
            List <TracedVertex> list       = IntersectWithRectangle(mapWindow2);

            TracedScreenPoint[] array = new TracedScreenPoint[list.Count];
            int num = 0;

            foreach (TracedVertex current in list)
            {
                array[num] = new TracedScreenPoint(current.originalIndex,
                                                   csi.GetTranslationInPixels(new LatLonZoom(mapWindow.GetNW().lat, mapWindow.GetNW().lon, zoom),
                                                                              current.position));
                num++;
            }

            return(array);
        }
Esempio n. 4
0
		public TracedScreenPoint[] GetPath(MapRectangle mapWindow, int zoom, CoordinateSystemIfc csi)
		{
			MapRectangle mapWindow2 = mapWindow.GrowFraction(0.1);
			List<TracedVertex> list = this.IntersectWithRectangle(mapWindow2);
			TracedScreenPoint[] array = new TracedScreenPoint[list.Count];
			int num = 0;
			foreach (TracedVertex current in list)
			{
				array[num] = new TracedScreenPoint(current.originalIndex, csi.GetTranslationInPixels(new LatLonZoom(mapWindow.GetNW().lat, mapWindow.GetNW().lon, zoom), current.position));
				num++;
			}
			return array;
		}