private void SetDbvtNodeInfo(DbvtNode dbvtNode, TreeNode parentNode) { if (dbvtNode == null) { return; } string text = dbvtNode.GetType().Name; TreeNode dbvtNodeNode = GetOrCreateChildNode(dbvtNode, text, parentNode); RemoveObjectsOfType <DbvtProxy>(dbvtNodeNode); if (dbvtNode.IsLeaf) { DbvtProxy proxy = dbvtNode.Data; string description = GetProxyDescription(proxy); GetOrCreateChildNode(proxy, description, dbvtNodeNode); } else { foreach (DbvtNode child in dbvtNode.Childs) { SetDbvtNodeInfo(child, dbvtNodeNode); } } RemoveMissingObjects(dbvtNode.Childs, dbvtNodeNode); }
private void SetDbvtNodeInfo(DbvtNode dbvtNode, TreeNode parentNode) { if (dbvtNode == null) { return; } string text = dbvtNode.GetType().Name; TreeNode dbvtNodeNode = GetOrCreateChildNode(dbvtNode, text, parentNode); RemoveObjectsOfType <DbvtProxy>(dbvtNodeNode); DbvtProxy proxy = dbvtNode.Data; GetOrCreateChildNode(proxy, "DbvtProxy" + " " + proxy.ClientObject, dbvtNodeNode); foreach (DbvtNode child in dbvtNode.Childs) { SetDbvtNodeInfo(child, dbvtNodeNode); } RemoveMissingObjects(dbvtNode.Childs, dbvtNodeNode); }