Jillzhang.GifUtility.OcTreeNode.OcTreeNode C# (CSharp) Method

OcTreeNode() private method

�˲����Ĺ��캯��
private OcTreeNode ( int colorDepth, int level, OcTree tree ) : System
colorDepth int
level int �㼶
tree OcTree
return System
        internal OcTreeNode(int colorDepth,int level,OcTree tree)
        {
            this.ColorDepth = colorDepth;
            this.Leaf = (colorDepth==level);
            this.Level = level;
            if (!Leaf)
            {
                NextReducible = tree.ReducibleNodes[level];
                tree.ReducibleNodes[level] = this;
                Children = new OcTreeNode[8];
            }
            else
            {
                tree.IncrementLeaves();
            }
        }