📄 stlviewerview.h
字号:
// STLViewerView.h : interface of the CSTLViewerView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_STLVIEWERVIEW_H__D5F8FC2E_373C_442E_AAF5_D321322B1658__INCLUDED_)
#define AFX_STLVIEWERVIEW_H__D5F8FC2E_373C_442E_AAF5_D321322B1658__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "..\inc\glContext\openGLDC.h"
class CSTLViewerView : public CGLView
{
protected: // create from serialization only
CSTLViewerView();
DECLARE_DYNCREATE(CSTLViewerView)
// Attributes
public:
CSTLViewerDoc* GetDocument();
virtual void RenderScene(COpenGLDC* pDC);
float m_xRotate;
float m_yRotate;
CPoint m_LeftDownPos;
BOOL m_LeftButtonDown;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSTLViewerView)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CSTLViewerView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CSTLViewerView)
afx_msg void OnViewBack();
afx_msg void OnViewBottom();
afx_msg void OnViewFront();
afx_msg void OnViewLeft();
afx_msg void OnViewRight();
afx_msg void OnViewTop();
afx_msg void OnViewSWIsometric();
afx_msg void OnViewSEIsometric();
afx_msg void OnViewNEIsometric();
afx_msg void OnViewNWIsometric();
afx_msg void OnViewZoomall();
afx_msg void OnViewZoomin();
afx_msg void OnViewZoomout();
afx_msg void OnViewShade();
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
virtual BOOL GetBox(double& x0,double& y0,double& z0,double& x1,double& y1,double& z1);
};
#ifndef _DEBUG // debug version in STLViewerView.cpp
inline CSTLViewerDoc* CSTLViewerView::GetDocument()
{ return (CSTLViewerDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STLVIEWERVIEW_H__D5F8FC2E_373C_442E_AAF5_D321322B1658__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -