Click here to Skip to main content
Click here to Skip to main content
Articles » Multimedia » OpenGL » General » Downloads
 

Basic Curves And Surfaces Modeler

By , 18 Apr 2012
 
cadsurfexe.zip
CadSurfexe
CadSurf.exe
VKGeom.dll
VKGraphic.dll
cadsurf_demo.zip
CadSurf.exe
cadsurf_src.zip
CadSurf_src
cadsurf
CadSurf.clw
CadSurf.dsp
cadsurf.dsw
res
bmp00001.bmp
cadsurf.ico
CADSURFDOC.ICO
new_splash.bmp
new_splash.PNG
new_splash_small.bmp
tb_geom.bmp
Thumbs.db
toolbar.bmp
toolbar1.bmp
untitled.bmp
XPStyle.manifest
Thumbs.db
VKernel
VKGeom
VKGeom.dsp
VKGeom.dsw
VKGraphic
VKGraphic.dsp
VKGraphic.dsw
VKGraphic.plg
CadSurf_VS2008.zip
CadSurf
CadSurf.suo
cadsurf
res
bmp00001.bmp
cadsurf.ico
CADSURFDOC.ICO
new_splash.bmp
new_splash.PNG
new_splash_small.bmp
tb_geom.bmp
Thumbs.db
toolbar.bmp
toolbar1.bmp
untitled.bmp
VKernel
VKGeom
VKGraphic
VKGraphic.plg
// GridDlg.cpp : implementation file
//

#include "stdafx.h"
#include "CadSurf.h"
#include "GridDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CGridDlg dialog


CGridDlg::CGridDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CGridDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CGridDlg)
	m_Size = 1000.0;
	m_Step = 50.0;
	m_DX = 0.0;
	m_DY = 0.0;
	m_DZ = 1.0;
	//}}AFX_DATA_INIT
}


void CGridDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CGridDlg)
	DDX_Control(pDX, IDC_SPIN5, m_Spin5);
	DDX_Control(pDX, IDC_SPIN4, m_Spin4);
	DDX_Control(pDX, IDC_SPIN3, m_Spin3);
	DDX_Control(pDX, IDC_SPIN2, m_Spin2);
	DDX_Control(pDX, IDC_SPIN1, m_Spin1);
	DDX_Text(pDX, IDC_EDIT1, m_Size);
	DDV_MinMaxDouble(pDX, m_Size, 100., 1000000.);
	DDX_Text(pDX, IDC_EDIT2, m_Step);
	DDV_MinMaxDouble(pDX, m_Step, 1., 1000.);
	DDX_Text(pDX, IDC_EDIT3, m_DX);
	DDV_MinMaxDouble(pDX, m_DX, -100000., 100000.);
	DDX_Text(pDX, IDC_EDIT4, m_DY);
	DDV_MinMaxDouble(pDX, m_DY, -100000., 100000.);
	DDX_Text(pDX, IDC_EDIT5, m_DZ);
	DDV_MinMaxDouble(pDX, m_DZ, -100000., 100000.);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CGridDlg, CDialog)
	//{{AFX_MSG_MAP(CGridDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CGridDlg message handlers

BOOL CGridDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_Spin1.SetRange32(100, 1000000);
	m_Spin2.SetRange32(1, 1000);
	m_Spin3.SetRange32(-100000, 100000);
	m_Spin4.SetRange32(-100000, 100000);
	m_Spin5.SetRange32(-100000, 100000);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

By viewing downloads associated with this article you agree to the Terms of use and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Sharjith
Engineer Tata Technologies Inc
United States United States
Member
Sharjith is a Mechanical Engineer with strong passion for Automobiles, Aircrafts and Software development.

Permalink | Advertise | Privacy | Mobile
Web03 | 2.6.130523.1 | Last Updated 18 Apr 2012
Article Copyright 2003 by Sharjith
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid