資源簡介
計算機圖形學大作業中的圓和直線的畫法,直線的方法有DDA和bresenham法,在第一個點處按下鼠標拖動至第二個點處松開鼠標,直線畫好;圓的畫法有極坐標法和bresenham法在圓心處點擊鼠標拖動距離為半徑距離,松開鼠標畫好,基于VC6.0下使用C++語言寫的,希望大家參考
代碼片段和文件信息
//?31509030.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“31509030.h“
#include?“MainFrm.h“
#include?“31509030Doc.h“
#include?“31509030View.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMy31509030App
BEGIN_MESSAGE_MAP(CMy31509030App?CWinApp)
//{{AFX_MSG_MAP(CMy31509030App)
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::On
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????44732??2016-03-16?20:56??直線+圓+顏色面板\31509030\31509030.aps
?????文件???????2534??2016-03-16?21:51??直線+圓+顏色面板\31509030\31509030.clw
?????文件???????4273??2016-03-16?17:09??直線+圓+顏色面板\31509030\31509030.cpp
?????文件???????4597??2016-03-16?17:09??直線+圓+顏色面板\31509030\31509030.dsp
?????文件????????524??2016-03-16?17:09??直線+圓+顏色面板\31509030\31509030.dsw
?????文件???????1388??2016-03-16?17:09??直線+圓+顏色面板\31509030\31509030.h
?????文件??????74752??2016-03-16?21:52??直線+圓+顏色面板\31509030\31509030.ncb
?????文件??????48640??2016-03-16?21:52??直線+圓+顏色面板\31509030\31509030.opt
?????文件???????5078??2016-03-16?21:51??直線+圓+顏色面板\31509030\31509030.plg
?????文件??????12197??2016-03-16?20:56??直線+圓+顏色面板\31509030\31509030.rc
?????文件???????1816??2016-03-16?17:09??直線+圓+顏色面板\31509030\31509030Doc.cpp
?????文件???????1511??2016-03-16?17:09??直線+圓+顏色面板\31509030\31509030Doc.h
?????文件??????11531??2016-03-16?21:51??直線+圓+顏色面板\31509030\31509030View.cpp
?????文件???????2836??2016-03-16?21:48??直線+圓+顏色面板\31509030\31509030View.h
?????文件???????2371??2016-03-16?20:56??直線+圓+顏色面板\31509030\MainFrm.cpp
?????文件???????1440??2016-03-16?20:56??直線+圓+顏色面板\31509030\MainFrm.h
?????文件???????4373??2016-03-16?17:09??直線+圓+顏色面板\31509030\ReadMe.txt
?????文件???????1078??2016-03-16?17:09??直線+圓+顏色面板\31509030\res\31509030.ico
?????文件????????400??2016-03-16?17:09??直線+圓+顏色面板\31509030\res\31509030.rc2
?????文件???????1078??2016-03-16?17:09??直線+圓+顏色面板\31509030\res\31509030Doc.ico
?????文件???????1078??2016-03-16?17:09??直線+圓+顏色面板\31509030\res\Toolbar.bmp
?????文件????????877??2016-03-16?20:56??直線+圓+顏色面板\31509030\resource.h
?????文件????????210??2016-03-16?17:09??直線+圓+顏色面板\31509030\StdAfx.cpp
?????文件???????1054??2016-03-16?17:09??直線+圓+顏色面板\31509030\StdAfx.h
?????目錄??????????0??2017-11-02?16:39??直線+圓+顏色面板\31509030\res
?????目錄??????????0??2017-11-02?16:39??直線+圓+顏色面板\31509030
?????目錄??????????0??2017-11-02?16:39??直線+圓+顏色面板
-----------?---------??----------?-----??----
???????????????230368????????????????????27
............此處省略0個文件信息
評論
共有 條評論