资源简介
利用VC,划出花瓣曲线。用户可以通过交互,控制四个变量来改变花瓣形状:半径大小,旋转角度,花瓣数目,花瓣厚度。

代码片段和文件信息
// flower.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “flower.h“
#include “MainFrm.h“
#include “flowerDoc.h“
#include “flowerView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CFlowerApp
BEGIN_MESSAGE_MAP(CFlowerApp CWinApp)
//{{AFX_MSG_MAP(CFlowerApp)
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()
/////////////////////////////////////////////////////////////////////////////
// CFlowerApp construction
CFlowerApp::CFlowerApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CFlowerApp object
CFlowerApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CFlowerApp initialization
BOOL CFlowerApp::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(CFlowerDoc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CFlowerView));
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;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 123009 2009-10-25 14:09 花瓣曲线\Debug\flower.exe
文件 43920 2006-11-07 22:50 花瓣曲线\flower.aps
文件 2252 2006-11-07 22:51 花瓣曲线\flower.clw
文件 4209 2006-11-07 19:37 花瓣曲线\flower.cpp
文件 4555 2006-11-07 19:37 花瓣曲线\flower.dsp
文件 535 2006-11-07 19:37 花瓣曲线\flower.dsw
文件 123009 2009-10-25 14:09 花瓣曲线\flower.exe
文件 1356 2006-11-07 19:37 花瓣曲线\flower.h
文件 132096 2009-10-25 14:09 花瓣曲线\flower.ncb
文件 48640 2009-10-25 14:09 花瓣曲线\flower.opt
文件 4087 2009-10-25 14:09 花瓣曲线\flower.plg
文件 11744 2006-11-07 22:50 花瓣曲线\flower.rc
文件 1742 2006-11-07 19:37 花瓣曲线\flowerDoc.cpp
文件 1475 2006-11-07 19:37 花瓣曲线\flowerDoc.h
文件 5620 2006-11-07 22:48 花瓣曲线\flowerView.cpp
文件 1869 2006-11-07 21:08 花瓣曲线\flowerView.h
文件 2507 2006-11-07 19:37 花瓣曲线\MainFrm.cpp
文件 1581 2006-11-07 19:37 花瓣曲线\MainFrm.h
文件 4311 2006-11-07 19:37 花瓣曲线\ReadMe.txt
文件 1078 2006-11-07 19:37 花瓣曲线\res\flower.ico
文件 398 2006-11-07 19:37 花瓣曲线\res\flower.rc2
文件 1078 2006-11-07 19:37 花瓣曲线\res\flowerDoc.ico
文件 1078 2006-11-07 21:12 花瓣曲线\res\Toolbar.bmp
文件 494 2006-11-07 19:37 花瓣曲线\Resource.h
文件 208 2006-11-07 19:37 花瓣曲线\StdAfx.cpp
文件 1054 2006-11-07 19:37 花瓣曲线\StdAfx.h
文件 85504 2011-08-20 18:16 花瓣曲线\花瓣曲线.doc
..AD... 0 2011-09-07 14:03 花瓣曲线\Debug
..AD... 0 2011-09-07 14:03 花瓣曲线\res
..AD... 0 2011-11-24 11:05 花瓣曲线
............此处省略3个文件信息
- 上一篇:班级信息管理系统(源代码)
- 下一篇:2015全国电子设计大赛 有关PID算法
相关资源
- 计算机图形学 边填充算法实现代码
- 计算机图形学课设 画板
- 读取串口数据并画实时曲线的VC 程序
- 绘制曲线图软件
- 串口绘制曲线 将收到的数据进行曲线
- C 源码 画出wav文件声音数据的波形曲
- 简易绘图程序(计算机图形学课程设
- Douglas-Peucker 曲线离散化算法.rar
- 计算机图形学(openGL)代码
- 图形学集成程序dda、中点算法、多边
- 计算机图形实验(哈尔滨工程大学)
- txt测井曲线转换las2.0(新编)
- 易语言椭圆曲线算法加密文件源码
- 通过3D打印样品发现NMR曲线的不同姿态
- 基于曲率信息由曲线到曲面的重建与
- l-CURVE曲线适用于正则化算法
- VMOS管理结构及输出特性曲线电路图
- 计算机图形学-全.rar
- 自由曲线曲面造型技术(朱心雄)
- 最小二乘法拟合曲线
- 基于蒙特卡洛生成电动汽车充电负荷
- 7-Uath茶壶
- 曲线.zip
- 曲线拟合控件
- SM2椭圆曲线算法软件.rar
- rlc串联电路谐振特性曲线
- 原生3次贝塞尔曲线算法地图
- 基于曲线回归方程的矿井主排水泵永
- 基于科赫雪花曲线激励装置的涡流传
- 贝塞尔曲线的unity3d实现
评论
共有 条评论