Click here to Skip to main content
15,879,474 members
Articles / Desktop Programming / ATL

3D Graph ActiveX Control

Rate me:
Please Sign up or sign in to vote.
4.90/5 (100 votes)
2 Aug 2003MIT3 min read 768.9K   50K   284  
An ATL/STL ActiveX control based on OpenGL library for 3D data visualization
// TorusDlg.h : header file
//
//{{AFX_INCLUDES()
#include "graph3d.h"
//}}AFX_INCLUDES

#if !defined(AFX_TORUSDLG_H__BE460A4D_CB52_45B0_9CE4_06A553611D19__INCLUDED_)
#define AFX_TORUSDLG_H__BE460A4D_CB52_45B0_9CE4_06A553611D19__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CTorusDlg dialog

class CTorusDlg : public CDialog
{
// Construction
public:
	void PlotTorus();
	CTorusDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CTorusDlg)
	enum { IDD = IDD_TORUS_DIALOG };
	CComboBox	m_cmbTrackMode;
	BOOL	m_bProjection;
	CGraph3D	m_Graph3D;
	int		m_nDefformation;
	int		m_nAmbient;
	int		m_nAmbMat;
	int		m_nDiffMat;
	int		m_nDiffuse;
	int		m_nEmission;
	int		m_nShine;
	int		m_nSpecMat;
	int		m_nSpecular;
	int		m_nPosX;
	int		m_nPosY;
	int		m_nPosZ;
	CString	m_strAmbient;
	CString	m_strAmbMat;
	CString	m_strDiffMat;
	CString	m_strDiffuse;
	CString	m_strEmission;
	CString	m_strShine;
	CString	m_strSpecMat;
	CString	m_strSpecular;
	CString	m_strPosX;
	CString	m_strPosY;
	CString	m_strPosZ;
	BOOL	m_bFill;
	BOOL	m_bFlat;
	BOOL	m_bLights;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTorusDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CTorusDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnCheckProjection();
	afx_msg void OnCloseupComboMode();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnFillSurface();
	afx_msg void OnFlatSurface();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TORUSDLG_H__BE460A4D_CB52_45B0_9CE4_06A553611D19__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service 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 MIT License


Written By
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions