dlgsimprop.cpp

来自「本程序描述的是一个三维织物动感模拟系统。计算机生成真实感服装被列入计算机图形学亟」· C++ 代码 · 共 60 行

CPP
60
字号
// DlgSimProp.cpp : implementation file
//

#include "stdafx.h"
#include "ClothSimulation.h"
#include "DlgSimProp.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDlgSimProp dialog


CDlgSimProp::CDlgSimProp(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgSimProp::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgSimProp)
		// NOTE: the ClassWizard will add member initialization here
	m_CoefRest = 0.0f;
	m_Damping = 0.0f;
	m_GravX = 0.0f;
	m_GravY = 0.0f;
	m_GravZ = 0.0f;
	m_SpringConst = 0.0f;
	m_SpringDamp = 0.0f;
	m_UserForceMag = 0.0f;
	//}}AFX_DATA_INIT
}


void CDlgSimProp::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgSimProp)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	DDX_Text(pDX, IDC_COEFREST, m_CoefRest);
	DDX_Text(pDX, IDC_DAMPING, m_Damping);
	DDX_Text(pDX, IDC_GRAVX, m_GravX);
	DDX_Text(pDX, IDC_GRAVY, m_GravY);
	DDX_Text(pDX, IDC_GRAVZ, m_GravZ);
	DDX_Text(pDX, IDC_SPRINGCONST, m_SpringConst);
	DDX_Text(pDX, IDC_SPRINGDAMP, m_SpringDamp);
	DDX_Text(pDX, IDC_USERFORCEMAG, m_UserForceMag);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgSimProp, CDialog)
	//{{AFX_MSG_MAP(CDlgSimProp)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgSimProp message handlers

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?