/// <summary> /// Set System Parameter (Main -> Inspection System Manager) /// </summary> /// <param name="_InspSysManagerParam">System Parameter</param> private void SetISMParameter(InspectionSystemManagerParameter _InspSysManagerParam) { CameraType = _InspSysManagerParam.CameraType; InspWnd.SetLocation(_InspSysManagerParam.InspWndParam.LocationX, _InspSysManagerParam.InspWndParam.LocationY); InspWnd.SetWindowSize(_InspSysManagerParam.InspWndParam.Width, _InspSysManagerParam.InspWndParam.Height); InspWnd.SetWindowDisplayInfo(_InspSysManagerParam.InspWndParam.DisplayZoomValue, _InspSysManagerParam.InspWndParam.DisplayPanXValue, _InspSysManagerParam.InspWndParam.DisplayPanYValue); WndLocation = new Point(_InspSysManagerParam.InspWndParam.LocationX, _InspSysManagerParam.InspWndParam.LocationY); }
public void Initialize(Object _OwnerForm, int _ProjectType, InspectionSystemManagerParameter _InspSysManagerParam, InspectionParameter _InspParam, string _RecipeName, string _FolderPath) { ProjectType = (eProjectType)_ProjectType; ProjectItem = (eProjectItem)_InspSysManagerParam.ProjectItem; _InspParam.ResolutionX = _InspSysManagerParam.ResolutionX; _InspParam.ResolutionY = _InspSysManagerParam.ResolutionY; SetISMParameter(_InspSysManagerParam); SetInspectionParameter(_InspParam); InspWnd.Initialize(_OwnerForm, ID, InspParam, ProjectType, ProjectItem, InspWndName, _RecipeName, IsSimulationMode, _FolderPath); InspWnd.InitializeResolution(_InspSysManagerParam.ResolutionX, _InspSysManagerParam.ResolutionY); InspWnd.InitializeCam(_InspSysManagerParam.CameraType, _InspSysManagerParam.CameraConfigInfo, Convert.ToInt32(_InspSysManagerParam.ImageSizeWidth), Convert.ToInt32(_InspSysManagerParam.ImageSizeHeight), _InspSysManagerParam.CameraRotate); InspWnd.InspectionWindowEvent += new InspectionWindow.InspectionWindowHandler(InspectionWindowEventFunction); }