}
{ } 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);
运行结果如下:
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库南昌大学计算机图形学实验报告(7)在线全文阅读。
相关推荐: