private void OnLineInspectorToolFinishDrawing(List <Coordinate> points) { AddLineInspection(); foreach (var layer in gridLayerController.mapLayers) { transectController.AddGrid(layer.Grid, layer.Grid.patch.DataLayer.Color); } UpdateLinesElements(lineInspector.CurrLineInspection); ComputeAndUpdateLineProperties(); createLineInspectionToggle.isOn = false; inspectorTool.SetCursorTexture(inspectorTool.cursorDefault); // Update inspection line info panel SetCurrInspection(lineInspector.CurrLineInspection); inspectorOutput.ShowSummaryHeaderAndDropdown(InspectorTool.InspectorType.Line, true); // inspectorOutput.SetDropDownInteractive(InspectorTool.InspectorType.Line, lineInspector.LineInspectionCount > 1); inspectorOutput.ShowHeader(InspectorTool.InspectorType.Line, lineInspector.LineInspectionCount >= 1); inspectorOutput.ShowPropertiesAndSummaryLabel(InspectorTool.InspectorType.Line, lineInspector.LineInspectionCount >= 1); }
private void OnDrawArea(DrawingInfo info) { var lassoInfo = info as LassoDrawingInfo; var areaInfo = areaInfos[areaInspector.AreaInspectionCount]; int count = areaInspector.CreatedAreaInspectionCount + 1; areaInspector.CreateAreaInspection(areaInfo, count, inspectorTool.inspectionPrefab, inspectorTool.InspectContainer); areaInspector.CreateArea(areaInfo, count, inspectorTool.areaPrefab, lassoInfo.points); AddAreaInspection(); UpdateAreasElements(areaInspector.CurrAreaInspection); ComputeAndUpdateAreaProperties(); createAreaInspectionToggle.isOn = false; inspectorTool.SetCursorTexture(inspectorTool.cursorDefault); // Update inspection line info panel SetCurrInspection(areaInspector.CurrAreaInspection); inspectorOutput.ShowSummaryHeaderAndDropdown(InspectorTool.InspectorType.Area, true); // inspectorOutput.SetDropDownInteractive(InspectorTool.InspectorType.Area, areaInspector.AreaInspectionCount > 1); inspectorOutput.ShowHeader(InspectorTool.InspectorType.Area, areaInspector.AreaInspectionCount >= 1); inspectorOutput.ShowPropertiesAndSummaryLabel(InspectorTool.InspectorType.Area, areaInspector.AreaInspectionCount >= 1); }