Exemplo n.º 1
0
        private void SetCharacteristicPoints(PipingSurfaceLine fromSurfaceLine)
        {
            if (fromSurfaceLine.BottomDitchDikeSide != null)
            {
                SetBottomDitchDikeSideAt(fromSurfaceLine.BottomDitchDikeSide);
            }

            if (fromSurfaceLine.BottomDitchPolderSide != null)
            {
                SetBottomDitchPolderSideAt(fromSurfaceLine.BottomDitchPolderSide);
            }

            if (fromSurfaceLine.DikeToeAtPolder != null)
            {
                SetDikeToeAtPolderAt(fromSurfaceLine.DikeToeAtPolder);
            }

            if (fromSurfaceLine.DikeToeAtRiver != null)
            {
                SetDikeToeAtRiverAt(fromSurfaceLine.DikeToeAtRiver);
            }

            if (fromSurfaceLine.DitchDikeSide != null)
            {
                SetDitchDikeSideAt(fromSurfaceLine.DitchDikeSide);
            }

            if (fromSurfaceLine.DitchPolderSide != null)
            {
                SetDitchPolderSideAt(fromSurfaceLine.DitchPolderSide);
            }
        }
Exemplo n.º 2
0
 private bool Equals(PipingSurfaceLine other)
 {
     return(string.Equals(Name, other.Name) &&
            Equals(ReferenceLineIntersectionWorldPoint, other.ReferenceLineIntersectionWorldPoint) &&
            EqualGeometricPoints(other.Points) &&
            EqualCharacteristicPoints(other));
 }
Exemplo n.º 3
0
 private bool EqualCharacteristicPoints(PipingSurfaceLine other)
 {
     return(Equals(DikeToeAtPolder, other.DikeToeAtPolder) &&
            Equals(DikeToeAtRiver, other.DikeToeAtRiver) &&
            Equals(DitchDikeSide, other.DitchDikeSide) &&
            Equals(DitchPolderSide, other.DitchPolderSide) &&
            Equals(BottomDitchDikeSide, other.BottomDitchDikeSide) &&
            Equals(BottomDitchPolderSide, other.BottomDitchPolderSide));
 }
Exemplo n.º 4
0
        /// <summary>
        /// Copies the property values of the <paramref name="fromSurfaceLine"/> to
        /// the <see cref="PipingSurfaceLine"/>.
        /// </summary>
        /// <param name="fromSurfaceLine">The <see cref="PipingSurfaceLine"/>
        /// to get the property values from.</param>
        /// <exception cref="ArgumentNullException">Thrown when <paramref name="fromSurfaceLine"/>
        /// is <c>null</c>.</exception>
        public void CopyProperties(PipingSurfaceLine fromSurfaceLine)
        {
            if (fromSurfaceLine == null)
            {
                throw new ArgumentNullException(nameof(fromSurfaceLine));
            }

            Name = fromSurfaceLine.Name;
            ReferenceLineIntersectionWorldPoint = fromSurfaceLine.ReferenceLineIntersectionWorldPoint != null
                                                      ? new Point2D(fromSurfaceLine.ReferenceLineIntersectionWorldPoint)
                                                      : null;
            SetGeometry(fromSurfaceLine.Points);
            ClearCharacteristicPoints();
            SetCharacteristicPoints(fromSurfaceLine);
        }