• 大小: 1.93MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-29
  • 语言: C/C++
  • 标签: 算法  

资源简介

计算机图形学 算法 直线,圆,椭圆,裁剪,填充的所有算法

资源截图

代码片段和文件信息

// MainFrm.cpp : implementation of the CMainframe class
//

#include “stdafx.h“
#include “计算机图形学作业.h“

#include “MainFrm.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CMainframe

IMPLEMENT_DYNCREATE(CMainframe CframeWnd)

BEGIN_MESSAGE_MAP(CMainframe CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
// NOTE - the ClassWizard will add and remove mapping macros here.
//    DO NOT EDIT what you see in these blocks of generated code !
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

static UINT indicators[] =
{
ID_SEPARATOR           // status line indicator
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};

/////////////////////////////////////////////////////////////////////////////
// CMainframe construction/destruction

CMainframe::CMainframe()
{
// TODO: add member initialization code here

}

CMainframe::~CMainframe()
{
}

int CMainframe::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CframeWnd::OnCreate(lpCreateStruct) == -1)
return -1;

if (!m_wndToolBar.CreateEx(this TBstyle_FLAT WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“Failed to create toolbar\n“);
return -1;      // fail to create
}

if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators
  sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed to create status bar\n“);
return -1;      // fail to create
}

// TODO: Delete these three lines if you don‘t want the toolbar to
//  be dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);

return 0;
}

BOOL CMainframe::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CframeWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
//  the CREATESTRUCT cs

return TRUE;
}

/////////////////////////////////////////////////////////////////////////////
// CMainframe diagnostics

#ifdef _DEBUG
void CMainframe::AssertValid() const
{
CframeWnd::AssertValid();
}

void CMainframe::Dump(CDumpContext& dc) const
{
CframeWnd::Dump(dc);
}

#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CMainframe message handlers


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      20059  2009-12-13 12:33  计算机图形学作业\Debug\MainFrm.obj

     文件     105817  2009-12-13 12:33  计算机图形学作业\Debug\StdAfx.obj

     文件     230400  2010-01-22 10:16  计算机图形学作业\Debug\vc60.idb

     文件     372736  2010-01-22 10:16  计算机图形学作业\Debug\vc60.pdb

     文件     155754  2010-01-22 10:16  计算机图形学作业\Debug\计算机图形学作业.exe

     文件     461828  2010-01-22 10:16  计算机图形学作业\Debug\计算机图形学作业.ilk

     文件      22918  2009-12-13 13:37  计算机图形学作业\Debug\计算机图形学作业.obj

     文件    5501520  2009-12-13 12:33  计算机图形学作业\Debug\计算机图形学作业.pch

     文件     517120  2010-01-22 10:16  计算机图形学作业\Debug\计算机图形学作业.pdb

     文件       7836  2010-01-22 10:15  计算机图形学作业\Debug\计算机图形学作业.res

     文件      14724  2009-12-13 12:33  计算机图形学作业\Debug\计算机图形学作业Doc.obj

     文件     103962  2010-01-22 10:16  计算机图形学作业\Debug\计算机图形学作业View.obj

     文件       2517  2009-12-13 12:22  计算机图形学作业\MainFrm.cpp

     文件       1581  2009-12-13 12:22  计算机图形学作业\MainFrm.h

     文件       4453  2009-12-13 12:22  计算机图形学作业\ReadMe.txt

     文件       1078  2009-12-13 12:22  计算机图形学作业\res\Toolbar.bmp

     文件       1078  2009-12-13 12:22  计算机图形学作业\res\计算机图形学作业.ico

     文件        408  2009-12-13 12:22  计算机图形学作业\res\计算机图形学作业.rc2

     文件       1078  2009-12-13 12:22  计算机图形学作业\res\计算机图形学作业Doc.ico

     文件       1872  2010-01-22 10:15  计算机图形学作业\Resource.h

     文件        218  2009-12-13 12:22  计算机图形学作业\StdAfx.cpp

     文件       1054  2009-12-13 12:22  计算机图形学作业\StdAfx.h

     文件      46508  2010-01-22 10:16  计算机图形学作业\计算机图形学作业.aps

     文件       3062  2010-01-22 10:16  计算机图形学作业\计算机图形学作业.clw

     文件       4193  2009-12-13 12:22  计算机图形学作业\计算机图形学作业.cpp

     文件       4785  2009-12-13 12:22  计算机图形学作业\计算机图形学作业.dsp

     文件        557  2009-12-13 12:22  计算机图形学作业\计算机图形学作业.dsw

     文件       1348  2009-12-13 12:22  计算机图形学作业\计算机图形学作业.h

     文件     107520  2010-01-22 10:16  计算机图形学作业\计算机图形学作业.ncb

     文件      48640  2010-01-22 10:16  计算机图形学作业\计算机图形学作业.opt

............此处省略12个文件信息

评论

共有 条评论