/************************************************************************************************** 版本所有(C), 2020-2022, 北京普达迪泰 *************************************************************************************************** 文 件 名: OSGView.h 功能描述: OSG视图封装类 版 本 号: 1.00初版 作 者: HYF 生成日期; 2021-12-20 最近修改: 函数列表: 修改历史: 1.日 期 :2021-12-20 作 者 : HYF 修改内容 : 创建文件 **************************************************************************************************/ #pragma once using namespace std; #include // OSGView 视图 class CoreOSG; class RenderingThread; class OSGView : public CView { DECLARE_DYNCREATE(OSGView) public: // 动态创建所使用的受保护的构造函数 OSGView(); virtual ~OSGView(); protected: CStringArray m_arrModel; CoreOSG *m_pOSG; RenderingThread* m_pRenderThread; public: // 重写以绘制该视图 virtual void OnDraw(CDC* pDC); #ifdef _DEBUG virtual void AssertValid() const; #ifndef _WIN32_WCE virtual void Dump(CDumpContext& dc) const; #endif #endif protected: DECLARE_MESSAGE_MAP() public: BOOL LoadOSG(LPCTSTR szEquipTypeCode, CStringArray& arrModel); void Terminate(); void RotateCurModel(const double fx, const double fy, const double fz); void SetCurEquipPlace(LPCTSTR szEquipPlace); public: afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags); afx_msg void OnDestroy(); virtual void OnInitialUpdate(); };