自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 资源 (6)
  • 收藏
  • 关注

原创 透明位图的显示(转载)

包含透明色的位图的绘制方法有多种,最简单的方法是调用现成的函数:TransparentBlt,也可以通过自己的代码实现类似TransparentBlt的功能,实现过程也有两种形式,一种是事先做一张掩码位图,另一种是动态生成掩码位图。本文将介绍动态生成掩码位图绘制具有透明区域位图的方法。一、TransparentBlt 函数的使用 TransparentBlt 函数在Windows98/Window

2005-04-30 00:02:00 1208

原创 在MDI主框架窗口中添加图标Ico

使用自己的图标作为应用程序的图标: 用CWinApp::LoadIcon

2005-04-29 23:22:00 1328

原创 在MDI主框架窗口中添加位图(在视中加载位图)

要在视图中显示位图,难点在于控件需要自己添加,位置要自己定。在MDI中添加位图有如下几个步骤:首先添加一个显示控件。这里的添加和其他控件的添加相类似。有两个地方可以添加代码来创建控件:CtestMDIView::OnCreate 和 CtestMDIView::OnInitialUpdate。CtestMDIView::OnCreate 的执行点比较靠先。这里我为了自己的需要选择了在CtestMD

2005-04-29 22:26:00 976

原创 Invalidate函数的总结 - 也是界面刷新的总结(转载)

InvalidateRect只是增加重绘区域,在下次WM_PAINT的时候才生效InvalidateRect函数中的参数TRUE表示系统会在你画之前用背景色将所选区域覆盖一次,默认背景色为白色,可以通过设置BRUSH来改变背景色。Invalidate()之后:...OnPaint()->OnPrepareDC()->OnDraw()所以只是刷新在OnPaint()和OnDraw()函数中的绘图语句

2005-04-29 13:22:00 2939

原创 OnDraw()和OnPaint()兄弟(转载)

至于不见了的问题简单,因为当你的窗口改变后,会产生无效区域,这个无效的区域需要重画。一般Windows回发送两个消息WM_PAINT(通知客户区有变化)和WM_NCPAINT(通知非客户区有变化)。非客户区的重画系统自己搞定了,而客户区的重画需要我们自己来完成。这就需要OnDraw()或OnPaint()来重画窗口。OnDraw()和OnPaint()有什么区别呢?首先:我们先要明确CView类派

2005-04-29 13:11:00 1904

原创 在MDI主框架窗口中添加位图(转载自CSDN VC编程知识总结)

在MDI主框架窗口中添加位图(注意,不是在单个视中):首先要清楚对于一个MDI应用程序的主框架窗口来说包含一个特殊的子窗口称为MDICLIENT窗口,应用程序的主框架类中有一个成员变量m_hWndMDIClient 指的就是MDICLIENT窗口。MDICLIENT窗口负责管理主框架窗口的客户区,对MDI客户窗口编程有一定的难度。原因是MDIFrameWnd的客户区完全被MDICLIENT窗口覆盖

2005-04-29 12:50:00 997

原创 My study of VC++ ( Doc&View&FrameWnd refered )

5 important member functions:CView::GetDocument 得到与视图唯一对应的文档。GetDocument 不是虚函数,会用派生类来替代CDocument::UpdateAllViews 通知所有视图,文档数据发生变化,以便更新显示的数据。GetDocument()->UpdateAllViews(this);其中的非空参数阻止应用程序框架通知当前视图。还有可

2005-04-29 00:30:00 1145

原创 My study of VC++ ( Paint refered )

InvalidateInvalidateRect

2005-04-28 23:43:00 907

原创 My study of VC++ ( FrameWnd and toobar refered )

主框架窗口的定位在SDI程序中,CWnd::GetParentFrame可以找到主框架窗口。在MDI程序中,CWnd::GetParentFrame找到的是父框架的子框架,而不是MDI框架窗口希望在SDI和MDI中都能工作,必须在应用程序对象中找到主框架窗口。而AfxGetApp全局函数返回一个指向应用程序对象的指针,可以通过它得到CWinapp数据成员m_pMainWnd。CMainFrame

2005-04-28 23:27:00 860

原创 My study of VC++ ( Command and Menu refered )

1。命令处理ON_COMMAND消息映射。派生类将继承父类的所有消息映射函数ON_UPDATE_COMMAND_UI。更新命令用户界面处理程序。在第一次显示弹出式菜单时被调用,修改菜单项的外观。例子:在头文件中加入: afx_msg void OnUpdateZoom(CCmdUI *pCmdUI);在视中加入: ON_UPDATE_COMMAND_UI(IDM_ZOOM, OnUpdateZoo

2005-04-28 22:14:00 983

原创 Directshow学习经历

学习《Directshow开发指南》时想把第五章的例子试验一下,结果犯了个低级错误:初始化之前没有调用CoInitialize对Com初始化,导致Com的调用始终失败

2005-04-28 21:16:00 851

原创 Python Resource

Book : Python Programming on Win32 -- http://starship.python.net/crew/mhammond/ppw32/index.htmlPage :Mark Hammonds Free Stuff -- http://starship.python.net/crew/mhammond/宝哇网 -- http://www.baow.com/do

2005-04-17 22:06:00 944

原创 Linux经典图书

0001   GNU/Linux高级网络应用服务指南   linuxaid网站   机械工业出版社   优点:又全又精,全都是实战之作   缺点:针对版本较低:redhat 6.2   0002   Linux Apache Web Server管理指南   Charles Aulds   电子工业出版社   优点:目前我还没有发现哪个关于apache的问题这本书没有讲过   缺点:针对1.3.x

2005-04-17 21:38:00 773

Network Flows Theory, Algorithms, and Applications-1

Bringing together the classic and the contemporary aspects of the field, this comprehensive introduction to network flows provides an integrative view of theory, algorithms, and applications. It offers in-depth and self-contained treatments of shortest path, maximum flow, and minimum cost flow problems, including a description of new and novel polynomial-time algorithms for these core models. For professionals working with network flows, optimization, and network programming.

2011-05-29

Network Flows Theory, Algorithms, and Applications

Bringing together the classic and the contemporary aspects of the field, this comprehensive introduction to network flows provides an integrative view of theory, algorithms, and applications. It offers in-depth and self-contained treatments of shortest path, maximum flow, and minimum cost flow problems, including a description of new and novel polynomial-time algorithms for these core models. For professionals working with network flows, optimization, and network programming.

2011-05-29

level set methods and dynamic implicit surfaces

Level Set Methods and Dynamic Implicit Surfaces Contents Preface vii Color Insert (facing page 146) I Implicit Surfaces 1 1 Implicit Functions 3 1.1 Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.2 Curves . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 1.3 Surfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 1.4 Geometry Toolbox . . . . . . . . . . . . . . . . . . . . . 8 1.5 Calculus Toolbox . . . . . . . . . . . . . . . . . . . . . . 13 2 Signed Distance Functions 17 2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 17 2.2 Distance Functions . . . . . . . . . . . . . . . . . . . . . 17 2.3 Signed Distance Functions . . . . . . . . . . . . . . . . . 18 2.4 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 2.5 Geometry and Calculus Toolboxes . . . . . . . . . . . . . 21 II Level Set Methods 23 3 Motion in an Externally Generated Velocity Field 25 3.1 Convection . . . . . . . . . . . . . . . . . . . . . . . . . . 25 3.2 Upwind Dierencing . . . . . . . . . . . . . . . . . . . . 29 3.3 Hamilton-Jacobi ENO . . . . . . . . . . . . . . . . . . . 31 3.4 Hamilton-Jacobi WENO . . . . . . . . . . . . . . . . . . 33 3.5 TVD Runge-Kutta . . . . . . . . . . . . . . . . . . . . . 37 4 Motion Involving Mean Curvature 41 4.1 Equation of Motion . . . . . . . . . . . . . . . . . . . . . 41 4.2 Numerical Discretization . . . . . . . . . . . . . . . . . . 44 4.3 Convection-Diusion Equations . . . . . . . . . . . . . . 45 5 Hamilton-Jacobi Equations 47 5.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 47 5.2 Connection with Conservation Laws . . . . . . . . . . . . 48 5.3 Numerical Discretization . . . . . . . . . . . . . . . . . . 49 5.3.1 Lax-Friedrichs Schemes . . . . . . . . . . . . . . . 50 5.3.2 The Roe-Fix Scheme . . . . . . . . . . . . . . . . 52 5.3.3 Godunovs Scheme . . . . . . . . . . . . . . . . . 54 6 Motion in the Normal Direction 55 6.1 The Basic Equation . . . . . . . . . . . . . . . . . . . . . 55 6.2 Numerical Discretization . . . . . . . . . . . . . . . . . . 57 6.3 Adding a Curvature-Dependent Term . . . . . . . . . . . 59 6.4 Adding an External Velocity Field . . . . . . . . . . . . . 59 7 Constructing Signed Distance Functions 63 7.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 63 7.2 Reinitialization . . . . . . . . . . . . . . . . . . . . . . . 64 7.3 Crossing Times . . . . . . . . . . . . . . . . . . . . . . . 65 7.4 The Reinitialization Equation . . . . . . . . . . . . . . . 65 7.5 The Fast Marching Method . . . . . . . . . . . . . . . . 69 8 Extrapolation in the Normal Direction 75 8.1 One-Way Extrapolation . . . . . . . . . . . . . . . . . . . 75 8.2 Two-Way Extrapolation . . . . . . . . . . . . . . . . . . 76 8.3 Fast Marching Method . . . . . . . . . . . . . . . . . . . 76 9 Particle Level Set Method 79 9.1 Eulerian Versus Lagrangian Representations . . . . . . . 79 9.2 Using Particles to Preserve Characteristics . . . . . . . . 82 10 Codimension-Two Objects 87 10.1 Intersecting Two Level Set Functions . . . . . . . . . . . 87 10.2 Modeling Curves in 3 . . . . . . . . . . . . . . . . . . . 87 10.3 Open Curves and Surfaces . . . . . . . . . . . . . . . . . 90 10.4 Geometric Optics in a Phase-Space-Based Level Set Framework . . . . . . . . . . . . . . . . . . . . . . . . 90

2011-05-24

filetool 替换打开和添加到项目在Visual c + + 中的功能

filetool 替换打开和添加到项目在Visual c + + 中的功能

2011-05-14

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除