Index: Ringtoets/Piping/src/Ringtoets.Piping.Primitives/RingtoetsPipingSurfaceLine.cs =================================================================== diff -u -rec27d9f02dc27c2829ed45788fae7d5923d63d3d -rdf853f988ad99b935860c361bc000f6aba9876a7 --- Ringtoets/Piping/src/Ringtoets.Piping.Primitives/RingtoetsPipingSurfaceLine.cs (.../RingtoetsPipingSurfaceLine.cs) (revision ec27d9f02dc27c2829ed45788fae7d5923d63d3d) +++ Ringtoets/Piping/src/Ringtoets.Piping.Primitives/RingtoetsPipingSurfaceLine.cs (.../RingtoetsPipingSurfaceLine.cs) (revision df853f988ad99b935860c361bc000f6aba9876a7) @@ -30,18 +30,16 @@ using Ringtoets.Common.Data; using Ringtoets.Piping.Primitives.Exceptions; using Ringtoets.Piping.Primitives.Properties; - using RingtoetsCommonDataResources = Ringtoets.Common.Data.Properties.Resources; namespace Ringtoets.Piping.Primitives { /// - /// Definition of a surfaceline for piping. + /// Definition of a surface line for piping. /// public class RingtoetsPipingSurfaceLine : Observable, IMechanismSurfaceLine { private const int numberOfDecimalPlaces = 2; - private RoundedPoint2DCollection localGeometry; /// /// Initializes a new instance of the class. @@ -50,26 +48,26 @@ { Name = string.Empty; Points = new Point3D[0]; - localGeometry = new RoundedPoint2DCollection(2, new Point2D[0]); + LocalGeometry = new RoundedPoint2DCollection(2, new Point2D[0]); } /// - /// Gets or sets the name of the surfaceline. + /// Gets or sets the name of the surface line. /// public string Name { get; set; } /// - /// Gets the 3D points describing its geometry. + /// Gets the 3D points describing the geometry of the surface line. /// public Point3D[] Points { get; private set; } /// - /// Gets or sets the first 3D geometry point defining the surfaceline in world coordinates. + /// Gets the first 3D geometry point defining the surface line in world coordinates. /// public Point3D StartingWorldPoint { get; private set; } /// - /// Gets or sets the last 3D geometry point defining the surfaceline in world coordinates. + /// Gets the last 3D geometry point defining the surface line in world coordinates. /// public Point3D EndingWorldPoint { get; private set; } @@ -117,18 +115,12 @@ /// /// Gets the 2D points describing the local geometry of the surface line. /// - public RoundedPoint2DCollection LocalGeometry - { - get - { - return localGeometry; - } - } + public RoundedPoint2DCollection LocalGeometry { get; private set; } /// - /// Sets the geometry of the surfaceline. + /// Sets the geometry of the surface line. /// - /// The collection of points defining the surfaceline geometry. + /// The collection of points defining the surface line geometry. /// Thrown when is null. /// Thrown when any element of is null. public void SetGeometry(IEnumerable points) @@ -149,7 +141,7 @@ EndingWorldPoint = Points[Points.Length - 1]; } - localGeometry = new RoundedPoint2DCollection(numberOfDecimalPlaces, Points.ProjectToLZ().ToArray()); + LocalGeometry = new RoundedPoint2DCollection(numberOfDecimalPlaces, Points.ProjectToLZ().ToArray()); } /// @@ -158,7 +150,7 @@ /// The location as a which to set as the . /// Thrown when doesn't contain a at /// . - /// is null. + /// Thrown when is null. public void SetDitchPolderSideAt(Point3D point) { Point3D geometryPoint = GetPointFromGeometry(point); @@ -175,7 +167,7 @@ /// The location as a which to set as the . /// Thrown when doesn't contain a at /// . - /// is null. + /// Thrown when is null. public void SetBottomDitchPolderSideAt(Point3D point) { Point3D geometryPoint = GetPointFromGeometry(point); @@ -192,7 +184,7 @@ /// The location as a which to set as the . /// Thrown when doesn't contain a at /// . - /// is null. + /// Thrown when is null. public void SetBottomDitchDikeSideAt(Point3D point) { Point3D geometryPoint = GetPointFromGeometry(point); @@ -209,7 +201,7 @@ /// The location as a which to set as the . /// Thrown when doesn't contain a at /// . - /// is null. + /// Thrown when is null. public void SetDitchDikeSideAt(Point3D point) { Point3D geometryPoint = GetPointFromGeometry(point); @@ -226,7 +218,7 @@ /// The location as a which to set as the . /// Thrown when doesn't contain a at /// . - /// is null. + /// Thrown when is null. public void SetDikeToeAtRiverAt(Point3D point) { Point3D geometryPoint = GetPointFromGeometry(point); @@ -243,7 +235,7 @@ /// The location as a which to set as the . /// Thrown when doesn't contain a at /// . - /// is null. + /// Thrown when is null. public void SetDikeToeAtPolderAt(Point3D point) { Point3D geometryPoint = GetPointFromGeometry(point); @@ -261,8 +253,8 @@ /// The height of the at L=. /// Thrown when the /// intersection point at have a significant difference in their y coordinate. - /// is not in range of the LZ-projected . - /// is empty. + /// Thrown when is not in range of the LZ-projected . + /// Thrown when is empty. public double GetZAtL(RoundedDouble l) { ValidateHasPoints(); @@ -277,9 +269,9 @@ } var segments = new Collection(); - for (var i = 1; i < localGeometry.Count(); i++) + for (var i = 1; i < LocalGeometry.Count(); i++) { - segments.Add(new Segment2D(localGeometry.ElementAt(i - 1), localGeometry.ElementAt(i))); + segments.Add(new Segment2D(LocalGeometry.ElementAt(i - 1), LocalGeometry.ElementAt(i))); } IEnumerable intersectionPoints = Math2D.SegmentsIntersectionWithVerticalLine(segments, l).OrderBy(p => p.Y).ToArray(); @@ -476,7 +468,7 @@ /// /// The location of a point from . /// The from at the same location as . - /// is null. + /// Thrown when is null. private Point3D GetPointFromGeometry(Point3D point) { if (point == null) @@ -497,7 +489,7 @@ /// /// Checks whether the current collection is not empty. /// - /// is empty. + /// Thrown when is empty. private void ValidateHasPoints() { if (!Points.Any())