Beispiel #1
0
        public void Set(IMask m)
        {
            ArrayBasedMask sameTypeMask = m as ArrayBasedMask;

            if (sameTypeMask != null)
            {
                base.Set(sameTypeMask);
            }
        }
Beispiel #2
0
        public IMask Clone()
        {
            ArrayBasedMask newCopy = new ArrayBasedMask(mMaxCapacity);

            for (int i = 0; i < mNumStripes; i++)
            {
                if (mData[i] != null)
                {
                    newCopy.mData[i] = new float[cStripeSize];
                    Array.Copy(mData[i], newCopy.mData[i], cStripeSize);
                    newCopy.mbHasData = true;
                    if (newCopy.mMinStripe > i)
                    {
                        newCopy.mMinStripe = i;
                    }
                    if (newCopy.mMaxStripe < i)
                    {
                        newCopy.mMaxStripe = i;
                    }
                }
            }
            return(newCopy);
        }