计算机图形学作业,中点算法画椭圆


用中点算法画椭圆,计算机图形学作业,用vc++6.0完成
资源截图
代码片段和文件信息
// ellipse_test.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “ellipse_test.h“

#include “MainFrm.h“
#include “ellipse_testDoc.h“
#include “ellipse_testView.h“

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

/////////////////////////////////////////////////////////////////////////////
// CEllipse_testApp

BEGIN_MESSAGE_MAP(CEllipse_testApp CWinApp)
//{{AFX_MSG_MAP(CEllipse_testApp)
ON_COMMAND(ID_APP_ABOUT OnAppAbout)
// 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 file based document commands
ON_COMMAND(ID_FILE_NEW CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN CWinApp::OnFileOpen)
// Standard print setup command
ON_COMMAND(ID_FILE_PRINT_SETUP CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CEllipse_testApp construction

CEllipse_testApp::CEllipse_testApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CEllipse_testApp object

CEllipse_testApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CEllipse_testApp initialization

BOOL CEllipse_testApp::InitInstance()
{
AfxEnableControlContainer();

// Standard initialization
// If you are not using these features and wish to reduce the size
//  of your final executable you should remove from the following
//  the specific initialization routines you do not need.

#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif

// Change the registry key under which our settings are stored.
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization.
SetRegistryKey(_T(“Local AppWizard-Generated Applications“));

LoadStdProfileSettings();  // Load standard INI file options (including MRU)

// Register the application‘s document templates.  Document templates
//  serve as the connection between documents frame windows and views.

CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CEllipse_testDoc)
RUNTIME_CLASS(CMainframe)       // main SDI frame window
RUNTIME_CLASS(CEllipse_testView));
AddDocTemplate(pDocTemplate);

// Parse command line for standard shell commands DDE file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);

// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;

// The one and only window has been initialized so show an

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

     文件     118886  2012-12-22 21:52  ellipse_testDebugellipse_test.exe

     文件     313516  2012-12-22 21:52  ellipse_testDebugellipse_test.ilk

     文件      23520  2012-12-22 21:42  ellipse_testDebugellipse_test.obj

     文件    5499240  2012-12-22 21:42  ellipse_testDebugellipse_test.pch

     文件     418816  2012-12-22 21:52  ellipse_testDebugellipse_test.pdb

     文件       7396  2012-12-22 21:42  ellipse_testDebugellipse_test.res

     文件      15269  2012-12-22 21:42  ellipse_testDebugellipse_testDoc.obj

     文件      22727  2012-12-22 21:52  ellipse_testDebugellipse_testView.obj

     文件      20173  2012-12-22 21:42  ellipse_testDebugMainFrm.obj

     文件     105860  2012-12-22 21:42  ellipse_testDebugStdAfx.obj

     文件     205824  2012-12-22 21:52  ellipse_testDebugvc60.idb

     文件     364544  2012-12-22 21:52  ellipse_testDebugvc60.pdb

     文件       2045  2012-12-22 21:16  ellipse_testellipse_test.clw

     文件       4317  2012-12-22 21:16  ellipse_testellipse_test.cpp

     文件       4681  2012-12-22 21:16  ellipse_testellipse_test.dsp

     文件        532  2012-12-22 21:16  ellipse_testellipse_test.dsw

     文件       1422  2012-12-22 21:16  ellipse_testellipse_test.h

     文件      58368  2012-12-23 19:55  ellipse_testellipse_test.ncb

     文件      48640  2012-12-23 19:55  ellipse_testellipse_test.opt

     文件       1582  2012-12-22 21:52  ellipse_testellipse_test.plg

     文件      10636  2012-12-22 21:16  ellipse_testellipse_test.rc

     文件       1862  2012-12-22 21:16  ellipse_testellipse_testDoc.cpp

     文件       1541  2012-12-22 21:16  ellipse_testellipse_testDoc.h

     文件       4472  2012-12-23 19:54  ellipse_testellipse_testView.cpp

     文件       2062  2012-12-22 21:18  ellipse_testellipse_testView.h

     文件       2513  2012-12-22 21:16  ellipse_testMainFrm.cpp

     文件       1581  2012-12-22 21:16  ellipse_testMainFrm.h

     文件       4455  2012-12-22 21:16  ellipse_testReadMe.txt

     文件       1078  2012-12-22 21:16  ellipse_test
esellipse_test.ico

     文件        404  2012-12-22 21:16  ellipse_test
esellipse_test.rc2

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

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)