示例#1
0
        public void RTreeClearTest()
        {
            _tree.Clear();

            Assert.AreEqual(0, _tree.Height);
            Assert.AreEqual(0, _tree.NumberOfGeometries);
        }
示例#2
0
        public void ClearWorks()
        {
            var tree = new RTree <Point>(maxEntries: 4);

            tree.BulkLoad(points);
            tree.Clear();

            Assert.AreEqual(0, tree.Count);
            Assert.IsEmpty(tree.Root.children);
        }
示例#3
0
        public void Clear_Should_Reset_The_Tree()
        {
            var tree = new RTree <int>(4);

            tree.Load(_data);

            tree.Clear();

            var tree2 = new RTree <int>(4);

            Assert.AreEqual(tree.ToJson(), tree2.ToJson());
        }
 internal void Clear()
 {
     _visGraphVertices.Clear();
     PathRouter = new LgPathRouter();
 }
示例#5
0
 public void ClearRailTree()
 {
     _railTree.Clear();
 }
示例#6
0
    List <NoteData> lstFindResult      = new List <NoteData>(); // 查询结果


    public void Clear()
    {
        // 需要Dispose所有feature
        tree.Clear();
        lstFindResult.Clear();
    }