CSeedfillDoc*
CSeedfillView::GetDocument() non-debug version is inline { }
#endif //_DEBUG
///////////////////////////////////////////////////////////////////////////// // CSeedfillView message handlers
ASSERT(m_pDocument->IsKindOf(RUNTIMreturn (CSeedfillDoc*)m_pDocument; E_CLASS(CSeedfillDoc)));
//
运行结果如下:
5.实验思考和问题解决
参考书上的伪代码并且与同学室友相互讨论实践才得到最后的结果,结果也差强人意,图显示的效果不好,很小。
南昌大学实验报告
//
#include "stdafx.h" #include "LineCut.h"
#include "LineCutDoc.h" #include "LineCutView.h"
#ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE
static char THIS_FILE[] = __FILE__; #endif
///////////////////////////////////////////////////////////////////////////// // CLineCutView
IMPLEMENT_DYNCREATE(CLineCutView, CView)
BEGIN_MESSAGE_MAP(CLineCutView, CView) }
CLineCutView::~CLineCutView() { } BOOL
CLineCutView::PreCreateWindow(CREATESTRUCT& cs) { }
///////////////////////////////////////////////////////////////////////////// // CLineCutView drawing
void CLineCutView::OnDraw(CDC* pDC)
学生姓名:涂汉江学号:6100410181专业班级:数字媒体101班
实验类型:□验证□综合■设计□创新 实验日期:2012-12-16
实验3线条的剪裁
1.实验目的
掌握对线条的剪裁算法
2.实验内容
1.绘制一条直线 2.绘制一个矩形 3.计算矩形内的线段 4.绘制矩形内的线段
3.实验环境
1.个人计算机
2.Windows7操作系统 3.VS2010
4.实验步骤
// LineCutView.cpp : implementation of the CLineCutView class
// 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 printing commands
ON_COMMAND(ID_FILE_PRINT, ON_COMMAND(ID_FILE_PRINT_DIRECT, ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrint) CView::OnFilePrint) CView::OnFilePrintPreview) END_MESSAGE_MAP()
///////////////////////////////////////////////////////////////////////////// // CLineCutView construction/destruction
CLineCutView::CLineCutView() {
// TODO: add construction code here
//{{AFX_MSG_MAP(CLineCutView)
// TODO: Modify the Window class or // the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
styles here by modifying
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库南昌大学计算机图形学实验报告(5)在线全文阅读。
相关推荐: