Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Views/RingtoetsMapDataFactory.cs
===================================================================
diff -u -r9a196c8bc554a2e97ff094d7ffb2e99c42eb04fd -r2aeb951ddc6e2137897569a2de4c55c9fb7e2420
--- Ringtoets/Common/src/Ringtoets.Common.Forms/Views/RingtoetsMapDataFactory.cs (.../RingtoetsMapDataFactory.cs) (revision 9a196c8bc554a2e97ff094d7ffb2e99c42eb04fd)
+++ Ringtoets/Common/src/Ringtoets.Common.Forms/Views/RingtoetsMapDataFactory.cs (.../RingtoetsMapDataFactory.cs) (revision 2aeb951ddc6e2137897569a2de4c55c9fb7e2420)
@@ -19,11 +19,15 @@
// Stichting Deltares and remain full property of Stichting Deltares at all times.
// All rights reserved.
+using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using Core.Components.Gis.Data;
using Core.Components.Gis.Style;
using Ringtoets.Common.Data.AssessmentSection;
+using Ringtoets.Common.Data.DikeProfiles;
+using Ringtoets.Common.Data.FailureMechanism;
+using Ringtoets.Common.Forms.Properties;
using Ringtoets.HydraRing.Data;
using RingtoetsCommonDataResources = Ringtoets.Common.Data.Properties.Resources;
@@ -57,5 +61,61 @@
Style = new PointStyle(Color.DarkBlue, 6, PointSymbol.Circle)
};
}
+
+ ///
+ /// Create with default styling for collections of .
+ ///
+ /// The created .
+ public static MapLineData CreateFailureMechanismSectionsMapData()
+ {
+ return new MapLineData(Resources.FailureMechanism_Sections_DisplayName)
+ {
+ Style = new LineStyle(Color.Khaki, 3, DashStyle.Dot)
+ };
+ }
+
+ ///
+ /// Create with default styling for the start points in collections of .
+ ///
+ /// The created .
+ public static MapPointData CreateFailureMechanismSectionsStartPointMapData()
+ {
+ var mapDataName = String.Format("{0} ({1})",
+ Resources.FailureMechanism_Sections_DisplayName,
+ Resources.FailureMechanismSections_StartPoints_DisplayName);
+
+ return new MapPointData(mapDataName)
+ {
+ Style = new PointStyle(Color.DarkKhaki, 15, PointSymbol.Triangle)
+ };
+ }
+
+ ///
+ /// Create with default styling for the end points in collections of .
+ ///
+ /// The created .
+ public static MapPointData CreateFailureMechanismSectionsEndPointMapData()
+ {
+ var mapDataName = String.Format("{0} ({1})",
+ Resources.FailureMechanism_Sections_DisplayName,
+ Resources.FailureMechanismSections_EndPoints_DisplayName);
+
+ return new MapPointData(mapDataName)
+ {
+ Style = new PointStyle(Color.DarkKhaki, 15, PointSymbol.Triangle)
+ };
+ }
+
+ ///
+ /// Create with default styling for collections of .
+ ///
+ /// The created .
+ public static MapLineData CreateDikeProfileMapData()
+ {
+ return new MapLineData(Resources.DikeProfiles_DisplayName)
+ {
+ Style = new LineStyle(Color.DarkSeaGreen, 2, DashStyle.Solid)
+ };
+ }
}
}
\ No newline at end of file