Java2EE的计算机图形学实验全部源代码(中南民族大学)

上传者: keyu1711 | 上传时间: 2021-05-19 17:15:01 | 文件大小: 114KB | 文件类型: RAR
用JDK6就可以运行了 1. 实验内容 用基本增量算法和Bresenham算法画直线 2.实验目的 1)理解在显示器上画图与在纸上画图的本质区别; 2)掌握直线的光栅扫描转换过程; 3)掌握不同算法绘制直线的思路和优缺点。 3. 实验要求 1)将像素网格表现出来,建立网格坐标系; 2)用橡皮筋的形式输入参数; 3)鼠标移动时,显示鼠标当前位置; 4)显示判别式的计算过程和下一点的选择策略; 5)记录生成点的坐标,建议用表的形式; 6)图形生成过程可以重复进行。 1. 实验内容 用正负法和Bresenham算法画圆弧 2.实验目的 1)掌握圆及圆弧的光栅扫描转换过程; 2)掌握不同算法绘制圆弧的技巧和优缺点。 3. 实验要求 1)将像素网格表现出来,建立网格坐标系; 2)用橡皮筋的形式输入参数; 3)鼠标移动时,显示鼠标当前位置; 4)显示判别式的计算过程和下一点的选择策略; 5)记录生成点的坐标,建议用表的形式; 6)图形生成过程可以重复进行。 1. 实验内容 用Cohen-SutherLand算法和liang _barsky算法进行线段裁剪 2.实验目的 1)理解裁剪的相关概念 2)掌握直线段的一般裁剪过程; 3)理解并掌握Cohen-SutherLand 算法的编码思想; 4)理解并掌握Liang_Barsky算法的参数化裁剪思想; 3. 实验要求 1)将像素网格表现出来,建立网格坐标系; 2)用橡皮筋的形式输入剪裁线段和裁剪窗口; 3)鼠标移动时,显示鼠标当前位置; 4)对于线段裁剪,线段被窗口的四条边裁剪的过程要显示出来; 6)裁剪过程可以重复进行。 1. 实验内容 用Sutherland-Hodgman算法进行多边形裁剪 2.实验目的 1)理解多边形裁剪与直线段裁剪的区别; 2)掌握多边形的裁剪过程; 3)理解并掌握Sutherland-Hodgman算法的裁剪思想。 3. 实验要求 1)将像素网格表现出来,建立网格坐标系; 2)用橡皮筋的形式输入剪裁多边形和裁剪窗口; 3)鼠标移动时,显示鼠标当前位置; 4)多边形被窗口的四条边裁剪的过程以及多边形顶点增删的过程要显示出来; 5)裁剪过程可以重复进行。

文件下载

资源详情

