示例#1
0
文件: Bookmark.cs 项目: ase-lab/eGrid
        /// <summary>
        /// Constructor of the Bookmark object.
        /// </summary>
        /// <param name="envelope">Map envelope representing the location of the bookmark</param>
        /// <param name="description">Text description of the bookmark</param>
        /// <param name="Id">Unique ID representing the bookmark</param>
        /// <param name="p">Priority of the bookmark</param>
        public Bookmark(Envelope envelope, string description, string Id, BookmarkPriority p)
        {
            id = Id;
            desc = description;
            priority = p;

            map_pt = new MapPoint(envelope.XMin + ((envelope.XMax - envelope.XMin) / 2), envelope.YMin + ((envelope.YMax - envelope.YMin) / 2));
            mf_env = envelope;
            mf_center = new Point(-1, -1);
            mf_height = 500;
            mf_width = 500;
            prev_open = false;
            current_open = false;
            orient = 0;
        }
示例#2
0
文件: Bookmark.cs 项目: ase-lab/eGrid
        /// <summary>
        /// Constructor of the Bookmark object.
        /// </summary>
        /// <param name="location">MapPoint representing the geo-referenced location of the bookmark</param>
        /// <param name="description">Text description of the bookmark</param>
        /// <param name="Id">Unique ID representing the bookmark</param>
        /// <param name="p">Priority of the bookmark</param>
        public Bookmark(MapPoint location, string description, string Id, BookmarkPriority p)
        {
            id = Id;
            desc = description;
            priority = p;

            map_pt = location;
            mf_env = new Envelope(location.X - 0.01, location.Y - 0.01, location.X + 0.01, location.Y + 0.01);
            mf_center = new Point(-1, -1);
            mf_height = 270;
            mf_width = 270;
            prev_open = false;
            current_open = false;
            orient = 0;
        }
示例#3
0
文件: Bookmark.cs 项目: ase-lab/eGrid
        /// <summary>
        /// Constructor of the Bookmark object.
        /// </summary>
        /// <param name="xMin">Minimum x location (latitude)</param>
        /// <param name="yMin">Minimum y location (longitude)</param>
        /// <param name="xMax">Maximum x location</param>
        /// <param name="yMax">Maximum y location</param>
        /// <param name="description">Text description of the bookmark</param>
        /// <param name="Id">Unique ID representing the bookmark</param>
        /// <param name="p">Priority of the bookmark</param>
        public Bookmark(double xMin, double yMin, double xMax, double yMax, string description, string Id, BookmarkPriority p)
        {
            id = Id;
            desc = description;
            priority = p;

            map_pt = new MapPoint(xMin + ((xMax - xMin) / 2), yMin + ((yMax - yMin) / 2));
            mf_env = new Envelope(xMin, yMin, xMax, yMax);
            mf_center = new Point(-1, -1);
            mf_height = 270;
            mf_width = 270;
            prev_open = false;
            current_open = false;
            orient = 0;
        }