// Copyright (C) Stichting Deltares 2023. All rights reserved. // // This file is part of the Dam Engine. // // The Dam Engine is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Affero General Public License for more details. // // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . // // All names, logos, and references to "Deltares" are registered trademarks of // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. using System; using Deltares.DamEngine.Data.Geometry; using Deltares.DamEngine.Data.Standard.Language; namespace Deltares.DamEngine.Data.Geotechnics { /// /// 2D Soil Layer Object /// [Serializable] public class SoilLayer2D : SoilLayer { // 2 associated objects private GeometrySurface geometrySurface; /// /// Gets the name. /// /// /// The name. /// public override string Name => Soil != null ? Soil.Name : LocalizationManager.GetTranslatedText(this, "NoSoilAssigned"); /// /// Gets and sets the GeometrySurface /// public GeometrySurface GeometrySurface { get => geometrySurface; set => geometrySurface = value; } /// /// Gets the geometry bounds. /// /// the geometry bounds public override GeometryBounds GetGeometryBounds() { return GeometrySurface == null ? base.GetGeometryBounds() : GeometrySurface.GetGeometryBounds(); } } }