資源簡介
本程序給出了攝影測量學中常見后方交會、前方交會的MFC實現方法,除此之外還給出了特征點提取和同名點匹配過程。希望對你們學習有所啟發和幫助!

代碼片段和文件信息
//?ChildFrm.cpp?:?implementation?of?the?CChildframe?class
//
#include?“stdafx.h“
#include?“PhotogramMetry.h“
#include?“ChildFrm.h“
#include?“PhotogramMetryView.h“
#include?“PhotogramMetryDoc.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CChildframe
IMPLEMENT_DYNCREATE(CChildframe?CMDIChildWnd)
BEGIN_MESSAGE_MAP(CChildframe?CMDIChildWnd)
//{{AFX_MSG_MAP(CChildframe)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code?!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CChildframe?construction/destruction
CChildframe::CChildframe()
{
//?TODO:?add?member?initialization?code?here
}
CChildframe::~CChildframe()
{
}
BOOL?CChildframe::PreCreateWindow(CREATESTRUCT&?cs)
{
//?TODO:?Modify?the?Window?class?or?styles?here?by?modifying
//??the?CREATESTRUCT?cs
cs.style???|=???WS_VISIBLE|WS_MAXIMIZE;//子窗口最大化顯示
if(?!CMDIChildWnd::PreCreateWindow(cs)?)
return?FALSE;
return?TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//?CChildframe?diagnostics
#ifdef?_DEBUG
void?CChildframe::AssertValid()?const
{
CMDIChildWnd::AssertValid();
}
void?CChildframe::Dump(CDumpContext&?dc)?const
{
CMDIChildWnd::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CChildframe?message?handlers
#include?“LeftImage.h“
#include?“RightImage.h“
BOOL?CChildframe::OnCreateClient(LPCREATESTRUCT?lpcs?CCreateContext*?pContext)?
{
//?TODO:?Add?your?specialized?code?here?and/or?call?the?base?class
if?(!SpWnd.CreateStatic(this?1?2))
return?FALSE;
CRect?rect;
this->GetWindowRect(&rect);
if?(!SpWnd.CreateView(0?0?RUNTIME_CLASS(CLeftImage)?CSize(500?500)?pContext)?||
!SpWnd.CreateView(0?1?RUNTIME_CLASS(CRightImage)?CSize(500?500)?pContext))
{
SpWnd.DestroyWindow();
return?FALSE;
}
SpWnd.SetActivePane(00);
return?TRUE;
}
BOOL?CChildframe::OnCmdMsg(UINT?nID?int?nCode?void*?pExtra?AFX_CMDHANDLERINFO*?pHandlerInfo)?
{
//?TODO:?Add?your?specialized?code?here?and/or?call?the?base?class
if?(?CframeWnd::OnCmdMsg(nID?nCode?pExtra?pHandlerInfo)?)
return?TRUE;
CPhotogramMetryDoc*?pDoc?=?(?CPhotogramMetryDoc*?)?GetActiveDocument?();
POSITION?pos;
if?(?pDoc?!=?NULL?)
pos?=?pDoc->GetFirstViewPosition?();
while?(?pos?!=?NULL?)
{
CView*?pNextView?=?pDoc->GetNextView?(?pos?);
if?(?pNextView?!=?GetActiveView()?)
{
if?(?pNextView->OnCmdMsg(?nID?nCode?pExtra?pHandlerInfo?)?)
return?TRUE;
}
}
? return?FALSE;
// return?CMDIChildWnd::OnCmdMsg(nID?nCode?pExtra?pHandlerInfo);
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????272??2012-07-11?15:34??PhotogramMetry7.30\123.txt
?????文件???????2967??2012-07-28?14:37??PhotogramMetry7.30\ChildFrm.cpp
?????文件???????1614??2012-07-28?14:37??PhotogramMetry7.30\ChildFrm.h
?????文件???????1399??2012-07-14?23:40??PhotogramMetry7.30\CoordTrans.h
?????文件????????140??2012-07-11?15:29??PhotogramMetry7.30\data.txt
?????文件????????351??2012-07-10?20:50??PhotogramMetry7.30\data1.txt
?????文件???????5354??2012-07-29?15:50??PhotogramMetry7.30\Debug\APPMODUL.obj
?????文件??????????0??2012-07-29?15:50??PhotogramMetry7.30\Debug\APPMODUL.sbr
?????文件??????20985??2012-07-28?15:49??PhotogramMetry7.30\Debug\ChildFrm.obj
?????文件??????????0??2012-07-28?15:49??PhotogramMetry7.30\Debug\ChildFrm.sbr
?????文件??????17266??2012-07-14?17:09??PhotogramMetry7.30\Debug\DIBAPI.obj
?????文件??????????0??2012-07-14?17:09??PhotogramMetry7.30\Debug\DIBAPI.sbr
?????文件??????14131??2012-07-09?20:28??PhotogramMetry7.30\Debug\EditDlg.obj
?????文件??????????0??2012-07-09?20:28??PhotogramMetry7.30\Debug\EditDlg.sbr
?????文件??????34764??2012-07-16?20:24??PhotogramMetry7.30\Debug\Forwardintersection.obj
?????文件??????????0??2012-07-16?20:24??PhotogramMetry7.30\Debug\Forwardintersection.sbr
?????文件????2859087??2012-07-29?10:05??PhotogramMetry7.30\Debug\gdal12.dll
?????文件??????86183??2012-09-02?19:28??PhotogramMetry7.30\Debug\LeftImage.obj
?????文件??????????0??2012-09-02?19:28??PhotogramMetry7.30\Debug\LeftImage.sbr
?????文件??????20957??2012-07-28?15:31??PhotogramMetry7.30\Debug\MainFrm.obj
?????文件??????????0??2012-07-28?15:31??PhotogramMetry7.30\Debug\MainFrm.sbr
?????文件????5874688??2012-09-02?19:28??PhotogramMetry7.30\Debug\PhotogramMetry.bsc
?????文件?????237663??2012-09-02?19:28??PhotogramMetry7.30\Debug\PhotogramMetry.exe
?????文件???????6699??2012-07-31?15:03??PhotogramMetry7.30\Debug\PhotogramMetry.exp
?????文件?????919448??2012-09-02?19:28??PhotogramMetry7.30\Debug\PhotogramMetry.ilk
?????文件??????12174??2012-07-31?15:03??PhotogramMetry7.30\Debug\PhotogramMetry.lib
?????文件??????24410??2012-07-10?14:38??PhotogramMetry7.30\Debug\PhotogramMetry.obj
?????文件????7082660??2012-07-09?20:28??PhotogramMetry7.30\Debug\PhotogramMetry.pch
?????文件?????779264??2012-09-02?19:28??PhotogramMetry7.30\Debug\PhotogramMetry.pdb
?????文件??????11948??2012-07-28?22:24??PhotogramMetry7.30\Debug\PhotogramMetry.res
............此處省略71個文件信息
- 上一篇:Socket網絡編程控制臺+MFC TCP
- 下一篇:VC6.0環境下dda直線畫法
評論
共有 條評論