资源简介
MFC绘制阿基米德螺旋线
阿基米德螺线也叫“等速螺线”。
当一点P沿动射线OP以等速率运动的同时,该射线又以等角速度绕点O旋转,点P的轨迹称为“阿基米德螺线”。直线旋转一周时,动点在直线上移动的距离称为导程用字母S表示。近似画法:(1)先以导程S为半径画圆,再将圆周及半径分成相同的n等分;(2)以O为圆心,作各同心圆弧于相应数字的半径相交,得交点Ⅰ、Ⅱ、Ⅲ、…Ⅷ各点,即为阿基米德涡线上的点;(3)依次光滑连接各点,即得阿基米德螺线。

代码片段和文件信息
// huatu.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “huatu.h“
#include “MainFrm.h“
#include “huatuDoc.h“
#include “huatuView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CHuatuApp
BEGIN_MESSAGE_MAP(CHuatuApp CWinApp)
//{{AFX_MSG_MAP(CHuatuApp)
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()
/////////////////////////////////////////////////////////////////////////////
// CHuatuApp construction
CHuatuApp::CHuatuApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CHuatuApp object
CHuatuApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CHuatuApp initialization
BOOL CHuatuApp::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(CHuatuDoc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CHuatuView));
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 and update it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
return TRUE;
}
/////////
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2334 2009-08-06 20:06 MFC绘制阿基米德螺旋线\huatu.clw
文件 4191 2008-09-24 17:29 MFC绘制阿基米德螺旋线\huatu.cpp
文件 4531 2009-08-06 20:10 MFC绘制阿基米德螺旋线\huatu.dsp
文件 533 2008-09-24 17:29 MFC绘制阿基米德螺旋线\huatu.dsw
文件 1345 2008-09-24 17:29 MFC绘制阿基米德螺旋线\huatu.h
文件 244 2009-10-09 20:30 MFC绘制阿基米德螺旋线\huatu.plg
文件 11711 2009-08-05 13:05 MFC绘制阿基米德螺旋线\huatu.rc
文件 876 2018-12-19 13:20 MFC绘制阿基米德螺旋线\huatu.sln
..A..H. 11264 2018-12-19 13:20 MFC绘制阿基米德螺旋线\huatu.suo
文件 7968 2018-06-14 12:04 MFC绘制阿基米德螺旋线\huatu.vcxproj
文件 2483 2018-06-14 12:04 MFC绘制阿基米德螺旋线\huatu.vcxproj.filters
文件 143 2018-06-14 12:04 MFC绘制阿基米德螺旋线\huatu.vcxproj.user
文件 1722 2008-09-24 17:29 MFC绘制阿基米德螺旋线\huatuDoc.cpp
文件 1464 2008-09-24 17:29 MFC绘制阿基米德螺旋线\huatuDoc.h
文件 8085 2018-06-14 12:22 MFC绘制阿基米德螺旋线\huatuView.cpp
文件 1759 2008-09-24 17:30 MFC绘制阿基米德螺旋线\huatuView.h
文件 3488 2009-08-15 10:45 MFC绘制阿基米德螺旋线\MainFrm.cpp
文件 1525 2009-02-04 10:46 MFC绘制阿基米德螺旋线\MainFrm.h
文件 931 2009-08-06 20:05 MFC绘制阿基米德螺旋线\paint.cpp
文件 4287 2008-09-24 17:29 MFC绘制阿基米德螺旋线\ReadMe.txt
文件 1078 2008-09-24 17:29 MFC绘制阿基米德螺旋线\res\huatu.ico
文件 397 2008-09-24 17:29 MFC绘制阿基米德螺旋线\res\huatu.rc2
文件 1078 2008-09-24 17:29 MFC绘制阿基米德螺旋线\res\huatuDoc.ico
文件 1078 2008-09-24 17:29 MFC绘制阿基米德螺旋线\res\Toolbar.bmp
文件 639 2009-02-02 17:02 MFC绘制阿基米德螺旋线\Resource.h
文件 207 2008-09-24 17:29 MFC绘制阿基米德螺旋线\StdAfx.cpp
文件 1054 2008-09-24 17:29 MFC绘制阿基米德螺旋线\StdAfx.h
目录 0 2018-06-28 11:15 MFC绘制阿基米德螺旋线\res
目录 0 2018-12-19 13:20 MFC绘制阿基米德螺旋线
----------- --------- ---------- ----- ----
............此处省略2个文件信息
- 上一篇:c语言课程设计职工信息管理系统
- 下一篇:卡尔曼滤波和互补滤波参考程序
相关资源
- 基于mfc的多线程文件传输
- MFC数字钟(基于VC6.0)
- VC++MFC小游戏实例教程(实例)+MFC类库
- ChartCtrl控件库(可在VS2019中使用)
- 商品库存管理系统 C++ MFC
- mfc 调用redis
- MFC视频播放器源码(支持avi/wma/mp3等格
- mfc绘图大全(画直线、矩形、椭圆)
- MFC控件重绘
- hook,捕获所有案件,查找所有窗口,
- (学习)VS2010之MFC入门到精通教程
- MFC文档_视图_框架_模板结构体系深入
- 简单员工管理系统(适合初学MFC)
- MFC五子棋游戏
- MFC UDP编程
- MFC的异步网络通讯应用程序
- C++MFC模块讲解,黑发程序员课程整理
- 一个简单而强大的基于MFC的web server源
- 基于MFC的VC++仿QQ浏览器源码(雏形)
- MFCaccess.rar
- VC++MFC课程设计的学生成绩管理系统
- MFC 日历控件 万年历 Calendar自绘
- CrystalDiskInfo-HDD/SSD硬盘信息,SMART信息
- MFC自定义界面HUI,高效简单,含详细
- 仿射密码-Affine cipher
- c++MFC车牌自动识别定位,只能定位和
- mfc+sql 酒店客房管理系统
- 基于图割的图像分割OpenCV+MFC实现
- MFC绘制Bezier曲线B样条曲线曲线拟合
- MFC坦克大战
评论
共有 条评论