private void OnLinePanelToggleChange(bool isOn) { outputPanel.SetPanel(inspectorOutput.transform); if (isOn) { inspectorType = InspectorType.Line; inspectorOutput.ActivateEntryInfo(inspectorType); ActivatePanels(isOn); lineInspectorPanel.UpdateControlPtsAndInspectionDel(); if (lineInspectorPanel.lineInspectorPanelFirstActive) { lineInspectorPanel.AddDefaultLineInspection(); lineInspectorPanel.ComputeAndUpdateLineProperties(); } foreach (var layer in gridLayerController.mapLayers) { OnShowGrid(layer, true); } // Update transect chart lineInspectorPanel.UpdateTransectLineInfoAndAllGridDatas(lineInfos[lineInspector.CurrLineInspection]); } areaInspector.ShowAreaLines(false, areaInfos); }
private void SelectLine() { lineInspectorPanel.SetCurrInspection(lineInfo.controlPts[StartPtIndex].InspectionIndex); lineInspectorPanel.ComputeAndUpdateLineProperties(); }