public bool Remove(IWorldObject item)
        {
            bool ret;

            ret = points.Remove((MPPoint)(item));
            int index = ((MPPoint)item).PointNum;

            foreach (MPPoint pt in points)
            {
                if (pt.PointNum >= index)
                {
                    pt.PointNum--;
                }
            }
            OnPointsChanged();

            if (inTree)
            {
                item.RemoveFromTree();
            }
            if (inScene)
            {
                item.RemoveFromScene();
            }

            return(ret);
        }
 public bool Remove(IWorldObject item)
 {
     if (inTree)
     {
         item.RemoveFromTree();
     }
     if (inScene || (item is ParticleEffect && app.DisplayParticleEffects))
     {
         item.RemoveFromScene();
     }
     return(children.Remove(item));
 }
예제 #3
0
 public bool Remove(IWorldObject item)
 {
     if (inTree)
     {
         item.RemoveFromTree();
     }
     if (inScene)
     {
         item.RemoveFromScene();
     }
     return(objectList.Remove(item));
 }
예제 #4
0
 public bool Remove(IWorldObject item)
 {
     if (inTree)
     {
         item.RemoveFromTree();
     }
     if (inScene)
     {
         item.RemoveFromScene();
     }
     return(worldCollections.Remove(item as WorldObjectCollection));
 }
예제 #5
0
 public bool Remove(IWorldObject item)
 {
     if (inTree)
     {
         item.RemoveFromTree();
     }
     if (inScene)
     {
         item.RemoveFromScene();
     }
     return worldCollections.Remove(item as WorldObjectCollection);
 }
 public bool Remove(IWorldObject item)
 {
     if (inTree)
     {
         item.RemoveFromTree();
     }
     if (inScene)
     {
         item.RemoveFromScene();
     }
     return objectList.Remove(item);
 }
예제 #7
0
 public bool Remove(IWorldObject item)
 {
     item.RemoveFromTree();
     item.RemoveFromScene();
     return(children.Remove(item));
 }
 public void RemoveFromScene()
 {
     terrainDisplay.RemoveFromScene();
     inScene = false;
 }
 public bool Remove(IWorldObject item)
 {
     item.RemoveFromTree();
     item.RemoveFromScene();
     return children.Remove(item);
 }
예제 #10
0
 public bool Remove(IWorldObject item)
 {
     if (inTree)
     {
         item.RemoveFromTree();
     }
     if (inScene || (item is ParticleEffect && app.DisplayParticleEffects))
     {
         item.RemoveFromScene();
     }
     return children.Remove(item);
 }