예제 #1
0
 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);
     }
 }
예제 #2
0
 public void RemoveObject(GeoObject obj)
 {
     ObjectsInView.Remove(obj);
     Objects.Remove(obj);
 }