1. ProfileInspect单独使用坐标转换参数,与全局的区分开。如果ProfileInspect没有设置,那么默认使用全局的
| | |
| | | <ClInclude Include="UITool\surfacecolor.h" /> |
| | | <ClInclude Include="UITool\textdescriptor.h" /> |
| | | <ClInclude Include="UITool\texture.h" /> |
| | | <ClInclude Include="View\DlgCoordinateConvert.h" /> |
| | | <ClInclude Include="View\DlgLicenseInfo.h" /> |
| | | <ClInclude Include="View\DlgLogin.h" /> |
| | | <ClInclude Include="View\FrameImg.h" /> |
| | |
| | | <ClCompile Include="UITool\surfacecolor.cpp" /> |
| | | <ClCompile Include="UITool\textdescriptor.cpp" /> |
| | | <ClCompile Include="UITool\texture.cpp" /> |
| | | <ClCompile Include="View\DlgCoordinateConvert.cpp" /> |
| | | <ClCompile Include="View\DlgLicenseInfo.cpp" /> |
| | | <ClCompile Include="View\DlgLogin.cpp" /> |
| | | <ClCompile Include="View\FrameImg.cpp" /> |
| | |
| | | <ClInclude Include="IncludeSDK.h"> |
| | | <Filter>头æä»¶</Filter> |
| | | </ClInclude> |
| | | <ClInclude Include="View\DlgCoordinateConvert.h"> |
| | | <Filter>View</Filter> |
| | | </ClInclude> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <ClCompile Include="ENRIT.cpp"> |
| | |
| | | <ClCompile Include="CLanguageControl.cpp"> |
| | | <Filter>Language</Filter> |
| | | </ClCompile> |
| | | <ClCompile Include="View\DlgCoordinateConvert.cpp"> |
| | | <Filter>View</Filter> |
| | | </ClCompile> |
| | | </ItemGroup> |
| | | <ItemGroup> |
| | | <ResourceCompile Include="ENRIT.rc"> |
| | |
| | | if(nStageNo < 0 || nStageNo > 1) |
| | | nStageNo = 0; |
| | | |
| | | int nChipInsArea = (int)((double)pChipPrm->m_nChippingInsArea/pCamera->m_dConvResolution[nStageNo]); |
| | | double dConvRes = pCamera->m_dConvResolution[nStageNo]; |
| | | |
| | | if (m_pRecipe != nullptr) { |
| | | CProfileInspect_Prm& profile = m_pRecipe->m_ProfilePrm; |
| | | double dProfileRes = profile.m_dConvResolution[eDim][nStageNo]; |
| | | if (dProfileRes > 0.0) { |
| | | dConvRes = dProfileRes; |
| | | } |
| | | } |
| | | |
| | | int nChipInsArea = (int)((double)pChipPrm->m_nChippingInsArea / dConvRes); |
| | | CRect rectChip = CRect(rectChamfer.CenterPoint().x,0,rectChamfer.CenterPoint().x,rectChamfer.Height()); |
| | | int nCrackInsArea = (int)((double)pChipPrm->m_nCrackINsArea/pCamera->m_dConvResolution[nStageNo]); |
| | | int nCrackInsArea = (int)((double)pChipPrm->m_nCrackINsArea / dConvRes); |
| | | CRect rectCrack = CRect(rectChamfer.CenterPoint().x,0,rectChamfer.CenterPoint().x,rectChamfer.Height()); |
| | | int nBrokenInsArea = (int)((double)pChipPrm->m_nBrokenInsArea/pCamera->m_dConvResolution[nStageNo]); |
| | | int nBrokenInsArea = (int)((double)pChipPrm->m_nBrokenInsArea / dConvRes); |
| | | CRect rectBroken = CRect(rectChamfer.CenterPoint().x,0,rectChamfer.CenterPoint().x,rectChamfer.Height()); |
| | | |
| | | rectChip.InflateRect(align_4byte(nChipInsArea)/2,0); |
| | |
| | | CopyMemory(m_stProfile,rh.m_stProfile,sizeof(ST_PROFILE_SETTING)*MAX_PROFILE_SETTING_COUNT); |
| | | CopyMemory(m_stCamferUp,rh.m_stCamferUp,sizeof(ST_CHAMFER_SETTING)*MAX_PROFILE_SETTING_COUNT); |
| | | CopyMemory(m_stCamferDn,rh.m_stCamferDn,sizeof(ST_CHAMFER_SETTING)*MAX_PROFILE_SETTING_COUNT); |
| | | CopyMemory(m_dConvResolution, rh.m_dConvResolution, sizeof(double) * MAX_DIMENSION_COUNT * MAX_STAGE_HAND_COUNT); |
| | | CopyMemory(m_dScanResolution, rh.m_dScanResolution, sizeof(double) * MAX_DIMENSION_COUNT * MAX_STAGE_HAND_COUNT); |
| | | |
| | | return *this; |
| | | } |
| | |
| | | pFile->GetItemValue(i,(TCHAR*)(LPCTSTR)str, m_nCADOffsetX[i]); |
| | | str.Format(_T("CAD_PROFILE_OFFSET_Y")); |
| | | pFile->GetItemValue(i,(TCHAR*)(LPCTSTR)str, m_nCADOffsetY[i]); |
| | | |
| | | for (int j = 0; j < MAX_STAGE_HAND_COUNT; j++) { |
| | | // Conv Resolution |
| | | str.Format(_T("CONV_RESOLUTION_%d_%d"), i, j); |
| | | pFile->GetItemValue(i, (TCHAR*)(LPCTSTR)str, m_dConvResolution[i][j]); |
| | | |
| | | // Scan Resolution |
| | | str.Format(_T("SCAN_RESOLUTION_%d_%d"), i, j); |
| | | pFile->GetItemValue(i, (TCHAR*)(LPCTSTR)str, m_dScanResolution[i][j]); |
| | | } |
| | | } |
| | | |
| | | for(i=0;i<MAX_PROFILE_SETTING_COUNT;i++) |
| | |
| | | pFile->SetItemValue(i,(TCHAR*)(LPCTSTR)str, m_nCADOffsetX[i]); |
| | | str.Format(_T("CAD_PROFILE_OFFSET_Y")); |
| | | pFile->SetItemValue(i,(TCHAR*)(LPCTSTR)str, m_nCADOffsetY[i]); |
| | | |
| | | for (int j = 0; j < MAX_STAGE_HAND_COUNT; j++) { |
| | | str.Format(_T("CONV_RESOLUTION_%d_%d"), i, j); |
| | | pFile->SetItemValue(i, (TCHAR*)(LPCTSTR)str, m_dConvResolution[i][j]); |
| | | |
| | | str.Format(_T("SCAN_RESOLUTION_%d_%d"), i, j); |
| | | pFile->SetItemValue(i, (TCHAR*)(LPCTSTR)str, m_dScanResolution[i][j]); |
| | | } |
| | | } |
| | | |
| | | for(i=0;i<MAX_PROFILE_SETTING_COUNT;i++) |
| | |
| | | ZeroMemory(m_stProfile,sizeof(ST_PROFILE_SETTING)*MAX_PROFILE_SETTING_COUNT); |
| | | ZeroMemory(m_stCamferUp,sizeof(ST_CHAMFER_SETTING)*MAX_PROFILE_SETTING_COUNT); |
| | | ZeroMemory(m_stCamferDn,sizeof(ST_CHAMFER_SETTING)*MAX_PROFILE_SETTING_COUNT); |
| | | ZeroMemory(m_dConvResolution, sizeof(double) * MAX_DIMENSION_COUNT * MAX_STAGE_HAND_COUNT); |
| | | ZeroMemory(m_dScanResolution, sizeof(double) * MAX_DIMENSION_COUNT * MAX_STAGE_HAND_COUNT); |
| | | } |
| | | |
| | | ////////////////////////////////////////////////////////////////////////// |
| | |
| | | ST_PROFILE_SETTING m_stProfile[MAX_PROFILE_SETTING_COUNT]; |
| | | ST_CHAMFER_SETTING m_stCamferUp[MAX_PROFILE_SETTING_COUNT]; |
| | | ST_CHAMFER_SETTING m_stCamferDn[MAX_PROFILE_SETTING_COUNT]; |
| | | |
| | | double m_dConvResolution[MAX_DIMENSION_COUNT][MAX_STAGE_HAND_COUNT]; |
| | | double m_dScanResolution[MAX_DIMENSION_COUNT][MAX_STAGE_HAND_COUNT]; |
| | | }; |
| | | |
| | | class CGlassRecipe |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | // DlgCoordinateConvert.cpp: å®ç°æä»¶ |
| | | // |
| | | |
| | | #include "stdafx.h" |
| | | #include "ENRIT.h" |
| | | #include "afxdialogex.h" |
| | | #include "DlgCoordinateConvert.h" |
| | | |
| | | // CDlgCoordinateConvert å¯¹è¯æ¡ |
| | | |
| | | const int CAM_COLUMN_COUNT = 5; |
| | | const TCHAR* CAM_COLUMN_NAMES[CAM_COLUMN_COUNT] = { |
| | | _T("Dimension"), |
| | | _T("0 Hand Resolution(H)"), |
| | | _T("0 Hand Resolution(V)"), |
| | | _T("1 Hand Resolution(H)"), |
| | | _T("1 Hand Resolution(V)") |
| | | }; |
| | | |
| | | const int CAM_COLUMN_WIDTHS[CAM_COLUMN_COUNT] = { |
| | | 80, 120, 120, 120, 120 |
| | | }; |
| | | |
| | | #define GRID_FIX_COLOR RGB(144,200,246) |
| | | #define GRID_COLOR RGB(242,242,242) |
| | | #define GRID_TEXT_COLOR RGB(255,255,255) |
| | | #define GRID_LINE_COLOR GRID_FIX_COLOR |
| | | |
| | | IMPLEMENT_DYNAMIC(CDlgCoordinateConvert, CDialogEx) |
| | | |
| | | CDlgCoordinateConvert::CDlgCoordinateConvert(CWnd* pParent /*=nullptr*/) |
| | | : CDialogEx(IDD_DLG_COORD_CONVERT, pParent) |
| | | , m_nCameraCount(0) |
| | | , m_nScanCount(0) |
| | | , m_pDlgRecipe(nullptr) |
| | | { |
| | | |
| | | } |
| | | |
| | | CDlgCoordinateConvert::~CDlgCoordinateConvert() |
| | | { |
| | | } |
| | | |
| | | void CDlgCoordinateConvert::SetRecipe(CGlassRecipe* pRecipe) |
| | | { |
| | | m_pDlgRecipe = pRecipe; |
| | | } |
| | | |
| | | void CDlgCoordinateConvert::InitCameraGrid() |
| | | { |
| | | if (m_gridCameraList.GetSafeHwnd() == NULL) { |
| | | return; |
| | | } |
| | | |
| | | m_gridCameraList.GetDefaultCell(TRUE, FALSE)->SetBackClr(GRID_FIX_COLOR); |
| | | m_gridCameraList.GetDefaultCell(FALSE, TRUE)->SetBackClr(GRID_FIX_COLOR); |
| | | m_gridCameraList.GetDefaultCell(FALSE, FALSE)->SetBackClr(GRID_COLOR); |
| | | m_gridCameraList.SetFixedBkColor(GRID_FIX_COLOR); |
| | | m_gridCameraList.SetGridLines(GVL_BOTH); |
| | | |
| | | m_gridCameraList.SetColumnCount(CAM_COLUMN_COUNT); |
| | | m_gridCameraList.SetRowCount(10); |
| | | m_gridCameraList.SetFixedRowCount(1); |
| | | m_gridCameraList.SetFixedColumnCount(0); |
| | | m_gridCameraList.ExpandColumnsToFit(); |
| | | |
| | | CFont* pFont = m_gridCameraList.GetFont(); |
| | | if (!pFont) { |
| | | return; |
| | | } |
| | | |
| | | LOGFONT lf; |
| | | pFont->GetLogFont(&lf); |
| | | lf.lfItalic = 0; |
| | | lf.lfHeight = 14; |
| | | lf.lfWeight = FW_BOLD; |
| | | _tcscpy_s(lf.lfFaceName, LF_FACESIZE, _T("Arial")); |
| | | |
| | | m_gridCameraList.GetDefaultCell(TRUE, FALSE)->SetFont(&lf); |
| | | m_gridCameraList.GetDefaultCell(FALSE, TRUE)->SetFont(&lf); |
| | | m_gridCameraList.GetDefaultCell(TRUE, TRUE)->SetFont(&lf); |
| | | m_gridCameraList.SetEditable(TRUE); |
| | | m_gridCameraList.EnableSelection(TRUE); |
| | | |
| | | InitCameraGridHeader(); |
| | | } |
| | | |
| | | void CDlgCoordinateConvert::InitCameraGridHeader() |
| | | { |
| | | CString str; |
| | | GV_ITEM Item; |
| | | int nCol = 0; |
| | | int iLoop; |
| | | |
| | | Item.mask = GVIF_TEXT; |
| | | Item.row = 0; |
| | | for (iLoop = 0; iLoop < CAM_COLUMN_COUNT; iLoop++) { |
| | | Item.col = nCol++; |
| | | Item.strText = CAM_COLUMN_NAMES[iLoop]; |
| | | m_gridCameraList.SetItem(&Item); |
| | | m_gridCameraList.SetColumnWidth(Item.col, CAM_COLUMN_WIDTHS[iLoop]); |
| | | } |
| | | |
| | | m_gridCameraList.Invalidate(); |
| | | } |
| | | |
| | | void CDlgCoordinateConvert::FillCameraGrid() |
| | | { |
| | | m_gridCameraList.SetRowCount(MAX_DIMENSION_COUNT + 1); |
| | | |
| | | CProfileInspect_Prm profile; |
| | | if (m_pDlgRecipe != nullptr) { |
| | | profile = m_pDlgRecipe->m_ProfilePrm; |
| | | } |
| | | else { |
| | | for (int i = 0; i < MAX_DIMENSION_COUNT; i++) { |
| | | profile.m_dConvResolution[i][0] = 0.01; |
| | | profile.m_dConvResolution[i][1] = 0.01; |
| | | profile.m_dScanResolution[i][0] = 0.01; |
| | | profile.m_dScanResolution[i][1] = 0.01; |
| | | } |
| | | } |
| | | |
| | | CString str; |
| | | const TCHAR* SET_INS_DIMENSION[] = { _T("A Top"),_T("B Top"),_T("C Top"),_T("D Top"),_T("A Bot"),_T("B Bot"),_T("C Bot"),_T("D Bot") }; |
| | | for (int i = 0; i < MAX_DIMENSION_COUNT; ++i) { |
| | | int iRow = i + 1; |
| | | |
| | | m_gridCameraList.SetItemText(iRow, 0, SET_INS_DIMENSION[i]); |
| | | m_gridCameraList.SetItemState(iRow, 0, GVIS_READONLY); |
| | | |
| | | str.Format(_T("%.10f"), profile.m_dConvResolution[i][0]); |
| | | m_gridCameraList.SetItemText(iRow, 1, str); |
| | | |
| | | str.Format(_T("%.10f"), profile.m_dConvResolution[i][1]); |
| | | m_gridCameraList.SetItemText(iRow, 2, str); |
| | | |
| | | str.Format(_T("%.10f"), profile.m_dScanResolution[i][0]); |
| | | m_gridCameraList.SetItemText(iRow, 3, str); |
| | | |
| | | str.Format(_T("%.10f"), profile.m_dScanResolution[i][1]); |
| | | m_gridCameraList.SetItemText(iRow, 4, str); |
| | | } |
| | | |
| | | m_gridCameraList.Invalidate(); |
| | | } |
| | | |
| | | void CDlgCoordinateConvert::DoDataExchange(CDataExchange* pDX) |
| | | { |
| | | CDialogEx::DoDataExchange(pDX); |
| | | DDX_Control(pDX, IDC_CAMERA_LIST, m_gridCameraList); |
| | | DDX_Text(pDX, IDC_EDIT_CAMERA_COUNT, m_nCameraCount); |
| | | DDX_Text(pDX, IDC_EDIT_SCAN_COUNT, m_nScanCount); |
| | | } |
| | | |
| | | BEGIN_MESSAGE_MAP(CDlgCoordinateConvert, CDialogEx) |
| | | END_MESSAGE_MAP() |
| | | |
| | | BEGIN_EVENTSINK_MAP(CDlgCoordinateConvert, CDialogEx) |
| | | ON_EVENT(CDlgCoordinateConvert, IDC_BTN_CONVERT_APPLY, DISPID_CLICK, CDlgCoordinateConvert::OnClickBtnConvertApply, VTS_NONE) |
| | | ON_EVENT(CDlgCoordinateConvert, IDC_BTN_CONVERT_CLOSE, DISPID_CLICK, CDlgCoordinateConvert::OnClickBtnConvertClose, VTS_NONE) |
| | | END_EVENTSINK_MAP() |
| | | |
| | | // CDlgCoordinateConvert æ¶æ¯å¤çç¨åº |
| | | |
| | | BOOL CDlgCoordinateConvert::OnInitDialog() |
| | | { |
| | | CDialogEx::OnInitDialog(); |
| | | |
| | | // TODO: 卿¤æ·»å é¢å¤çåå§å |
| | | m_nCameraCount = g_pBase->m_nCameraCount; |
| | | m_nScanCount = g_pBase->m_nScanCount; |
| | | |
| | | InitCameraGrid(); |
| | | FillCameraGrid(); |
| | | |
| | | UpdateData(FALSE); |
| | | |
| | | return TRUE; // return TRUE unless you set the focus to a control |
| | | // å¼å¸¸: OCX 屿§é¡µåºè¿å FALSE |
| | | } |
| | | |
| | | void CDlgCoordinateConvert::OnClickBtnConvertApply() |
| | | { |
| | | if (m_pDlgRecipe != nullptr) { |
| | | for (int i = 0; i < MAX_DIMENSION_COUNT; ++i) { |
| | | int iRow = i + 1; |
| | | |
| | | CString strVal; |
| | | strVal = m_gridCameraList.GetItemText(iRow, 1); |
| | | m_pDlgRecipe->m_ProfilePrm.m_dConvResolution[i][0] = _tstof(strVal); |
| | | |
| | | strVal = m_gridCameraList.GetItemText(iRow, 2); |
| | | m_pDlgRecipe->m_ProfilePrm.m_dConvResolution[i][1] = _tstof(strVal); |
| | | |
| | | strVal = m_gridCameraList.GetItemText(iRow, 3); |
| | | m_pDlgRecipe->m_ProfilePrm.m_dScanResolution[i][0] = _tstof(strVal); |
| | | |
| | | strVal = m_gridCameraList.GetItemText(iRow, 4); |
| | | m_pDlgRecipe->m_ProfilePrm.m_dScanResolution[i][1] = _tstof(strVal); |
| | | } |
| | | } |
| | | |
| | | this->EndDialog(IDOK); |
| | | } |
| | | |
| | | void CDlgCoordinateConvert::OnClickBtnConvertClose() |
| | | { |
| | | this->EndDialog(IDCANCEL); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | #pragma once |
| | | #include "afxdialogex.h" |
| | | #include "GlassRecipe.h" |
| | | |
| | | // CDlgCoordinateConvert å¯¹è¯æ¡ |
| | | |
| | | class CDlgCoordinateConvert : public CDialogEx |
| | | { |
| | | DECLARE_DYNAMIC(CDlgCoordinateConvert) |
| | | |
| | | public: |
| | | CDlgCoordinateConvert(CWnd* pParent = nullptr); // æ åæé 彿° |
| | | virtual ~CDlgCoordinateConvert(); |
| | | |
| | | // 设置é
æ¹ |
| | | void SetRecipe(CGlassRecipe* pRecipe); |
| | | |
| | | // å¯¹è¯æ¡æ°æ® |
| | | #ifdef AFX_DESIGN_TIME |
| | | enum { IDD = IDD_DLG_COORD_CONVERT }; |
| | | #endif |
| | | |
| | | protected: |
| | | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV æ¯æ |
| | | virtual BOOL OnInitDialog(); |
| | | afx_msg void OnClickBtnConvertApply(); |
| | | afx_msg void OnClickBtnConvertClose(); |
| | | DECLARE_MESSAGE_MAP() |
| | | DECLARE_EVENTSINK_MAP() |
| | | |
| | | private: |
| | | void InitCameraGrid(); |
| | | void InitCameraGridHeader(); |
| | | void FillCameraGrid(); |
| | | |
| | | int m_nCameraCount; |
| | | int m_nScanCount; |
| | | CGridCtrl m_gridCameraList; |
| | | CGlassRecipe* m_pDlgRecipe; |
| | | }; |
| | |
| | | #include "ViewRecipeProfileView.h" |
| | | #include "afxdialogex.h" |
| | | #include "Global_Define.h" |
| | | #include "DlgCoordinateConvert.h" |
| | | |
| | | // CViewRecipeProfileView æªæ³ æç£æ¶èªä¿. |
| | | |
| | |
| | | CDialogEx::DoDataExchange(pDX); |
| | | } |
| | | |
| | | |
| | | BEGIN_MESSAGE_MAP(CViewRecipeProfileView, CDialogEx) |
| | | ON_WM_SHOWWINDOW() |
| | | END_MESSAGE_MAP() |
| | | |
| | | BEGIN_EVENTSINK_MAP(CViewRecipeProfileView, CDialogEx) |
| | | |
| | | ON_EVENT(CViewRecipeProfileView, IDC_BTN_PROFILE_TEST_RUN, DISPID_CLICK, CViewRecipeProfileView::ClickChkButProfileTestRun, VTS_NONE) |
| | | ON_EVENT(CViewRecipeProfileView, IDC_BTN_PROFILE_COORDINATE_CONVERT, DISPID_CLICK, CViewRecipeProfileView::ClickChkButCoordinateConvert, VTS_NONE) |
| | | ON_EVENT(CViewRecipeProfileView, IDC_BTN_PROFILE_MAKECAD, DISPID_CLICK, CViewRecipeProfileView::ClickChkButMakeCAD, VTS_NONE) |
| | | ON_EVENT(CViewRecipeProfileView, IDC_BTN_PROFILE_APPLY, DISPID_CLICK, CViewRecipeProfileView::ClickChkButProfileApplay, VTS_NONE) |
| | | ON_EVENT(CViewRecipeProfileView, IDC_BTN_PROFILE_TEST_RUN, DISPID_CLICK, CViewRecipeProfileView::ClickChkButProfileTestRun, VTS_NONE) |
| | | |
| | | END_EVENTSINK_MAP() |
| | | |
| | | BOOL CViewRecipeProfileView::OnInitDialog() |
| | |
| | | } |
| | | |
| | | return CDialog::PreTranslateMessage(pMsg); |
| | | } |
| | | |
| | | void CViewRecipeProfileView::ClickChkButProfileTestRun() |
| | | { |
| | | if (m_pProfileProc == NULL) |
| | | return; |
| | | |
| | | CString str = _T("C:\\RCutProject\\Profile\\TEST5_B.prf"); |
| | | |
| | | m_pProfileProc->ReadProfileData(str); |
| | | |
| | | CPoint ptFirst, ptSecond; |
| | | |
| | | ptFirst = CPoint(2160, 32512); |
| | | ptSecond = CPoint(2186, 66030); |
| | | |
| | | //m_pProfileProc->RotateProfileData(ptFirst,ptSecond); |
| | | } |
| | | |
| | | void CViewRecipeProfileView::ClickChkButCoordinateConvert() |
| | | { |
| | | if (m_pProfileProc == NULL || m_pDlgRecipe == NULL) { |
| | | return; |
| | | } |
| | | |
| | | CDlgCoordinateConvert dlg; |
| | | dlg.SetRecipe(m_pDlgRecipe); |
| | | if (dlg.DoModal() == IDOK) { |
| | | g_pLog->DisplayMessage(_T("User applied coordinate conversion!")); |
| | | } |
| | | } |
| | | |
| | | void CViewRecipeProfileView::ClickChkButMakeCAD() |
| | |
| | | SetSlashText(GLOBAL_DEFINE::emHide, _T(""), RGB(0,0,0)); |
| | | } |
| | | |
| | | void CViewRecipeProfileView::ClickChkButProfileApplay() |
| | | { |
| | | UpdateData(TRUE); |
| | | } |
| | | |
| | | void CViewRecipeProfileView::OnShowWindow(BOOL bShow, UINT nStatus) |
| | | { |
| | |
| | | { |
| | | UpdateData(FALSE); |
| | | } |
| | | } |
| | | |
| | | void CViewRecipeProfileView::ClickChkButProfileApplay() |
| | | { |
| | | UpdateData(TRUE); |
| | | } |
| | | |
| | | void CViewRecipeProfileView::ClickChkButProfileTestRun() |
| | | { |
| | | if(m_pProfileProc == NULL) |
| | | return; |
| | | |
| | | CString str=_T("C:\\RCutProject\\Profile\\TEST5_B.prf"); |
| | | |
| | | m_pProfileProc->ReadProfileData(str); |
| | | |
| | | CPoint ptFirst,ptSecond; |
| | | |
| | | ptFirst = CPoint(2160,32512); |
| | | ptSecond = CPoint(2186,66030); |
| | | |
| | | //m_pProfileProc->RotateProfileData(ptFirst,ptSecond); |
| | | |
| | | } |
| | | |
| | | void CViewRecipeProfileView::SetRecipe(CHardwareSettings *pHW,CGlassRecipe *pRecipe) |
| | |
| | | |
| | | protected: |
| | | virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV ç¤çæ¶èªä¿. |
| | | void ClickChkButProfileTestRun(); |
| | | void ClickChkButCoordinateConvert(); |
| | | void ClickChkButMakeCAD(); |
| | | void ClickChkButProfileApplay(); |
| | | void ClickChkButProfileTestRun(); |
| | | afx_msg void OnShowWindow(BOOL bShow, UINT nStatus); |
| | | virtual BOOL OnInitDialog(); |
| | | virtual BOOL PreTranslateMessage(MSG* pMsg); |
| | |
| | | |
| | | InitScrollInfo(); |
| | | |
| | | UINT eViewID[] = {IDC_RDO_RCP_INSPECT_SETTING,IDC_RDO_RCP_PROFILE_SETTING}; |
| | | UINT eViewID[] = { IDC_RDO_RCP_INSPECT_SETTING, IDC_RDO_RCP_PROFILE_SETTING, IDC_RDO_RCP_CHAMFER_SETTING }; |
| | | |
| | | ChangeRcpView(eViewID[m_nCndSelect]); |
| | | } |