public void GeatHeatMapInformation(string opChannelAllCorners, BatchRunGUI batchRunForHeatMap, List <LoadCase> loadCasesForHeatMap) { HeatMapWorksheet.Worksheets[HeatMapWorksheet.Counter - 1].heatMapFL.DrawHeatMapSource(opChannelAllCorners, batchRunForHeatMap, loadCasesForHeatMap); if (opChannelAllCorners == "Steering Column Cap Left X" || opChannelAllCorners == "Steering Column Cap Left Y" || opChannelAllCorners == "Steering Column Cap Left Z" || opChannelAllCorners == "Steering Column Cap Right X" || opChannelAllCorners == "Steering Column Cap Right Y" || opChannelAllCorners == "Steering Column Cap Right Z") { HeatMapWorksheet.Worksheets[HeatMapWorksheet.Counter - 1].heatMapFR.Hide(); dockPanelFR.Hide(); } else { HeatMapWorksheet.Worksheets[HeatMapWorksheet.Counter - 1].heatMapFR.DrawHeatMapSource(opChannelAllCorners, batchRunForHeatMap, loadCasesForHeatMap); } if (opChannelAllCorners == "Steering Column Cap Left X" || opChannelAllCorners == "Steering Column Cap Left Y" || opChannelAllCorners == "Steering Column Cap Left Z" || opChannelAllCorners == "Steering Column Cap Right X" || opChannelAllCorners == "Steering Column Cap Right Y" || opChannelAllCorners == "Steering Column Cap Right Z" || opChannelAllCorners == "Steering Rack Cap Left X" || opChannelAllCorners == "Steering Rack Cap Left Y" || opChannelAllCorners == "Steering Rack Cap Left Z" || opChannelAllCorners == "Steering Rack Cap Right X" || opChannelAllCorners == "Steering Rack Cap Right Y" || opChannelAllCorners == "Steering Rack Cap Right Z") { HeatMapWorksheet.Worksheets[HeatMapWorksheet.Counter - 1].heatMapRL.Hide(); dockPanelRL.Hide(); HeatMapWorksheet.Worksheets[HeatMapWorksheet.Counter - 1].heatMapRR.Hide(); dockPanelRR.Hide(); } else { HeatMapWorksheet.Worksheets[HeatMapWorksheet.Counter - 1].heatMapRL.DrawHeatMapSource(opChannelAllCorners, batchRunForHeatMap, loadCasesForHeatMap); HeatMapWorksheet.Worksheets[HeatMapWorksheet.Counter - 1].heatMapRR.DrawHeatMapSource(opChannelAllCorners, batchRunForHeatMap, loadCasesForHeatMap); } }
/// <summary> /// Method to obtain the information regardin the <see cref="BatchRunGUI"/> and by extension the <see cref="List{T}"/> of <see cref="LoadCase"/> inside the <see cref="BatchRunForm.BatchRunloadCases"/> /// </summary> /// <param name="_batchRunGUI"></param> public void GetBatchRunData(List <BatchRunGUI> _batchRunGUI) { R1 = Kinematics_Software_New.AssignFormVariable(); int BatchRunIndex = 0; for (int i = 0; i < _batchRunGUI.Count; i++) { if (_batchRunGUI[i].navBarGroupBatchRunResults.Name == R1.navBarControlResults.ActiveGroup.Name) { BatchRunIndex = i; break; } } BatchRunGUI_ForHeatMap = BatchRunGUI.batchRuns_GUI[BatchRunIndex]; LoadCaseList_ForHeatMap = BatchRunGUI_ForHeatMap.batchRun.BatchRunloadCases; GetOutputChannelData(); textEditBatchRun.Text = BatchRunGUI_ForHeatMap.Name; if (BatchRunGUI_ForHeatMap.batchRunVehicle.sc_FL.SuspensionMotionExists) { OutputMode = BatchRunOutputMode.MultipleOutputChannel; toolStripStatusLabelOPChannelModeValue.Text = "Multiple Channels"; } else { OutputMode = BatchRunOutputMode.SingleOutputChannel; toolStripStatusLabelOPChannelModeValue.Text = "Single Channel"; } }
public void DrawHeatMapSource(string opChannel, BatchRunGUI _batchRunGUI, List <LoadCase> _loadCases) { BatchRunGUI = _batchRunGUI; LoadCases = _loadCases; if (HeatMapType == HeatMapMode.RegularHeatMap) { if (OutputMode == BatchRunOutputMode.MultipleOutputChannel) { DrawHeatMapSource_MultipleOutputChannels(opChannel); DrawHeatMap(11, opChannel); } else if (OutputMode == BatchRunOutputMode.SingleOutputChannel) { DrawHeatMapSource_SingleOutputChannel(opChannel); DrawHeatMap(2, opChannel); } } else if (HeatMapType == HeatMapMode.SpecialCase) { DrawHeatMapSource_SpecialCase(LinkNames); DrawHeatMap(8, "Highest Load"); } }
/// <summary> /// Method to ensure that the same <see cref="NavBarGroup"/> is not added again to the <see cref="Kinematics_Software_New.navBarControlResults"/> /// </summary> /// <param name="_batchRUnGUICheck"></param> /// <returns></returns> private bool NavBarGroupRepeatedCheck(BatchRunGUI _batchRUnGUICheck) { R1 = Kinematics_Software_New.AssignFormVariable(); if (R1.navBarControlResults.Groups.Count != 0) { foreach (NavBarGroup group in R1.navBarControlResults.Groups) { if (group.Name == _batchRUnGUICheck.navBarGroupBatchRunResults.Name) { return(true); } } return(false); } else { return(false); } }
/// <summary> /// Method to perform the NavBar Operations for the Batch Run /// </summary> /// <param name="_batchRunGUI"></param> public void BatchRun_NavBarGroupOperations(BatchRunGUI _batchRunGUI, List <LoadCase> _batchRunLoadCases) { R1 = Kinematics_Software_New.AssignFormVariable(); int index = _batchRunGUI.ID - 1; if (!NavBarGroupRepeatedCheck(_batchRunGUI)) { ///<summary>Creating a <see cref="NavBarGroup"/> object </summary> _batchRunGUI.navBarGroupBatchRunResults = _batchRunGUI.navBarGroupBatchRunResults.CreateNewNavBarGroup_For_VehicleResults(_batchRunGUI.navBarGroupBatchRunResults, R1.navBarControlResults, _batchRunGUI.ID, _batchRunGUI.Name); ///<summary>Adding the created <see cref="NavBarGroup"/> object to the <see cref="navBarControlResults"/></summary> R1.navBarControlResults.Groups.Add(_batchRunGUI.navBarGroupBatchRunResults); ///<summary>Activating the newly added group</summary> int groupIndex = R1.navBarControlResults.Groups.IndexOf(_batchRunGUI.navBarGroupBatchRunResults); R1.navBarControlResults.ActiveGroup = R1.navBarControlResults.Groups[groupIndex]; } CreateNavBarItem(_batchRunLoadCases, _batchRunGUI.navBarItem_BatchRun_Results, _batchRunGUI.navBarGroupBatchRunResults, R1.navBarControlResults); }