/* * Copyright (c) 2025 LG Electronics Inc. * SPDX-License-Identifier: LicenseRef-LGE-Proprietary */ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VisionCommon { /// /// UI 바인딩 및 레시피 저장이 필요한 뷰에서 상속받아 구현한다. /// public interface IUpdateRecipe { /// 비전 레시피를 최신으로 갱신한다. /// /// /// _VsRps = VisionRecipeManager.GetVisionRecipes(_VsRps.SubSysInfo); // 레시피 갱신 /// /// /// void RefreshVisionRecipes(); /// 최신 레시피 복사본을 UI에 업데이트한다. /// /// /// var vsRps = VisionRecipeManager.GetVisionRecipes(_VsRps.SubSysInfo); // 레시피 새로 읽기 /// var alignRecipe = vsRps.AlignRecipes[_AlignIdx].Clone(); // 레시피 복사 /// AlignRetry = alignRecipe.AlignRetry; // 레시피 업데이트(바인딩) /// /// /// void UpdateRecipeFromFile(); /// 파일 저장 전, UI에서 읽어온 레시피를 메모리에 업데이트 한다. /// /// /// var vsRps = VisionRecipeManager.GetVisionRecipes(_VsRps.SubSysInfo); // 레시피 새로 읽기 /// var alignRecipe = vsRps.AlignRecipes[_AlignIdx]; /// alignRecipe.AlignRetry = AlignRetry; // 레시피 메모리에 쓰기 /// RecipeFileManager.SaveVisionRecipe(); // 레시피 파일 저장 (함수 외부에서 저장해도 됨) /// /// /// void UpdateRecipeFromUI(); } }