📄 entityview.h
字号:
#if !defined(AFX_ENTITYVIEW_H__83B97932_8F6E_11D1_9D8B_D6F3FE4E493C__INCLUDED_)
#define AFX_ENTITYVIEW_H__83B97932_8F6E_11D1_9D8B_D6F3FE4E493C__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// EntityView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CEntityView view
#include "StlDoc.h"
#include "BaseView.h"
class CEntityView : public CBaseView
{
protected:
CEntityView(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CEntityView)
// Attributes
public:
// Operations
public:
void OnProperties();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CEntityView)
public:
virtual void OnInitialUpdate();
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CEntityView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
double m_zoomRatio;
double m_rotationAngle;
double m_randomRotationAngle;
bool m_bRandomRotation;
static double m_colorBlue;
static double m_colorGreen;
static double m_colorRed;
HGLRC m_hglrc;
//{{AFX_MSG(CEntityView)
afx_msg void OnRotation();
afx_msg void OnColor();
afx_msg void OnRotationX();
afx_msg void OnRotationY();
afx_msg void OnRotationZ();
afx_msg void OnTransform();
afx_msg void OnZoom();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
virtual void RandomRotation( void );
void SetDCPixelFormat(HDC hdc);
void post_gl_shade(void);
LONG OnEntityViewCreated( UINT, LONG );
void SetLightingProperties(void);
void post_shade_3d_model(CSTLSolid* pSTLSolid);
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ENTITYVIEW_H__83B97932_8F6E_11D1_9D8B_D6F3FE4E493C__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -