Skip to content

Commit

Permalink
Created new release tag
Browse files Browse the repository at this point in the history
Related to Issue [WTI-1521]


git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/tags/17_2_1@13324 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 223300df78c2124a578950659d43dbff5115170c
Former-commit-id: da1ec27a1ebb22a2f16bdf2b3eab26766f83af8e
  • Loading branch information
kleijn committed Dec 11, 2017
2 parents 5801e64 + c50e06a commit 7fee602
Show file tree
Hide file tree
Showing 20 changed files with 3,677 additions and 568 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
// Stichting Deltares and remain full property of Stichting Deltares at all times.
// All rights reserved.

using System.Collections.Generic;
using System.Linq;
using Core.Common.Base.Geometry;
using Core.Components.Chart.Data;
Expand All @@ -37,7 +38,7 @@ protected override void SetSeriesData(ChartMultipleAreaData data, MultipleAreaSe
{
series.Areas.Clear();

foreach (Point2D[] area in data.Areas)
foreach (IEnumerable<Point2D> area in data.Areas)
{
series.Areas.Add(area.Select(p => new DataPoint(p.X, p.Y)).ToArray());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
namespace Ringtoets.MacroStabilityInwards.Forms.Factories
{
/// <summary>
/// Factory for creating <see cref="ChartData"/> for data used as input in the macro stability inwards failure mechanism.
/// Factory for creating <see cref="ChartData"/> for data used in the macro stability inwards failure mechanism.
/// </summary>
internal static class MacroStabilityInwardsChartDataFactory
{
Expand Down Expand Up @@ -268,22 +268,6 @@ public static ChartMultipleAreaData CreateSoilLayerChartData(MacroStabilityInwar
});
}

/// <summary>
/// Create a <see cref="ChartMultipleAreaData"/> for the slices in a slip plane.
/// </summary>
/// <returns>The created <see cref="ChartMultipleAreaData"/>.</returns>
public static ChartMultipleAreaData CreateSlicesChartData()
{
return new ChartMultipleAreaData(Resources.Slices_DisplayName,
new ChartAreaStyle
{
FillColor = Color.Empty,
StrokeColor = Color.DarkGreen,
StrokeThickness = 2,
IsEditable = true
});
}

/// <summary>
/// Creates <see cref="ChartMultipleLineData"/> with default styling for the tangent lines.
/// </summary>
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,227 @@
// Copyright (C) Stichting Deltares 2017. All rights reserved.
//
// This file is part of Ringtoets.
//
// Ringtoets is free software: you can redistribute it and/or modify
// it under the terms of the GNU 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 General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// 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.Drawing;
using Core.Components.Chart.Data;
using Core.Components.Chart.Styles;
using Ringtoets.MacroStabilityInwards.Data;
using Ringtoets.MacroStabilityInwards.Forms.Properties;

namespace Ringtoets.MacroStabilityInwards.Forms.Factories
{
/// <summary>
/// Factory for creating <see cref="ChartData"/> for slice data used in the macro stability inwards failure mechanism.
/// </summary>
internal static class MacroStabilityInwardsSliceChartDataFactory
{
/// <summary>
/// Create a <see cref="ChartMultipleAreaData"/> for the slices in a slip plane.
/// </summary>
/// <returns>The created <see cref="ChartMultipleAreaData"/>.</returns>
public static ChartMultipleAreaData CreateSlicesChartData()
{
return new ChartMultipleAreaData(Resources.Slices_DisplayName,
new ChartAreaStyle
{
FillColor = Color.Empty,
StrokeColor = Color.DarkGreen,
StrokeThickness = 2,
IsEditable = true
});
}

/// <summary>
/// Create a <see cref="ChartDataCollection"/> for the slice output parameters.
/// </summary>
public static ChartDataCollection CreateSliceParametersChartDataCollection()
{
return new ChartDataCollection(Resources.SliceParameters_DisplayName);
}

/// <summary>
/// Create a <see cref="ChartMultipleAreaData"/> for the representation
/// of <see cref="MacroStabilityInwardsSlice.Cohesion"/> values in a
/// sliding curve.
/// </summary>
/// <returns>The created <see cref="ChartMultipleAreaData"/>.</returns>
public static ChartMultipleAreaData CreateCohesionChartData()
{
return CreateSliceParameterChartData(Resources.Cohesion_DisplayName, false);
}

/// <summary>
/// Create a <see cref="ChartMultipleAreaData"/> for the representation
/// of <see cref="MacroStabilityInwardsSlice.EffectiveStress"/> values in a
/// sliding curve.
/// </summary>
/// <returns>The created <see cref="ChartMultipleAreaData"/>.</returns>
public static ChartMultipleAreaData CreateEffectiveStressChartData()
{
return CreateSliceParameterChartData(Resources.MacroStabilityInwardsSlice_EffectiveStress_DisplayName, true);
}

/// <summary>
/// Create a <see cref="ChartMultipleAreaData"/> for the representation
/// of <see cref="MacroStabilityInwardsSlice.EffectiveStressDaily"/> values in a
/// sliding curve.
/// </summary>
/// <returns>The created <see cref="ChartMultipleAreaData"/>.</returns>
public static ChartMultipleAreaData CreateEffectiveStressDailyChartData()
{
return CreateSliceParameterChartData(Resources.MacroStabilityInwardsSlice_EffectiveStressDaily_DisplayName, false);
}

/// <summary>
/// Create a <see cref="ChartMultipleAreaData"/> for the representation
/// of <see cref="MacroStabilityInwardsSlice.TotalPorePressure"/> values in a
/// sliding curve.
/// </summary>
/// <returns>The created <see cref="ChartMultipleAreaData"/>.</returns>
public static ChartMultipleAreaData CreateTotalPorePressureChartData()
{
return CreateSliceParameterChartData(Resources.MacroStabilityInwardsSlice_TotalPorePressure_DisplayName, false);
}

/// <summary>
/// Create a <see cref="ChartMultipleAreaData"/> for the representation
/// of <see cref="MacroStabilityInwardsSlice.Weight"/> values in a
/// sliding curve.
/// </summary>
/// <returns>The created <see cref="ChartMultipleAreaData"/>.</returns>
public static ChartMultipleAreaData CreateWeightChartData()
{
return CreateSliceParameterChartData(Resources.MacroStabilityInwardsSlice_Weight_DisplayName, false);
}

/// <summary>
/// Create a <see cref="ChartMultipleAreaData"/> for the representation
/// of <see cref="MacroStabilityInwardsSlice.PiezometricPorePressure"/> values in a
/// sliding curve.
/// </summary>
/// <returns>The created <see cref="ChartMultipleAreaData"/>.</returns>
public static ChartMultipleAreaData CreatePiezometricPorePressureChartData()
{
return CreateSliceParameterChartData(Resources.MacroStabilityInwardsSlice_PiezometricPorePressure_DisplayName, false);
}

/// <summary>
/// Create a <see cref="ChartMultipleAreaData"/> for the representation
/// of <see cref="MacroStabilityInwardsSlice.PorePressure"/> values in a
/// sliding curve.
/// </summary>
/// <returns>The created <see cref="ChartMultipleAreaData"/>.</returns>
public static ChartMultipleAreaData CreatePorePressureChartData()
{
return CreateSliceParameterChartData(Resources.MacroStabilityInwardsSlice_PorePressure_DisplayName, false);
}

/// <summary>
/// Create a <see cref="ChartMultipleAreaData"/> for the representation
/// of <see cref="MacroStabilityInwardsSlice.VerticalPorePressure"/> values in a
/// sliding curve.
/// </summary>
/// <returns>The created <see cref="ChartMultipleAreaData"/>.</returns>
public static ChartMultipleAreaData CreateVerticalPorePressureChartData()
{
return CreateSliceParameterChartData(Resources.MacroStabilityInwardsSlice_VerticalPorePressure_DisplayName, false);
}

/// <summary>
/// Create a <see cref="ChartMultipleAreaData"/> for the representation
/// of <see cref="MacroStabilityInwardsSlice.HorizontalPorePressure"/> values in a
/// sliding curve.
/// </summary>
/// <returns>The created <see cref="ChartMultipleAreaData"/>.</returns>
public static ChartMultipleAreaData CreateHorizontalPorePressureChartData()
{
return CreateSliceParameterChartData(Resources.MacroStabilityInwardsSlice_HorizontalPorePressure_DisplayName, false);
}

/// <summary>
/// Create a <see cref="ChartMultipleAreaData"/> for the representation
/// of <see cref="MacroStabilityInwardsSlice.OverConsolidationRatio"/> values in a
/// sliding curve.
/// </summary>
/// <returns>The created <see cref="ChartMultipleAreaData"/>.</returns>
public static ChartMultipleAreaData CreateOverConsolidationRatioChartData()
{
return CreateSliceParameterChartData(Resources.MacroStabilityInwardsSlice_OverConsolidationRatio_DisplayName, false);
}

/// <summary>
/// Create a <see cref="ChartMultipleAreaData"/> for the representation
/// of <see cref="MacroStabilityInwardsSlice.Pop"/> values in a
/// sliding curve.
/// </summary>
/// <returns>The created <see cref="ChartMultipleAreaData"/>.</returns>
public static ChartMultipleAreaData CreatePopChartData()
{
return CreateSliceParameterChartData(Resources.Pop_DisplayName, false);
}

/// <summary>
/// Create a <see cref="ChartMultipleAreaData"/> for the representation
/// of <see cref="MacroStabilityInwardsSlice.NormalStress"/> values in a
/// sliding curve.
/// </summary>
/// <returns>The created <see cref="ChartMultipleAreaData"/>.</returns>
public static ChartMultipleAreaData CreateNormalStressChartData()
{
return CreateSliceParameterChartData(Resources.MacroStabilityInwardsSlice_NormalStress_DisplayName, false);
}

/// <summary>
/// Create a <see cref="ChartMultipleAreaData"/> for the representation
/// of <see cref="MacroStabilityInwardsSlice.ShearStress"/> values in a
/// sliding curve.
/// </summary>
/// <returns>The created <see cref="ChartMultipleAreaData"/>.</returns>
public static ChartMultipleAreaData CreateShearStressChartData()
{
return CreateSliceParameterChartData(Resources.MacroStabilityInwardsSlice_ShearStress_DisplayName, false);
}

/// <summary>
/// Create a <see cref="ChartMultipleAreaData"/> for the representation
/// of <see cref="MacroStabilityInwardsSlice.LoadStress"/> values in a
/// sliding curve.
/// </summary>
/// <returns>The created <see cref="ChartMultipleAreaData"/>.</returns>
public static ChartMultipleAreaData CreateLoadStressChartData()
{
return CreateSliceParameterChartData(Resources.MacroStabilityInwardsSlice_LoadStress_DisplayName, false);
}

private static ChartMultipleAreaData CreateSliceParameterChartData(string name, bool isVisible)
{
return new ChartMultipleAreaData(name, new ChartAreaStyle
{
StrokeThickness = 1,
StrokeColor = Color.Black,
FillColor = Color.FromArgb(150, Color.Red),
IsEditable = true
})
{
IsVisible = isVisible
};
}
}
}
Loading

0 comments on commit 7fee602

Please sign in to comment.