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

📄 crosssimulation1view.h

📁 一个完整的交叉口仿真模型 实现生成交叉口 和车辆生成 运行 跟驰等
💻 H
字号:
// CrossSimulation1View.h : interface of the CCrossSimulation1View class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_CROSSSIMULATION1VIEW_H__409B66A4_154C_4FFC_9D42_FB84DD92C222__INCLUDED_)
#define AFX_CROSSSIMULATION1VIEW_H__409B66A4_154C_4FFC_9D42_FB84DD92C222__INCLUDED_

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

#include <gl\gl.h>       //add
#include <gl\glu.h>      //add
#include <gl\glaux.h>      //add
#include <math.h>         //add
#include "Road.h"


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

// Attributes
public:
	CCrossSimulation1Doc* GetDocument();
	CClientDC	*m_pDC;   //add
	HGLRC		m_hglrc;   //add
	int simEndTime;
	int sim_start;


public:          
	void Simulation();
	BOOL b_DrawCross;
	void DrawPanorama(CDC* pDC);
    CRoad*  CROSS;



// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCrossSimulation1View)
	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);
	//}}AFX_VIRTUAL

// Implementation
public:
	float turnwide;
	virtual ~CCrossSimulation1View();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CCrossSimulation1View)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnDestroy();
	afx_msg void OnCrossNor();
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in CrossSimulation1View.cpp
inline CCrossSimulation1Doc* CCrossSimulation1View::GetDocument()
   { return (CCrossSimulation1Doc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_CROSSSIMULATION1VIEW_H__409B66A4_154C_4FFC_9D42_FB84DD92C222__INCLUDED_)

⌨️ 快捷键说明

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