📄 framemain.cpp
字号:
else { rcSplitY1.SetRect(rcSplitX1.right, nCenterY1-SPLIT_SIZE, rcFClient.right, nCenterY1+SPLIT_SIZE); m_pSpFrame3DF0_Y1->MoveWindow(rcSplitY1); rcSplitY2.SetRect(rcSplitX1.right, nCenterY2-SPLIT_SIZE, rcFClient.right, nCenterY2+SPLIT_SIZE); m_pSpFrame3DF0_Y2->MoveWindow(rcSplitY2); } } else if(nRecalc == FRAME_RECALC_NO) { m_pSpFrame3DF0_X1->GetWindowRect(rcSplitX1); ScreenToClient(rcSplitX1); m_pSpFrame3DF0_Y1->GetWindowRect(rcSplitY1); ScreenToClient(rcSplitY1); m_pSpFrame3DF0_Y2->GetWindowRect(rcSplitY2); ScreenToClient(rcSplitY2); } CWnd *pWnd; CRect rcWnd; rcWnd.SetRect(rcFClient.left, rcSplitX1.top, rcSplitX1.left, rcSplitX1.bottom); pWnd = (CWnd *)GetDlgItem(m_pSpFrame3DF0_X1->m_leftIDs.GetAt(0)); pWnd->MoveWindow(rcWnd); rcWnd.SetRect(rcSplitX1.right, rcSplitX1.top, rcSplitY1.right, rcSplitY1.top); pWnd = (CWnd *)GetDlgItem(m_pSpFrame3DF0_X1->m_rightIDs.GetAt(0)); pWnd->MoveWindow(rcWnd); rcWnd.SetRect(rcSplitX1.right, rcSplitY1.bottom, rcSplitY1.right, rcSplitY2.top); pWnd = (CWnd *)GetDlgItem(m_pSpFrame3DF0_X1->m_rightIDs.GetAt(2)); pWnd->MoveWindow(rcWnd); rcWnd.SetRect(rcSplitX1.right, rcSplitY2.bottom, rcSplitY1.right, rcSplitX1.bottom); pWnd = (CWnd *)GetDlgItem(m_pSpFrame3DF0_X1->m_rightIDs.GetAt(4)); pWnd->MoveWindow(rcWnd); }}void RxFrameMain::Frame3DF_MPR(){ if(m_n3DFMatrix == FRAME_MATRIX_12) { m_n3DFLocalMax = 0; RxFMWnd *pWnd; CRect rect; pWnd = (RxFMWnd *)GetDlgItem(m_pSpFrame3DF1_X1->m_leftIDs.GetAt(0)); pWnd->ShowWindow(SW_HIDE); pWnd = (RxFMWnd *)GetDlgItem(m_pSpFrame3DF1_X1->m_rightIDs.GetAt(0)); pWnd->ShowWindow(SW_HIDE); pWnd->GetWindowRect(rect); ScreenToClient(rect); m_b3DFMPR = TRUE; UINT nID; if(m_n3DFSeries == RXSERIES_REF) nID = IDF_MAIN_WND_3DMPR_R; else if(m_n3DFSeries == RXSERIES_FLT) nID = IDF_MAIN_WND_3DMPR_F; else if(m_n3DFSeries == RXSERIES_COM) nID = IDF_MAIN_WND_3DMPR_C; pWnd = (RxFMWnd *)GetDlgItem(m_pSpFrame3DF1_X1->m_leftIDs.GetAt(0)); pWnd->ShowWindow(SW_SHOW); m_pSpFrame3DF1_X1->m_rightIDs.SetAt(0, nID); pWnd = (RxFMWnd *)GetDlgItem(nID); pWnd->MoveWindow(rect); pWnd->ShowWindow(SW_SHOW); RxSetActiveWnd(pWnd); } else if(m_n3DFMatrix == FRAME_MATRIX_32) { Frame3DF_FrameHide(); m_n3DFMatrix = FRAME_MATRIX_12; m_b3DFMPR = TRUE; m_n3DFLocalMax = 0; Frame3DF_FrameShow(); }}void RxFrameMain::Frame3DF_Local_Nor(){ if(m_n3DFMatrix == FRAME_MATRIX_12) { Frame3DF_FrameHide(); m_n3DFMatrix = FRAME_MATRIX_32; if(m_b3DFMPR) { SetTBCurMode(BTN_ZOOM); m_b3DFMPR = FALSE; } m_n3DFLocalMax = -1; Frame3DF_FrameShow(); } else if(m_n3DFMatrix == FRAME_MATRIX_32) { m_n3DFLocalMin = -1; Frame3DF_Recalc(FRAME_RECALC_PART); }}void RxFrameMain::Frame3DF_Local_Min(int nIndex){ m_n3DFLocalMin = nIndex; Frame3DF_Recalc(FRAME_RECALC_PART);}void RxFrameMain::Frame3DF_Local_Max(int nIndex){ if(m_n3DFMatrix == FRAME_MATRIX_32) { Frame3DF_FrameHide(); m_n3DFMatrix = FRAME_MATRIX_12; m_n3DFLocalMax = nIndex; Frame3DF_FrameShow(); }}void RxFrameMain::Frame3DF_Local_Exchange(int nIndex){ if(m_n3DFMatrix == FRAME_MATRIX_12) { m_n3DFLocalMax = nIndex; RxFMWnd *pWnd; CRect rect; pWnd = (RxFMWnd *)GetDlgItem(m_pSpFrame3DF1_X1->m_rightIDs.GetAt(0)); pWnd->ShowWindow(SW_HIDE); pWnd->GetWindowRect(rect); ScreenToClient(rect); UINT nID; if(m_n3DFSeries == RXSERIES_REF) { if(nIndex == 0) nID = IDF_MAIN_WND_3DLOCALA_R; else if(nIndex == 1) nID = IDF_MAIN_WND_3DLOCALC_R; else if(nIndex == 2) nID = IDF_MAIN_WND_3DLOCALS_R; } else if(m_n3DFSeries == RXSERIES_FLT) { if(nIndex == 0) nID = IDF_MAIN_WND_3DLOCALA_F; else if(nIndex == 1) nID = IDF_MAIN_WND_3DLOCALC_F; else if(nIndex == 2) nID = IDF_MAIN_WND_3DLOCALS_F; } else if(m_n3DFSeries == RXSERIES_COM) { if(nIndex == 0) nID = IDF_MAIN_WND_3DLOCALA_C; else if(nIndex == 1) nID = IDF_MAIN_WND_3DLOCALC_C; else if(nIndex == 2) nID = IDF_MAIN_WND_3DLOCALS_C; } m_pSpFrame3DF1_X1->m_rightIDs.SetAt(0, nID); pWnd = (RxFMWnd *)GetDlgItem(nID); pWnd->MoveWindow(rect); pWnd->ShowWindow(SW_SHOW); RxSetActiveWnd(pWnd); }}/////////////////////////////////////////////////////////////////////////////void RxFrameMain::OnPan() { m_nTBCurMode = BTN_PAN;}void RxFrameMain::OnZoom() { m_nTBCurMode = BTN_ZOOM;}void RxFrameMain::OnCrop() { m_nTBCurMode = BTN_CROP;}void RxFrameMain::On3dmprBasic() { if(m_nTBCurMode == BTN_3DMPR_BASIC) return; m_nTBCurMode = BTN_3DMPR_BASIC; Frame3DF_MPR();}void RxFrameMain::OnFitting() { m_pFMWndVR[RxGetCurSeries()]->FittingVR();}void RxFrameMain::OnReset() { int nSeries = RxGetCurSeries(); m_pFMWndVR[nSeries]->ResetVR(); m_pFMWndVR[nSeries]->RedrawWnd(TRUE); m_pFMWnd3DMPR[nSeries]->RedrawWnd(TRUE,TRUE); m_pLocalizerManager[nSeries]->Reset();}void RxFrameMain::OnRegistMutual() { // for Segmentation// m_nTBCurMode = BTN_3DSRG;// m_bEdgeDraw = true; BeginWaitCursor(); if(RxGetCurSeries() == RXSERIES_REF) { //m_SegmentAgent.Segmentation(0); m_SegmentAgent.Segmentation_For_Perfusion(0);// m_SegmentAgent.NoduleSegmentation(0); m_bRefSegmented = true; (RxGetFrameMain()->m_pFMWndVR[0])->RedrawWnd(TRUE); (RxGetFrameMain()->m_pFMWnd3DLocalA[0])->Redraw(TRUE); (RxGetFrameMain()->m_pFMWnd3DLocalC[0])->Redraw(TRUE); (RxGetFrameMain()->m_pFMWnd3DLocalS[0])->Redraw(TRUE); //m_SegmentAgent.Segmentation(1); m_SegmentAgent.Segmentation_For_Perfusion(1);// m_SegmentAgent.NoduleSegmentation(1); m_bFloatSegmented = true; (RxGetFrameMain()->m_pFMWndVR[1])->RedrawWnd(TRUE); (RxGetFrameMain()->m_pFMWnd3DLocalA[1])->Redraw(TRUE); (RxGetFrameMain()->m_pFMWnd3DLocalC[1])->Redraw(TRUE); (RxGetFrameMain()->m_pFMWnd3DLocalS[1])->Redraw(TRUE); } else if(RxGetCurSeries() == RXSERIES_FLT) { //m_SegmentAgent.Segmentation(1); m_SegmentAgent.Segmentation_For_Perfusion(1); //m_SegmentAgent.NoduleSegmentation(1); m_bFloatSegmented = true; //AfxMessageBox(_T("stop1")); (RxGetFrameMain()->m_pFMWndVR[1])->RedrawWnd(TRUE); //AfxMessageBox(_T("stop2")); (RxGetFrameMain()->m_pFMWnd3DLocalA[1])->Redraw(TRUE); (RxGetFrameMain()->m_pFMWnd3DLocalC[1])->Redraw(TRUE); (RxGetFrameMain()->m_pFMWnd3DLocalS[1])->Redraw(TRUE); //AfxMessageBox(_T("stop3")); } EndWaitCursor(); int nSeries = RxGetCurSeries(); if(RxGetCurSeries() == RXSERIES_COM) m_pFMWndVR[nSeries]->Subtraction();}void RxFrameMain::OnRegistCross() { int nSeries = RxGetCurSeries(); if(RxGetCurSeries() == RXSERIES_COM) m_pFMWndVR[nSeries]->RigidRegSubtraction();}void RxFrameMain::OnRegistMi() { int nSeries = RxGetCurSeries(); if(RxGetCurSeries() == RXSERIES_COM) m_pFMWndVR[nSeries]->NonRigidRegistration();}void RxFrameMain::On3DOP(){ int nSeries = RxGetCurSeries(); if(RxGetCurSeries() == RXSERIES_COM) m_pFMWndVR[nSeries]->NonRigidRegistration();}void RxFrameMain::OnUpdate3DOP(CCmdUI* pCmdUI){ if(RxGetCurSeries() == RXSERIES_COM) pCmdUI->Enable(TRUE); else pCmdUI->Enable(FALSE);}void RxFrameMain::OnUpdatePan(CCmdUI* pCmdUI) { if(m_nTBCurMode == BTN_PAN) pCmdUI->SetCheck(TRUE); else pCmdUI->SetCheck(FALSE);}void RxFrameMain::OnUpdateZoom(CCmdUI* pCmdUI) { if(m_nTBCurMode == BTN_ZOOM) pCmdUI->SetCheck(TRUE); else pCmdUI->SetCheck(FALSE);}void RxFrameMain::OnUpdateCrop(CCmdUI* pCmdUI) { if(m_nTBCurMode == BTN_CROP) pCmdUI->SetCheck(TRUE); else pCmdUI->SetCheck(FALSE);}void RxFrameMain::OnUpdate3dmprBasic(CCmdUI* pCmdUI) { if(m_nTBCurMode == BTN_3DMPR_BASIC) pCmdUI->SetCheck(TRUE); else pCmdUI->SetCheck(FALSE);}// yeni0406// for segmentationvoid RxFrameMain::OnUpdateRegistMutual(CCmdUI* pCmdUI) { pCmdUI->Enable(TRUE);}void RxFrameMain::OnUpdateRegistCross(CCmdUI* pCmdUI) { if(RxGetCurSeries() == RXSERIES_COM) pCmdUI->Enable(TRUE); else pCmdUI->Enable(FALSE);}void RxFrameMain::OnUpdateRegistMi(CCmdUI* pCmdUI) { if(RxGetCurSeries() == RXSERIES_COM) pCmdUI->Enable(TRUE); else pCmdUI->Enable(FALSE);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -