资源简介
通过c++实现图形学多边形裁剪,简单有效。

代码片段和文件信息
// MainFrm.cpp : implementation of the CMainframe class
//
#include “stdafx.h“
#include “Polygoncut.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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
....... 2511 2004-04-14 20:06 Polygon
....... 1581 2004-04-14 20:06 Polygon
....... 28032 2004-04-26 17:35 Polygon
....... 1997 2004-04-26 17:35 Polygon
....... 4281 2004-04-14 20:06 Polygon
....... 4639 2004-04-14 20:06 Polygon
....... 545 2004-04-14 20:06 Polygon
....... 1400 2004-04-14 20:06 Polygon
文件 123904 2005-03-25 09:47 Polygon
文件 1982 2005-03-25 09:42 Polygon
....... 10887 2004-04-22 13:57 Polygon
....... 1822 2004-04-14 20:06 Polygon
....... 1519 2004-04-14 20:06 Polygon
....... 12900 2004-06-10 22:34 Polygon
....... 4407 2004-04-14 20:06 Polygon
....... 785 2004-04-21 15:44 Polygon
....... 212 2004-04-14 20:06 Polygon
....... 1054 2004-04-14 20:06 Polygon
....... 3365 2004-04-26 23:15 Polygon
....... 1078 2004-04-14 20:06 Polygon
....... 402 2004-04-14 20:06 Polygon
....... 1078 2004-04-14 20:06 Polygon
....... 630 2004-04-21 15:44 Polygon
目录 0 2004-07-10 09:45 Polygon
文件 81920 2005-03-25 09:47 Polygon
目录 0 2004-07-10 09:45 Polygon
----------- --------- ---------- ----- ----
293149 27
相关资源
- 交互式计算机图形学 第六版 OpenGL源代
- 图形学简单绘图系统
- OpenGL迷宫山东大学图形学实验三
- 计算机图形学走样反走样时钟
- c++QT5图形学-中点画圆完整工程文件
- 西北工业大学软件学院计算机图形学
- 计算机图形学实验源代码中南民族大
- 图形学各种曲线--Bezier曲线,B-样条曲
- 鼠标交互画圆及椭圆基于Bresenham、中
- 绘制任意斜率的直线段
- QSplat:基于点绘制的图形学开山之作
- 计算机图形学简单CAD系统
- 真实感图形学
- 计算机图形学多边形种子填充算法
- 计算机图形学 消隐
- 计算机图形学作业,中点算法画椭圆
- MFC中点圆的生成算法
- 改进的有效边表算法--计算机图形学
- 最好的CS游戏opengl、C++实现
- 梁友栋-直线裁剪算法图形学mfc
- 计算机图形学 清华大学教材 及 vc++
- 孔令德的计算机图形学实验及课程设
- 图形学消隐
- 计算机图形学大作业参考代码(VC版)
- 计算机图形学 图形变换 C++ MFC
- 用visual C++ 6.0编写的计算机图形的一些
- 计算机图形学简单多边形裁剪程序
- 计算机图形学 大作业 多功能图形学程
- MFC多边形画法--计算机图形学
- 计算机图形学 visual c++ 6.0 实时动画有
评论
共有 条评论