public bool Accept(IGeoObject toTest) { if (FilterList == null) { return(true); } return(FilterList.Accept(toTest)); }
/// <summary> /// Remove all objects that are not accepted by the given filter. /// </summary> /// <param name="filterList">List of filters to check with</param> public void Reduce(FilterList filterList) { for (int i = list.Count - 1; i >= 0; --i) { if (!filterList.Accept(this[i])) { Remove(i); } } }