⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simulateview.h

📁 这是关于飞机生存力计算软件
💻 H
字号:
// SimulateView.h : interface of the CSimulateView class
//
/////////////////////////////////////////////////////////////////////////////
#include <GL/gl.h>
#include <GL/glu.h>

#include "SimulateDoc.h"

#if !defined(AFX_SIMULATEVIEW_H__86F6D3CE_A48E_11D2_ABDB_444553540000__INCLUDED_)
#define AFX_SIMULATEVIEW_H__86F6D3CE_A48E_11D2_ABDB_444553540000__INCLUDED_

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

enum {TRANALONG_X, TRANALONG_Y, TRANALONG_Z};
enum {NOCHOICE, MOVE, ROTATE, SCALE};

//debug code for texture
#define stripeImageWidth 128

class CSimulateView : public CView
{
protected: // create from serialization only
	CSimulateView();
	DECLARE_DYNCREATE(CSimulateView)

// Attributes
public:
	CSimulateDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSimulateView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
	//}}AFX_VIRTUAL

// Implementation
public:
	CVector m_Up;
	CVertex m_Center;
	CVertex m_Eye;
//	GLubyte stripeImage[stripeImageWidth][stripeImageWidth][4];
//	GLfloat stripeImage[stripeImageWidth][stripeImageWidth][4];
	BOOL m_bSmooth;
	void ResetSetting();
	float m_fScaleFactor;
	float m_fRotationStep;
	float m_fMovementStep;
	int m_nTransformMode;
	CPoint m_PointOld;
	BOOL m_bTransforming;
	float m_fScale;
	float m_fShiftWithZ;
	float m_fShiftWithY;
	float m_fShiftWithX;
	float m_fRotateAngleWithZ;
	float m_fRotateAngleWithY;
	float m_fRotateAngleWithX;
	CMenu m_TranMenu;
	int m_nCYOld;
	int m_nCXOld;
	int m_GLPixelIndex;
	virtual ~CSimulateView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	int m_CurrentTransformDirection;
	CMenu m_MainMenu;
	BOOL SetWindowPixelFormat(HDC hDC);
	BOOL CreateViewGLContext(HDC hDC);
	GLdouble m_dFOV;
	GLUquadricObj * m_pMesh;
	HGLRC m_hrc;
	void DrawScene();
	//{{AFX_MSG(CSimulateView)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in SimulateView.cpp
inline CSimulateDoc* CSimulateView::GetDocument()
   { return (CSimulateDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SIMULATEVIEW_H__86F6D3CE_A48E_11D2_ABDB_444553540000__INCLUDED_)

⌨️ 快捷键说明

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