📄 tran3dview.h
字号:
// Tran3DView.h : interface of the CTran3DView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_TRAN3DVIEW_H__4AA7C306_3AD6_4D4B_8D9E_6CE9B4039F5C__INCLUDED_)
#define AFX_TRAN3DVIEW_H__4AA7C306_3AD6_4D4B_8D9E_6CE9B4039F5C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//定义透视变换时的增量
#define IncDE 5
#define IncAng 1
#define IncRol 0.25
class CTran3DDoc;
class CTran3DView : public CView
{
protected: // create from serialization only
CTran3DView();
DECLARE_DYNCREATE(CTran3DView)
// Attributes
public:
CTran3DDoc* GetDocument();
// Operations
public:
enum {SEL_3VIEW,SEL_TST,SEL_XDC,SEL_XEX,SEL_ZDC,SEL_ZEC,SEL_NONE}
m_NowSelect;
CString m_str;
double Rol,DE,Theta,Phi;
CPoint s_PointEnd;
public:
void DrawPers();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTran3DView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CTran3DView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CTran3DView)
afx_msg void OnDraw3view();
afx_msg void OnUpdateDraw3view(CCmdUI* pCmdUI);
afx_msg void OnDrawtst();
afx_msg void OnUpdateDrawtst(CCmdUI* pCmdUI);
afx_msg void OnDrawxdc();
afx_msg void OnUpdateDrawxdc(CCmdUI* pCmdUI);
afx_msg void OnDrawxex();
afx_msg void OnUpdateDrawxex(CCmdUI* pCmdUI);
afx_msg void OnDrawzdc();
afx_msg void OnUpdateDrawzdc(CCmdUI* pCmdUI);
afx_msg void OnDrawzec();
afx_msg void OnUpdateDrawzec(CCmdUI* pCmdUI);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in Tran3DView.cpp
inline CTran3DDoc* CTran3DView::GetDocument()
{ return (CTran3DDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TRAN3DVIEW_H__4AA7C306_3AD6_4D4B_8D9E_6CE9B4039F5C__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -