private void OnPositionChanged(GeoObject obj) { if (!ObjectFilter(obj)) { return; } // TODO optimize with indexing if (ObjectIsInViewRegion(obj)) { if (!ObjectsInView.Contains(obj)) { ObjectsInView.Add(obj); } } else { ObjectsInView.Remove(obj); } }
public void RemoveObject(GeoObject obj) { ObjectsInView.Remove(obj); Objects.Remove(obj); }