/// <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); }
/// <summary> /// Gets all bounding boxes of each section. /// </summary> /// <returns>Collection of all boundaries.</returns> public virtual IList <IQTBoundary> GetAllBounds() { return(rootTree.GetAllBounds()); }