www.pudn.com > NavigateTest.rar > Navigate.h


#if !defined(AFX_NAVIGATE_H__D5E09456_15D9_11D6_956D_00E04CE0735F__INCLUDED_) 
#define AFX_NAVIGATE_H__D5E09456_15D9_11D6_956D_00E04CE0735F__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// Navigate.h : header file 
// 
#include "ShowBall.h" 
#include "CtrlActiveXCtl.h" 
#include "OpenGL.h" 
///////////////////////////////////////////////////////////////////////////// 
// CNavigate dialog 
 
class CNavigate : public CDialog 
{ 
// Construction 
public: 
	CClientDC   *m_pDC; 
	int m_iOperation,m_iRectList,m_iButtonFlag; 
	double m_dRectMinLB[2],m_dRectMaxLB[2],m_dx,m_dy; 
	double m_dEyeX,m_dEyeY,m_dEyeZ,m_dCenX,m_dCenY,m_dCenZ; 
	float m_fRotateZ; 
	CToolBar m_wndToolBar; 
public: 
	void meMapZoomIn(); 
	void meZoomOut(); 
	void meZoomIn(); 
	void LBtoXYZ(float L,float B,float *XYZ); 
	void meDrawRect(float fminL,float fminB,float fmaxL,float fmaxB); 
	void DrawNavigateBall(); 
	void GetRealCoord(CPoint point,double *LB); 
	void RenderScence(); 
	void Init(); 
	BOOL bSetupPixelFormat(); 
	CNavigate(CWnd* pParent = NULL);   // standard constructor 
	CNavigate(HWND pParent); 
	HWND parent; 
	CCtrlActiveXCtrl *pCtl; 
	HGLRC hrc; 
	int m_iBallList; 
	GLuint m_pTextures; 
	COpenGL *m_OpenGL; 
// Dialog Data 
	//{{AFX_DATA(CNavigate) 
	enum { IDD = IDD_NAVIGATE }; 
	CSliderCtrl	m_ZoomSlider; 
	//}}AFX_DATA 
 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CNavigate) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
 
	// Generated message map functions 
	//{{AFX_MSG(CNavigate) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnPaint(); 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnDestroy(); 
	afx_msg void OnSize(UINT nType, int cx, int cy); 
	afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized); 
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 
	afx_msg void OnQuerycoorrdinate(); 
	afx_msg void OnMouseMove(UINT nFlags, CPoint point); 
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point); 
	afx_msg void OnZoomin(); 
	afx_msg void OnRotate(); 
	afx_msg void OnZoomout(); 
	afx_msg void OnClose(); 
	afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar); 
	afx_msg void OnRotateright(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_NAVIGATE_H__D5E09456_15D9_11D6_956D_00E04CE0735F__INCLUDED_)