protected override void NewBuffer()
        {
            CurrentBufferToFill = BufferSet.GetFirstEmptyBuffer();
            if (CurrentBufferToFill == null)
            {
                throw new NullReferenceException(Cern.LocalizedResources.Instance().Exception_NoEmptyBuffer);
            }

            CurrentBufferToFill.Level  = (currentTreeHeight - 1);
            CurrentBufferToFill.Weight = (sampler.Weight);
        }
Exemplo n.º 2
0
        protected override void NewBuffer()
        {
            CurrentBufferToFill = BufferSet.GetFirstEmptyBuffer();
            if (CurrentBufferToFill == null)
            {
                throw new NullReferenceException("Oops, no empty buffer.");
            }

            CurrentBufferToFill.Level  = (currentTreeHeight - 1);
            CurrentBufferToFill.Weight = (sampler.Weight);
        }