예제 #1
0
    private void DoSplit()
    {
        _childNodes = new ChildNodes <T>(this);
        List <DataEntry <T, Rect> > tempEntryList = new List <DataEntry <T, Rect> >(_objects);

        _objects.Clear();

        for (int i = 0; i < tempEntryList.Count; i++)
        {
            if (_childNodes.Fits(tempEntryList[i]))
            {
                _childNodes.Insert(tempEntryList[i]);
            }
            else
            {
                _objects.Add(tempEntryList[i]);
            }
        }

        PollActivity();
    }