www.pudn.com > RayTrace1.1.rar > AddSphere.cpp


// AddSphere.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "noname.h" 
#include "AddSphere.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CAddSphere dialog 
 
 
CAddSphere::CAddSphere(CWnd* pParent /*=NULL*/) 
	: CDialog(CAddSphere::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CAddSphere) 
	m_R = 0.0f; 
	m_Centerx = 0.0f; 
	m_Centery = 0.0f; 
	m_Centerz = 0.0f; 
	m_ColorBlue = 0.0f; 
	m_ColorGreen = 0.0f; 
	m_ColorRed = 0.0f; 
	m_Refra = 0.0f; 
	m_Refre = 0.0f; 
	//}}AFX_DATA_INIT 
} 
 
 
void CAddSphere::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CAddSphere) 
	DDX_Text(pDX, ID_R, m_R); 
	DDX_Text(pDX, IDC_Centerx, m_Centerx); 
	DDX_Text(pDX, IDC_Centery, m_Centery); 
	DDX_Text(pDX, IDC_Centerz, m_Centerz); 
	DDX_Text(pDX, IDC_EDIT_ColorBlue, m_ColorBlue); 
	DDV_MinMaxFloat(pDX, m_ColorBlue, 0.f, 1.f); 
	DDX_Text(pDX, IDC_EDIT_ColorGreen, m_ColorGreen); 
	DDV_MinMaxFloat(pDX, m_ColorGreen, 0.f, 1.f); 
	DDX_Text(pDX, IDC_EDIT_ColorRed, m_ColorRed); 
	DDV_MinMaxFloat(pDX, m_ColorRed, 0.f, 1.f); 
	DDX_Text(pDX, IDC_EDIT_Refra, m_Refra); 
	DDX_Text(pDX, IDC_EDIT_Refre, m_Refre); 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CAddSphere, CDialog) 
	//{{AFX_MSG_MAP(CAddSphere) 
		// NOTE: the ClassWizard will add message map macros here 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CAddSphere message handlers