?? subdivdlg.h
字號:
// SubdivDlg.h : header file
//
//{{AFX_INCLUDES()
//#include "openglactivex.h"
//}}AFX_INCLUDES
#if !defined(AFX_SUBDIVDLG_H__276321C9_DA0A_4621_A5BD_35637652BEB0__INCLUDED_)
#define AFX_SUBDIVDLG_H__276321C9_DA0A_4621_A5BD_35637652BEB0__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "mesh.h"
#include <vector>
class Mesh;
/////////////////////////////////////////////////////////////////////////////
// CSubdivDlg dialog
class CSubdivDlg : public CDialog
{
// Construction
public:
void EndTimeCout();
void startTimeCount();
void clearMeshHistory( int startj );
CSubdivDlg(CWnd* pParent = NULL); // standard constructor
virtual ~CSubdivDlg();
// Dialog Data
//{{AFX_DATA(CSubdivDlg)
enum { IDD = IDD_SUBDIV_DIALOG };
int m_renderType;
BOOL m_divBeforeLoop;
BOOL m_divBeforesqrt3;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSubdivDlg)
public:
virtual BOOL DestroyWindow();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
protected:
void OnLMouseMoveOpengl(short x, short y) ;
void OnLMouseWheelOpengl(short zDelta, CPoint pt);
void OnLButtonDownOpengl(long mFlags, short x, short y) ;
void OnLButtonUpOpengl(long mFlags, short x, short y) ;
void OnRButtonDownOpengl(long mFlags, short x, short y) ;
void OnRButtonUpOpengl(long m_Flags, short x, short y) ;
void OnLButtonDblClkOpengl(long mFlags, short x, short y) ;
void OnInitOpenGL() ;
void OnReDrawOpengl() ;
void OnReSizeOpengl(short cx, short cy) ;
HDC m_hDC;
HGLRC m_hRC;
int m_projMode;
HICON m_hIcon;
float zRot;
float xRot;
float yRot;
float xTran;
float yTran;
float m_wid;
float m_hei;
float zOriginRot;
float xOriginRot;
float yOriginRot;
float zoom;
bool m_lBtnDown;
bool m_rBtnDown;
bool m_mouseWheeled;
CPoint mouseLight;
CPoint zoomPoint;
CPoint startPoint;
CPoint rstartPoint;
CPoint mousePoint;
// Mesh *pMesh;
int m_nowMeshIdx;
vector<Mesh *> m_meshs;
bool m_blMeshReady;
// Generated message map functions
//{{AFX_MSG(CSubdivDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButton1();
afx_msg void OnRadioRenderEdge();
afx_msg void OnRadioRenderFace();
afx_msg void OnRadioRenderVertex();
afx_msg void OnButtonDump();
afx_msg void OnButtonCatmull();
afx_msg void OnButtonDoosabin();
afx_msg void OnButtonSaveobj();
afx_msg void OnButtonQuit();
afx_msg void OnButtonBack();
afx_msg void OnButtonForward();
afx_msg void OnButtonLoop();
afx_msg void OnDestroy();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
afx_msg void OnButtonZoomin();
afx_msg void OnButtonZoomout();
afx_msg void OnCheckDivloop();
afx_msg void OnButtonSqrt3();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SUBDIVDLG_H__276321C9_DA0A_4621_A5BD_35637652BEB0__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -