欢迎来到天天文库
浏览记录
ID:35648437
大小:261.50 KB
页数:28页
时间:2019-04-06
《计算机图形学基础课程论文--绘图小软件》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、武汉理工大学《计算机图形学基础》课程论文武汉理工大学课程论文课程名称计算机图形学基础开课学院计算机科学与技术学院指导老师姓名岑丽学生姓名朱驰风学生学号学生专业班级软件0801班2010—2011学年第2学期-27-武汉理工大学《计算机图形学基础》课程论文目录一.课设论文······························································21.课设要求·····························································22.程序的简单操作及功能说明········
2、···································23.系统各模块说明······················································74.源程序及相应说明····················································75.遇到的问题及解决办法··············································216.参考文献···························································
3、22二.课程论文·····························································23三.评分表-27-武汉理工大学《计算机图形学基础》课程论文································································26四.封底···································································27课设论文一课设要求图形学基础图形处理系统实现:本系统需要实现以下内容:1.给出系统框架。2.调用画
4、点的函数,分别用DDA、中点Bresenham算法和改进Bresenham算法绘制直线和中点算法绘制直线、用不同的算法绘制圆和椭圆,并各自比较算法精度与效率的差别。3.实现二维图形的变换。(包括平移,放缩,旋转,错切以及复合变换)4.运用所学的多边形扫描算法实现多边形的扫描转换。5.运用所学的区域填充算法实现区域填充。6.运用所学算法实现线段裁剪以及多边形裁剪(多边形裁剪为可选)。7.自己实现其它附加以及需要完善的功能模块。-27-武汉理工大学《计算机图形学基础》课程论文二程序的简单操作及功能说明1.操作界面2.初始化、设置坐标轴最大正坐标以及清屏功能3.颜色设置通过拖
5、动滚动条可以自行调色,并显示当前颜色-27-武汉理工大学《计算机图形学基础》课程论文4.画图功能程序可以实现用DDA、中点Bresenham算法和改进Bresenham算法绘制直线,绘制圆、椭圆以及多边形。其中绘制直线可以通过输入端点坐标或直接用鼠标拖动来实现,绘制多边形时需要先确定多边形顶点,然后再进行连接。-27-武汉理工大学《计算机图形学基础》课程论文-27-武汉理工大学《计算机图形学基础》课程论文5.区域填充程序可以实现圆,椭圆和多边形的填充功能,其中圆和椭圆需要输入圆心,半径,长短半轴的值,多边形仍需先画点后填充。最后多边形的填充有一点小BUG,图形右方和下方
6、会多出一到两条线条,至今没调试好。-27-武汉理工大学《计算机图形学基础》课程论文三.系统各模块说明系统分为设置坐标轴属性模块,显示坐标轴属性模块,画图模块,填充模块,颜色模块。四.源程序及相应说明1.主窗口DimlineX(1000)AsDouble,lineY(1000)AsDouble,nAsInteger,mAsInteger,mousedrowAsIntegerPublicCRAsInteger,CGAsInteger,CBAsIntegerPrivateSubinputline_Click()form2.ShowEndSubPrivateSubcircle_
7、Click()Form3.ShowEndSubPrivateSubellipse_Click()Form4.ShowEndSub-27-武汉理工大学《计算机图形学基础》课程论文PrivateSubcirclefull_Click()Form5.ShowEndSubPrivateSubellipsefull_Click()Form6.ShowEndSubPrivateSubabout_Click()Form7.ShowEndSubPrivateSubexit_Click()EndEndSubPrivateSubmouseline_Click
此文档下载收益归作者所有