[{"title":"( 61 个子文件 114KB ) Java2EE的计算机图形学实验全部源代码(中南民族大学)","children":[{"title":"test","children":[{"title":".project <span style='color:#111;'> 380B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"cn","children":[{"title":"scuec","children":[{"title":"App$10.class <span style='color:#111;'> 515B </span>","children":null,"spread":false},{"title":"App$4.class <span style='color:#111;'> 808B </span>","children":null,"spread":false},{"title":"App$9.class <span style='color:#111;'> 701B </span>","children":null,"spread":false},{"title":"App$8.class <span style='color:#111;'> 701B </span>","children":null,"spread":false},{"title":"App$RadioListener.class <span style='color:#111;'> 686B </span>","children":null,"spread":false},{"title":"App.class <span style='color:#111;'> 16.38KB </span>","children":null,"spread":false},{"title":"App$7.class <span style='color:#111;'> 700B </span>","children":null,"spread":false},{"title":"listener","children":[{"title":"ArriveHandler.class <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"ArriveListener.class <span style='color:#111;'> 150B </span>","children":null,"spread":false}],"spread":true},{"title":"Util.class <span style='color:#111;'> 730B </span>","children":null,"spread":false},{"title":"App$1.class <span style='color:#111;'> 702B </span>","children":null,"spread":false},{"title":"Constant.class <span style='color:#111;'> 578B </span>","children":null,"spread":false},{"title":"App$2.class <span style='color:#111;'> 702B </span>","children":null,"spread":false},{"title":"model","children":[{"title":"paint","children":[{"title":"PaintG.class <span style='color:#111;'> 5.96KB </span>","children":null,"spread":false},{"title":"PaintLine.class <span style='color:#111;'> 4.06KB </span>","children":null,"spread":false},{"title":"PaintG$1.class <span style='color:#111;'> 950B </span>","children":null,"spread":false},{"title":"CutLine.class <span style='color:#111;'> 5.09KB </span>","children":null,"spread":false},{"title":"PaintArc.class <span style='color:#111;'> 3.76KB </span>","children":null,"spread":false},{"title":"CutPoly.class <span style='color:#111;'> 4.13KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"App.form <span style='color:#111;'> 24.07KB </span>","children":null,"spread":false},{"title":"App$3.class <span style='color:#111;'> 674B </span>","children":null,"spread":false},{"title":"ui","children":[{"title":"DrawPanel.form <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"SetDialog.form <span style='color:#111;'> 6.64KB </span>","children":null,"spread":false},{"title":"SetDialog.class <span style='color:#111;'> 4.83KB </span>","children":null,"spread":false},{"title":"SetDialog$1.class <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false},{"title":"SetDialog$2.class <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"DrawPanel.class <span style='color:#111;'> 4.18KB </span>","children":null,"spread":false}],"spread":false},{"title":"handler","children":[{"title":"ComboBoxHandler.class <span style='color:#111;'> 3.27KB </span>","children":null,"spread":false}],"spread":false},{"title":"App$6.class <span style='color:#111;'> 700B </span>","children":null,"spread":false},{"title":"alg","children":[{"title":"Alg.class <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"LineScanAlog.class <span style='color:#111;'> 3.63KB </span>","children":null,"spread":false},{"title":"ArcScanAlog.class <span style='color:#111;'> 3.17KB </span>","children":null,"spread":false},{"title":"LineCutAlog.class <span style='color:#111;'> 4.13KB </span>","children":null,"spread":false},{"title":"PolyCutAlog.class <span style='color:#111;'> 3.12KB </span>","children":null,"spread":false}],"spread":false},{"title":"App$5.class <span style='color:#111;'> 956B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 629B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"cn","children":[{"title":"scuec","children":[{"title":"listener","children":[{"title":"ArriveListener.java <span style='color:#111;'> 94B </span>","children":null,"spread":false},{"title":"ArriveHandler.java <span style='color:#111;'> 537B </span>","children":null,"spread":false}],"spread":true},{"title":"Constant.java <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":"model","children":[{"title":"paint","children":[{"title":"CutPoly.java <span style='color:#111;'> 3.10KB </span>","children":null,"spread":false},{"title":"PaintLine.java <span style='color:#111;'> 2.84KB </span>","children":null,"spread":false},{"title":"CutLine.java <span style='color:#111;'> 4.08KB </span>","children":null,"spread":false},{"title":"PaintG.java <span style='color:#111;'> 3.94KB </span>","children":null,"spread":false},{"title":"PaintArc.java <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"App.form <span style='color:#111;'> 24.07KB </span>","children":null,"spread":false},{"title":"App.java <span style='color:#111;'> 26.07KB </span>","children":null,"spread":false},{"title":"Util.java <span style='color:#111;'> 479B </span>","children":null,"spread":false},{"title":"ui","children":[{"title":"DrawPanel.form <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"SetDialog.form <span style='color:#111;'> 6.64KB </span>","children":null,"spread":false},{"title":"DrawPanel.java <span style='color:#111;'> 3.31KB </span>","children":null,"spread":false},{"title":"SetDialog.java <span style='color:#111;'> 8.91KB </span>","children":null,"spread":false}],"spread":true},{"title":"handler","children":[{"title":"ComboBoxHandler.java <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false}],"spread":false},{"title":"alg","children":[{"title":"LineScanAlog.java <span style='color:#111;'> 2.61KB </span>","children":null,"spread":false},{"title":"Alg.java <span style='color:#111;'> 482B </span>","children":null,"spread":false},{"title":"LineCutAlog.java <span style='color:#111;'> 3.59KB </span>","children":null,"spread":false},{"title":"ArcScanAlog.java <span style='color:#111;'> 2.99KB </span>","children":null,"spread":false},{"title":"PolyCutAlog.java <span style='color:#111;'> 2.95KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".classpath <span style='color:#111;'> 427B </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"AbsoluteLayout.jar <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":"swing-layout-1.0.3.jar <span style='color:#111;'> 115.33KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明