南昌大学计算机图形学实验报告(7)

2021-04-05 22:28

}

{ } void { }

///////////////////////////////////////////////////////////////////////////// // CLineCutView diagnostics

#ifdef _DEBUG

void CLineCutView::AssertValid() const { }

void CLineCutView::Dump(CDumpContext& dc) const { }

CLineCutDoc* CLineCutView::GetDocument() // non-debug version is inline { }

#endif //_DEBUG

///////////////////////////////////////////////////////////////////////////// // CLineCutView message handlers

ASSERT(m_pDocument->IsKindOf(RUNTIME_return (CLineCutDoc*)m_pDocument; CLASS(CLineCutDoc)));

CView::Dump(dc); CView::AssertValid();

// TODO: add cleanup after printing

CLineCutView::OnEndPrinting(CDC* // TODO: add extra initialization

x=x1+(x2-x1)*(YB-y1)/(y2-y1);

x=x1+(x2-x1)*(YT-y1)/(y2-y1); }

//DISplayLine(x1,y1,x2,y2); DrawLine(x1,y1,x2,y2,RGB(0,0,0), DrawLine(x1,y1,x2,y2,RGB(0,0,255), return;

}

if(code==code1) { } else { }

x2=x; y2=y;

encode(x,y,code2); x1=x; y1=y;

encode(x,y,code1); }

else if((TOP&code)!=0) {

y=YT;

before printing

/*pDC*/, CPrintInfo* /*pInfo*/)

pDC); pDC);

///////////////////////////////////////////////////////////////////////////// // CLineCutView printing BOOL

CLineCutView::OnPreparePrinting(CPrintInfo* pInfo) { }

void CLineCutView::OnBeginPrinting(CDC*

// default preparation

return DoPreparePrinting(pInfo);

运行结果如下:


南昌大学计算机图形学实验报告(7).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:2015年10月全国自考电子商务英语预测试题和答案

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: