//----------------------------------------------------------------------- // // Copyright (c) 2010 Deltares. All rights reserved. // // B.S.T.I.M. The // tom.the@deltares.nl // 18-05-2010 // Object representing a freatic line //----------------------------------------------------------------------- using Deltares.Geometry; namespace Deltares.Dam.Data { using System; using System.Collections.Generic; using System.Linq; using Deltares.Standard; public class PL1LineException : Exception { public PL1LineException(string message) : base(message) { } } public class PL1Line : GeometryPointString { public void Assign(PL1Line pl1Line) { this.Points.Clear(); foreach (GeometryPoint point in pl1Line.Points) { GeometryPoint newPoint = (GeometryPoint) point.Clone(); this.Points.Add(newPoint); } } public PL1Line Clone() { var newPL1Line = new PL1Line(); newPL1Line.Assign(this); return newPL1Line; } } }