/// <summary>
 /// This is called when the blockmap needs to be refilled, because it was invalidated.
 /// This usually happens when geometry is changed by undo, redo, cut or paste actions.
 /// Lines and Things are added to the block map by the base implementation.
 /// </summary>
 protected virtual void FillBlockMap()
 {
     blockmap.Clear();            //mxd
     blockmap.AddLinedefsSet(General.Map.Map.Linedefs);
     blockmap.AddThingsSet(General.Map.Map.Things);
     blockmap.AddSectorsSet(General.Map.Map.Sectors);
 }
Example #2
0
        /// <summary>
        /// This is called when the blockmap needs to be refilled, because it was invalidated.
        /// This usually happens when geometry is changed by undo, redo, cut or paste actions.
        /// Lines and Things are added to the block map by the base implementation.
        /// </summary>
        protected virtual void FillBlockMap()
        {
            if (blockmap != null)
            {
                blockmap.Dispose();
            }
            blockmap = new VisualBlockMap();

            blockmap.AddLinedefsSet(General.Map.Map.Linedefs);
            blockmap.AddThingsSet(General.Map.Map.Things);
            blockmap.AddSectorsSet(General.Map.Map.Sectors);
        }