📄 fusionglobal.cpp
字号:
#include "StdAfx.h"#include "FusionGlobal.h"#include "FusionEnum.h"#include "FusionLoadedSeries.h"#include <fstream.h>RxFusionLoadedSeries g_LoadedSeries[2] = {SERIES_ONE, SERIES_TWO};RxMainFrame* RxGetMainFrame(){ return (RxMainFrame *)(AfxGetApp()->m_pMainWnd);}RxFrameTop* RxGetFrameTop(){ return RxGetMainFrame()->m_pWndTop;}RxFrameSide* RxGetFrameSide(){ return RxGetMainFrame()->m_pWndSide;}RxFrameBottom* RxGetFrameBottom(){ return RxGetMainFrame()->m_pWndBottom;}RxFrameHelp* RxGetFrameHelp(){ return RxGetMainFrame()->m_pWndHelp;}RxFrameTuning* RxGetFrameTuning(){ return RxGetMainFrame()->m_pWndTuning;}RxFrameMain* RxGetFrameMain(){ return RxGetMainFrame()->m_pWndMain;}int RxGetCurMainMenu(){ return RxGetMainFrame()->GetCurMainMenu();}int RxGetOldMainMenu(){ return RxGetMainFrame()->GetOldMainMenu();}int RxIsTopActived(){ return RxGetMainFrame()->IsTopActived();}void RxSetActiveWnd(RxFMWnd *pWnd){ RxGetMainFrame()->SetActiveWnd(pWnd);}int RxGetCurSeries(){ return RxGetMainFrame()->GetCurSeries();}RxFMWnd* RxGetActiveWnd(){ return RxGetMainFrame()->GetActiveWnd();}RxVolumeData *RxGetVolumeData(int iLSN){ return &(g_LoadedSeries[iLSN].m_VolumeData);}JJBinaryVolume g_refSegVol;JJBinaryVolume g_floatSegVol;ofstream g_outFile;RxLRNodule g_arrRefNodule;RxLRNodule g_arrFloatNodule;float g_FloatCenX, g_FloatCenY, g_FloatCenZ;float g_RefCenX, g_RefCenY, g_RefCenZ;float g_ScaleX, g_ScaleY, g_ScaleZ;int g_iRefBinaryTransZ;int g_iFloatBinaryTransZ;double g_lfRefRatioZ, g_lfFloatRatioZ;int g_iRefMinZ, g_iRefMaxZ;int g_iFloatMinZ, g_iFloatMaxZ;int g_nPatient;unsigned char g_arrMapR[256];unsigned char g_arrMapG[256];unsigned char g_arrMapB[256];int g_nTransMode = 1;int g_nDistanceMapMode = 0;int g_nDilationMode = 1;int g_nIRMode = 0;int g_R1 = 5;int g_R2 = 30;int g_R3 = 100;int g_R4 = 230;BOOL g_bSaveDicom = FALSE;BOOL g_bColorPerfusion = TRUE;void RxDrawNodule(CPoint ptCenter, int iRadius, COLORREF color, CDC *pDC){ CPen pen,* pOldPen; CBrush brush,* pOldBrush; pen.CreatePen(PS_SOLID, 3, color); pOldPen = pDC->SelectObject(&pen); brush.CreateSolidBrush(color); pOldBrush = pDC->SelectObject(&brush); pDC->Ellipse(ptCenter.x-iRadius, ptCenter.y-iRadius, ptCenter.x+iRadius+1, ptCenter.y+iRadius+1); pDC->SelectObject(pOldPen); pDC->SelectObject(pOldBrush); pen.DeleteObject(); brush.DeleteObject();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -