示例#1
0
        /// <summary>
        /// Gets all bounding boxes of each section.
        /// </summary>
        /// <returns>Collection of boundaries.</returns>
        public virtual IList <IQTBoundary> GetAllBounds()
        {
            List <IQTBoundary> bounds = new List <IQTBoundary>();

            if (Boundary == null)
            {
                return(bounds);
            }

            bounds.Add(Boundary);

            if (northWest == null)
            {
                return(bounds);
            }

            bounds.AddRange(northWest.GetAllBounds());
            bounds.AddRange(northEast.GetAllBounds());
            bounds.AddRange(southWest.GetAllBounds());
            bounds.AddRange(southEast.GetAllBounds());

            return(bounds);
        }
示例#2
0
 /// <summary>
 /// Gets all bounding boxes of each section.
 /// </summary>
 /// <returns>Collection of all boundaries.</returns>
 public virtual IList <IQTBoundary> GetAllBounds()
 {
     return(rootTree.GetAllBounds());
 }