/// <summary> /// Creates the map data. /// </summary> protected virtual void CreateMapData() { hydraulicBoundaryLocationsMapLayer = new HydraulicBoundaryLocationsMapLayer(AssessmentSection); MapDataCollection = new MapDataCollection(PipingDataResources.PipingFailureMechanism_DisplayName); referenceLineMapData = RiskeerMapDataFactory.CreateReferenceLineMapData(); stochasticSoilModelsMapData = RiskeerMapDataFactory.CreateStochasticSoilModelsMapData(); surfaceLinesMapData = RiskeerMapDataFactory.CreateSurfaceLinesMapData(); semiProbabilisticCalculationsMapData = PipingMapDataFactory.CreateSemiProbabilisticCalculationsMapData(); probabilisticCalculationsMapData = PipingMapDataFactory.CreateProbabilisticCalculationsMapData(); MapDataCollection sectionsMapDataCollection = RiskeerMapDataFactory.CreateSectionsMapDataCollection(); sectionsMapData = RiskeerMapDataFactory.CreateFailureMechanismSectionsMapData(); sectionsStartPointMapData = RiskeerMapDataFactory.CreateFailureMechanismSectionsStartPointMapData(); sectionsEndPointMapData = RiskeerMapDataFactory.CreateFailureMechanismSectionsEndPointMapData(); MapDataCollection.Add(referenceLineMapData); MapDataCollection.Add(stochasticSoilModelsMapData); MapDataCollection.Add(surfaceLinesMapData); sectionsMapDataCollection.Add(sectionsMapData); sectionsMapDataCollection.Add(sectionsStartPointMapData); sectionsMapDataCollection.Add(sectionsEndPointMapData); MapDataCollection.Add(sectionsMapDataCollection); MapDataCollection.Add(hydraulicBoundaryLocationsMapLayer.MapData); MapDataCollection.Add(probabilisticCalculationsMapData); MapDataCollection.Add(semiProbabilisticCalculationsMapData); }
private void CreateMapData() { mapDataCollection = new MapDataCollection(FailureMechanism.Name); referenceLineMapData = RiskeerMapDataFactory.CreateReferenceLineMapData(); hydraulicBoundaryLocationsMapLayer = new HydraulicBoundaryLocationsMapLayer(AssessmentSection); MapDataCollection sectionsMapDataCollection = RiskeerMapDataFactory.CreateSectionsMapDataCollection(); sectionsMapData = RiskeerMapDataFactory.CreateFailureMechanismSectionsMapData(); sectionsStartPointMapData = RiskeerMapDataFactory.CreateFailureMechanismSectionsStartPointMapData(); sectionsEndPointMapData = RiskeerMapDataFactory.CreateFailureMechanismSectionsEndPointMapData(); assemblyResultMapLayer = new NonCalculatableFailureMechanismSectionResultsMapLayer <TSectionResult>( FailureMechanism, performAssemblyFunc); mapDataCollection.Add(referenceLineMapData); sectionsMapDataCollection.Add(sectionsMapData); sectionsMapDataCollection.Add(sectionsStartPointMapData); sectionsMapDataCollection.Add(sectionsEndPointMapData); mapDataCollection.Add(sectionsMapDataCollection); mapDataCollection.Add(assemblyResultMapLayer.MapData); mapDataCollection.Add(hydraulicBoundaryLocationsMapLayer.MapData); }
public void CreateFailureMechanismSectionsMapData_ReturnsEmptyMapLineDataWithExpectedStyling() { // Call MapLineData data = RiskeerMapDataFactory.CreateFailureMechanismSectionsMapData(); // Assert CollectionAssert.IsEmpty(data.Features); Assert.AreEqual("Vakindeling", data.Name); RiskeerMapDataFactoryTestHelper.AssertEqualStyle(data.Style, Color.Khaki, 3, LineDashStyle.Dot); Assert.AreEqual("Naam", data.SelectedMetaDataAttribute); }
protected override void CreateMapData() { base.CreateMapData(); MapDataCollection sectionsMapDataCollection = RiskeerMapDataFactory.CreateSectionsMapDataCollection(); sectionsMapData = RiskeerMapDataFactory.CreateFailureMechanismSectionsMapData(); sectionsStartPointMapData = RiskeerMapDataFactory.CreateFailureMechanismSectionsStartPointMapData(); sectionsEndPointMapData = RiskeerMapDataFactory.CreateFailureMechanismSectionsEndPointMapData(); assemblyResultMapLayer = new NonCalculatableFailureMechanismSectionResultsMapLayer <NonAdoptableWithProfileProbabilityFailureMechanismSectionResult>( FailureMechanism, sr => StabilityStoneCoverFailureMechanismAssemblyFactory.AssembleSection(sr, FailureMechanism, AssessmentSection).AssemblyResult); sectionsMapDataCollection.Add(sectionsMapData); sectionsMapDataCollection.Add(sectionsStartPointMapData); sectionsMapDataCollection.Add(sectionsEndPointMapData); MapDataCollection.Insert(1, sectionsMapDataCollection); MapDataCollection.Insert(2, assemblyResultMapLayer.MapData); }
protected override void CreateMapData() { base.CreateMapData(); MapDataCollection sectionsMapDataCollection = RiskeerMapDataFactory.CreateSectionsMapDataCollection(); sectionsMapData = RiskeerMapDataFactory.CreateFailureMechanismSectionsMapData(); sectionsStartPointMapData = RiskeerMapDataFactory.CreateFailureMechanismSectionsStartPointMapData(); sectionsEndPointMapData = RiskeerMapDataFactory.CreateFailureMechanismSectionsEndPointMapData(); assemblyResultsMapLayer = new CalculatableFailureMechanismSectionResultsMapLayer <MacroStabilityInwardsFailureMechanism, AdoptableWithProfileProbabilityFailureMechanismSectionResult, MacroStabilityInwardsInput>( FailureMechanism, sr => MacroStabilityInwardsFailureMechanismAssemblyFactory.AssembleSection(sr, FailureMechanism, AssessmentSection).AssemblyResult); sectionsMapDataCollection.Add(sectionsMapData); sectionsMapDataCollection.Add(sectionsStartPointMapData); sectionsMapDataCollection.Add(sectionsEndPointMapData); MapDataCollection.Insert(3, sectionsMapDataCollection); MapDataCollection.Insert(4, assemblyResultsMapLayer.MapData); }
protected override void CreateMapData() { base.CreateMapData(); MapDataCollection sectionsMapDataCollection = RiskeerMapDataFactory.CreateSectionsMapDataCollection(); sectionsMapData = RiskeerMapDataFactory.CreateFailureMechanismSectionsMapData(); sectionsStartPointMapData = RiskeerMapDataFactory.CreateFailureMechanismSectionsStartPointMapData(); sectionsEndPointMapData = RiskeerMapDataFactory.CreateFailureMechanismSectionsEndPointMapData(); assemblyResultsMapLayer = new CalculatableFailureMechanismSectionResultsMapLayer <ClosingStructuresFailureMechanism, AdoptableFailureMechanismSectionResult, ClosingStructuresInput>( FailureMechanism, sr => StructuresFailureMechanismAssemblyFactory.AssembleSection <ClosingStructuresInput>(sr, FailureMechanism, AssessmentSection).AssemblyResult); sectionsMapDataCollection.Add(sectionsMapData); sectionsMapDataCollection.Add(sectionsStartPointMapData); sectionsMapDataCollection.Add(sectionsEndPointMapData); MapDataCollection.Insert(1, sectionsMapDataCollection); MapDataCollection.Insert(2, assemblyResultsMapLayer.MapData); }
private void CreateMapData() { failureMechanismMapDataCollection = new MapDataCollection(failureMechanism.Name); hydraulicBoundaryLocationsMapLayer = new HydraulicBoundaryLocationsMapLayer(assessmentSection); referenceLineMapData = RiskeerMapDataFactory.CreateReferenceLineMapData(); MapDataCollection sectionsMapDataCollection = RiskeerMapDataFactory.CreateSectionsMapDataCollection(); sectionsMapData = RiskeerMapDataFactory.CreateFailureMechanismSectionsMapData(); sectionsStartPointMapData = RiskeerMapDataFactory.CreateFailureMechanismSectionsStartPointMapData(); sectionsEndPointMapData = RiskeerMapDataFactory.CreateFailureMechanismSectionsEndPointMapData(); sectionsMapDataCollection.Add(sectionsMapData); sectionsMapDataCollection.Add(sectionsStartPointMapData); sectionsMapDataCollection.Add(sectionsEndPointMapData); assemblyResultMapLayer = new NonCalculatableFailureMechanismSectionResultsMapLayer <NonAdoptableWithProfileProbabilityFailureMechanismSectionResult>( failureMechanism, sr => FailureMechanismAssemblyFactory.AssembleSection(sr, failureMechanism, assessmentSection).AssemblyResult); failureMechanismMapDataCollection.Add(referenceLineMapData); failureMechanismMapDataCollection.Add(sectionsMapDataCollection); failureMechanismMapDataCollection.Add(assemblyResultMapLayer.MapData); failureMechanismMapDataCollection.Add(hydraulicBoundaryLocationsMapLayer.MapData); }