資源簡介
這是rar文件,用C++ 6.0寫的Weiler-Atherton的算法實現代碼,功能比較差
代碼片段和文件信息
//?BresenLine.cpp:?implementation?of?the?BresenLine?class.
//
//////////////////////////////////////////////////////////////////////
#include?“stdafx.h“
#include?“CxfCG.h“
#include?“BresenLine.h“
#ifdef?_DEBUG
#undef?THIS_FILE
static?char?THIS_FILE[]=__FILE__;
#define?new?DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
//?Construction/Destruction
//////////////////////////////////////////////////////////////////////
BresenLine::BresenLine()
{
}
BresenLine::~BresenLine()
{
}
void?BresenLine::Bresenham_Line(CDC*?pDCint?x0int?y0int?r)
{
int?xydxdye;
int?tempflag;
int?sxsy;
long?color=2;
double?an;
for(int?ang=0;ang<360;ang=ang+3)
{
x=x0;y=y0;
an=ang*pi/180;
dx=int(fabs(r*cos(an)));
dy
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1322??2008-11-05?13:40??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\BresenLine.cpp
?????文件????????607??2008-11-05?13:40??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\BresenLine.h
?????文件???????9549??2008-11-08?19:59??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\ClipPolyon.cpp
?????文件???????1294??2008-11-08?19:57??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\ClipPolyon.h
?????文件???????1191??2008-11-10?12:04??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\CLIPPOLYONDLG.cpp
?????文件???????1252??2008-11-04?20:13??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\CLIPPOLYONDLG.h
?????文件??????32776??2008-11-10?12:03??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\CxfCG.aps
?????文件???????3325??2008-11-10?12:09??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\CxfCG.clw
?????文件???????4191??2008-10-21?14:31??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\CxfCG.cpp
?????文件???????5207??2008-11-07?00:29??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\CxfCG.dsp
?????文件????????518??2008-10-21?14:31??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\CxfCG.dsw
?????文件???????1345??2008-10-21?14:31??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\CxfCG.h
?????文件?????467968??2008-12-29?13:21??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\CxfCG.ncb
?????文件??????54784??2008-12-29?13:21??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\CxfCG.opt
?????文件????????244??2008-12-29?13:21??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\CxfCG.plg
?????文件??????12940??2008-11-09?23:41??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\CxfCG.rc
?????文件???????1814??2008-11-09?23:37??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\CxfCGDoc.cpp
?????文件???????1500??2008-11-09?23:37??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\CxfCGDoc.h
?????文件???????8168??2008-12-08?19:30??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\CxfCGView.cpp
?????文件???????2246??2008-11-08?20:30??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\CxfCGView.h
?????文件???????5504??2008-12-08?19:25??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\FillPolyon.cpp
?????文件????????687??2008-11-07?02:21??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\FillPolyon.h
?????文件???????2690??2008-11-07?00:41??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\FORMCOMMANDVIEW.cpp
?????文件???????2015??2008-11-07?00:38??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\FORMCOMMANDVIEW.h
?????文件???????3282??2008-11-08?20:06??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\MainFrm.cpp
?????文件???????1589??2008-10-21?14:44??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\MainFrm.h
?????文件????????288??2008-11-07?01:37??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\Q.txt
?????文件???????3638??2002-06-07?15:45??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\res\CxfCG.ICO
?????文件????????397??2008-10-21?14:31??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\res\CxfCG.rc2
?????文件???????1078??2008-10-21?14:31??計算機圖形學-基于weiler-atherton算法的多邊形裁剪程序實現\res\CxfCGDoc.ico
............此處省略9個文件信息
評論
共有 條評論