Coons曲面与hermite、bezier、B样条曲线标准化函数及应用程序源代码VC6.0下编写


不管是哪一个曲线的画法 其都已经集成化和标准化在源代码中 你可以直接调用它即可完成相关曲线的绘制 代码重用十分方便 使用VC6 0MFC 编写 计算机图形学系列源码 by lauo
资源截图
代码片段和文件信息
// MainFrm.cpp : implementation of the CMainframe class
//

#include “stdafx.h“
#include “VC6 mfc 画曲面.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
“);
return -1;      // fail to create
}

if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators
  sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed to create status bar
“);
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


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

     文件      32768  2008-11-27 18:47  VC6 mfc 画曲面.exe

     文件          0  2008-11-27 17:43  VC6 mfc 画曲面Debugdata.txt

     文件      20248  2008-11-27 17:24  VC6 mfc 画曲面DebugMainFrm.obj

     文件     105927  2008-11-27 17:24  VC6 mfc 画曲面DebugStdAfx.obj

     文件     122954  2008-11-27 18:45  VC6 mfc 画曲面DebugVC6 mfc 画曲面.exe

     文件     346148  2008-11-27 18:45  VC6 mfc 画曲面DebugVC6 mfc 画曲面.ilk

     文件      23300  2008-11-27 17:30  VC6 mfc 画曲面DebugVC6 mfc 画曲面.obj

     文件    5494560  2008-11-27 17:24  VC6 mfc 画曲面DebugVC6 mfc 画曲面.pch

     文件     476160  2008-11-27 18:45  VC6 mfc 画曲面DebugVC6 mfc 画曲面.pdb

     文件       7360  2008-11-27 17:24  VC6 mfc 画曲面DebugVC6 mfc 画曲面.res

     文件      15091  2008-11-27 17:24  VC6 mfc 画曲面DebugVC6 mfc 画曲面Doc.obj

     文件      30877  2008-11-27 18:45  VC6 mfc 画曲面DebugVC6 mfc 画曲面View.obj

     文件     263168  2008-11-27 18:45  VC6 mfc 画曲面Debugvc60.idb

     文件     454656  2008-11-27 18:45  VC6 mfc 画曲面Debugvc60.pdb

     文件       2515  2008-11-27 17:21  VC6 mfc 画曲面MainFrm.cpp

     文件       1581  2008-11-27 17:21  VC6 mfc 画曲面MainFrm.h

     文件       4447  2008-11-27 17:21  VC6 mfc 画曲面ReadMe.txt

     文件      12786  2008-11-27 18:47  VC6 mfc 画曲面ReleaseMainFrm.obj

     文件        768  2008-11-27 18:47  VC6 mfc 画曲面ReleaseStdAfx.obj

     文件      32768  2008-11-27 18:47  VC6 mfc 画曲面ReleaseVC6 mfc 画曲面.exe

     文件      16150  2008-11-27 18:47  VC6 mfc 画曲面ReleaseVC6 mfc 画曲面.obj

     文件    5691588  2008-11-27 18:47  VC6 mfc 画曲面ReleaseVC6 mfc 画曲面.pch

     文件       7360  2008-11-27 18:47  VC6 mfc 画曲面ReleaseVC6 mfc 画曲面.res

     文件       9251  2008-11-27 18:47  VC6 mfc 画曲面ReleaseVC6 mfc 画曲面Doc.obj

     文件      20521  2008-11-27 18:47  VC6 mfc 画曲面ReleaseVC6 mfc 画曲面View.obj

     文件      50176  2008-11-27 18:47  VC6 mfc 画曲面Releasevc60.idb

     文件       1078  2008-11-27 17:21  VC6 mfc 画曲面
esToolbar.bmp

     文件       1078  2008-11-27 17:21  VC6 mfc 画曲面
esVC6 mfc 画曲面.ico

     文件        406  2008-11-27 17:21  VC6 mfc 画曲面
esVC6 mfc 画曲面.rc2

     文件       1078  2008-11-27 17:21  VC6 mfc 画曲面
esVC6 mfc 画曲面Doc.ico

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

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

发表评论

评论列表(条)