91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 43KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-05-09
  • 語言: C/C++
  • 標(biāo)簽: Bresenham??

資源簡(jiǎn)介

基于VC6.0的利用bresenham算法畫直線的程序,里面有詳細(xì)的Bresenham算法過程,有助于計(jì)算機(jī)圖形學(xué)的學(xué)習(xí)

資源截圖

代碼片段和文件信息

//?DrawBresenham.cpp?:?Defines?the?class?behaviors?for?the?application.
//

#include?“stdafx.h“
#include?“DrawBresenham.h“

#include?“MainFrm.h“
#include?“DrawBresenhamDoc.h“
#include?“DrawBresenhamView.h“

#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
//?CDrawBresenhamApp

BEGIN_MESSAGE_MAP(CDrawBresenhamApp?CWinApp)
//{{AFX_MSG_MAP(CDrawBresenhamApp)
ON_COMMAND(ID_APP_ABOUT?OnAppAbout)
//?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
//?Standard?file?based?document?commands
ON_COMMAND(ID_FILE_NEW?CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN?CWinApp::OnFileOpen)
//?Standard?print?setup?command
ON_COMMAND(ID_FILE_PRINT_SETUP?CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
//?CDrawBresenhamApp?construction

CDrawBresenhamApp::CDrawBresenhamApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}

/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CDrawBresenhamApp?object

CDrawBresenhamApp?theApp;

/////////////////////////////////////////////////////////////////////////////
//?CDrawBresenhamApp?initialization

BOOL?CDrawBresenhamApp::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

//?Change?the?registry?key?under?which?our?settings?are?stored.
//?TODO:?You?should?modify?this?string?to?be?something?appropriate
//?such?as?the?name?of?your?company?or?organization.
SetRegistryKey(_T(“Local?AppWizard-Generated?Applications“));

LoadStdProfileSettings();??//?Load?standard?INI?file?options?(including?MRU)

//?Register?the?application‘s?document?templates.??Document?templates
//??serve?as?the?connection?between?documents?frame?windows?and?views.

CSingleDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CDrawBresenhamDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CDrawBresenhamView));
AddDocTemplate(pDocTemplate);

//?Parse?command?line?for?standard?shell?commands?DDE?file?open
CCommandLineInfo?cmdInfo;
ParseCommandLine(cmdInfo);

//?Dispatch?commands?specified?on?the?command?line
if?(!ProcessShellCommand(cmdInfo))
return?FALSE;

//?The?one?and?only?window?has?been?initial

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-01-10?14:59??DrawBresenham\
?????文件???????44836??2012-09-19?16:01??DrawBresenham\DrawBresenham.aps
?????文件????????3073??2012-09-23?17:04??DrawBresenham\DrawBresenham.clw
?????文件????????4335??2012-09-11?15:45??DrawBresenham\DrawBresenham.cpp
?????文件????????4807??2012-09-11?17:48??DrawBresenham\DrawBresenham.dsp
?????文件?????????549??2012-09-11?15:45??DrawBresenham\DrawBresenham.dsw
?????文件????????1433??2012-09-11?15:45??DrawBresenham\DrawBresenham.h
?????文件???????66560??2012-09-23?17:04??DrawBresenham\DrawBresenham.ncb
?????文件???????49664??2012-09-23?17:04??DrawBresenham\DrawBresenham.opt
?????文件?????????260??2012-09-20?19:59??DrawBresenham\DrawBresenham.plg
?????文件???????12702??2012-09-19?16:01??DrawBresenham\DrawBresenham.rc
?????文件????????1882??2012-09-11?15:45??DrawBresenham\DrawBresenhamDoc.cpp
?????文件????????1552??2012-09-11?15:45??DrawBresenham\DrawBresenhamDoc.h
?????文件????????5787??2012-09-20?19:58??DrawBresenham\DrawBresenhamView.cpp
?????文件????????1979??2012-09-17?21:45??DrawBresenham\DrawBresenhamView.h
?????文件????????2822??2012-09-17?21:40??DrawBresenham\DrawSetLine.cpp
?????文件????????1373??2012-09-17?21:29??DrawBresenham\DrawSetLine.h
?????文件????????2499??2012-09-17?21:47??DrawBresenham\MainFrm.cpp
?????文件????????1469??2012-09-11?15:48??DrawBresenham\MainFrm.h
?????文件????????4479??2012-09-11?15:45??DrawBresenham\ReadMe.txt
?????文件?????????215??2012-09-11?15:45??DrawBresenham\StdAfx.cpp
?????文件????????1054??2012-09-11?15:45??DrawBresenham\StdAfx.h
?????目錄???????????0??2012-09-11?15:45??DrawBresenham\res\
?????文件????????1078??2012-09-11?15:45??DrawBresenham\res\DrawBresenham.ico
?????文件?????????405??2012-09-11?15:45??DrawBresenham\res\DrawBresenham.rc2
?????文件????????1078??2012-09-11?15:45??DrawBresenham\res\DrawBresenhamDoc.ico
?????文件????????1078??2012-09-11?15:45??DrawBresenham\res\Toolbar.bmp
?????文件?????????969??2012-09-19?16:01??DrawBresenham\resource.h

評(píng)論

共有 條評(píng)論