Esempio n. 1
0
 public RectInt(PointInt location, SizeInt size)
 {
     this.x      = location.X;
     this.y      = location.Y;
     this.width  = size.Width;
     this.height = size.Height;
 }
Esempio n. 2
0
        protected void OnCurrentPositionChanged(PointInt newPosition)
        {
            MapViewPositionChanged temp = currentPositionChanged;

            if (temp != null)
            {
                temp(newPosition);
            }
        }
Esempio n. 3
0
 public void GoToPosition(MapLocation pos)
 {
     //mapViewRect.X = (int)(position.X - mapViewRect.Width / 2);
     //mapViewRect.Y = (int)(position.Y - mapViewRect.Height / 2);
     ////mapViewRealRect.X = mapViewRect.X * ZoomRate;
     ////mapViewRealRect.Y = mapViewRect.Y * ZoomRate;
     //Level = level;
     //rootLayer.OnUpdateMap(mapViewRect, Level);
     //foreach (MapLayer maplayer in maplayerItems)
     //    maplayer.OnUpdateMap(mapViewRect, Level);
     Level = pos.Level;
     RenderOffsetRealView = new PointD(pos.Position.X * ZoomRate, pos.Position.Y * ZoomRate);
     mapViewCenter        = pos.Position;
 }
Esempio n. 4
0
 public RawTile(MapType type, PointInt tileXY, int level)
 {
     this.Type   = type;
     this.TileXY = tileXY;
     this.Level  = level;
 }
Esempio n. 5
0
 public bool Contains(PointInt pt)
 {
     return(Contains(pt.X, pt.Y));
 }