資源簡介
利用VTK讀取dicom文件并通過滑塊進行窗寬床調節

代碼片段和文件信息
//?myVTK.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“myVTK.h“
#include?“myVTKDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMyVTKApp
BEGIN_MESSAGE_MAP(CMyVTKApp?CWinApp)
//{{AFX_MSG_MAP(CMyVTKApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CMyVTKApp?construction
CMyVTKApp::CMyVTKApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMyVTKApp?object
CMyVTKApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMyVTKApp?initialization
BOOL?CMyVTKApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CMyVTKDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????36172??2010-04-26?19:55??myVTK\myVTK.aps
?????文件???????1542??2010-05-02?22:21??myVTK\myVTK.clw
?????文件???????2049??2010-04-22?20:28??myVTK\myVTK.cpp
?????文件???????4875??2010-04-26?10:15??myVTK\myVTK.dsp
?????文件????????535??2010-04-22?20:28??myVTK\myVTK.dsw
?????文件???????1313??2010-04-22?20:28??myVTK\myVTK.h
?????文件??????74752??2010-05-02?22:23??myVTK\myVTK.ncb
?????文件?????593920??2010-05-02?22:23??myVTK\myVTK.opt
?????文件????????422??2010-05-02?22:22??myVTK\myVTK.plg
?????文件????????362??2010-05-02?22:23??myVTK\myVTK.positions
?????文件???????6136??2010-04-26?19:55??myVTK\myVTK.rc
?????文件??????11273??2010-05-02?22:21??myVTK\myVTKDlg.cpp
?????文件???????2869??2010-05-02?22:19??myVTK\myVTKDlg.h
?????文件???????3561??2010-04-22?20:28??myVTK\ReadMe.txt
?????文件???????1078??2010-04-22?20:28??myVTK\res\myVTK.ico
?????文件????????397??2010-04-22?20:28??myVTK\res\myVTK.rc2
?????目錄??????????0??2010-04-22?20:28??myVTK\res
?????文件???????1097??2010-04-26?19:31??myVTK\resource.h
?????文件????????207??2010-04-22?20:28??myVTK\StdAfx.cpp
?????文件???????1054??2010-04-22?20:28??myVTK\StdAfx.h
?????目錄??????????0??2010-05-03?15:54??myVTK
-----------?---------??----------?-----??----
???????????????743614????????????????????21
- 上一篇:SD卡座的各種封裝
- 下一篇:altium designer自己做的常用元件庫
評論
共有 條評論