Ejemplo n.º 1
0
 public CRiverNet(int pintRNID, CRiver pCMasterStream)
 {
     _intRNID       = pintRNID;
     _CMasterStream = pCMasterStream;
     _CRiverLt      = new List <CRiver>();
     _CRiverLt.Add(pCMasterStream);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Checks whether two cedges are equal disregarding the direction of the cedges
        /// </summary>
        /// <param name="other"></param>
        /// <returns></returns>
        public bool Equals(CRiver other)
        {
            IPointCollection4 pThisCol = new PolylineClass();

            pThisCol = (IPointCollection4)this.pPolyline;

            IPointCollection4 potherCol = new PolylineClass();

            potherCol = (IPointCollection4)other.pPolyline;

            if (pThisCol.PointCount != potherCol.PointCount)
            {
                return(false);
            }


            bool blnEqual = true;

            for (int i = 0; i < pThisCol.PointCount; i++)
            {
                if ((pThisCol.get_Point(i).X != potherCol.get_Point(i).X) || (pThisCol.get_Point(i).Y != potherCol.get_Point(i).Y))
                {
                    blnEqual = false;
                    break;
                }
            }
            return(blnEqual);
        }