FaceTracker2
MainFrm.h
1 // MainFrm.h : interface of the CMainFrame class
2 //
3 /////////////////////////////////////////////////////////////////////////////
4 
5 #if !defined(AFX_MAINFRM_H__03CF625D_5190_4DE4_AA47_DBB6E3C23015__INCLUDED_)
6 #define AFX_MAINFRM_H__03CF625D_5190_4DE4_AA47_DBB6E3C23015__INCLUDED_
7 
8 #if _MSC_VER > 1000
9 #pragma once
10 #endif // _MSC_VER > 1000
11 
12 #include "OpenGLWndFaceTracker.h"
13 #include "VisionExampleDoc.h"
14 
15 class CMainFrame : public CFrameWnd
16 {
17 
18 protected: // create from serialization only
19  CMainFrame();
20  DECLARE_DYNCREATE(CMainFrame)
21 
22 // Attributes
23 public:
24 
25 // Operations
26 public:
27 
28 // Overrides
29  // ClassWizard generated virtual function overrides
30  //{{AFX_VIRTUAL(CMainFrame)
31  virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
32  //}}AFX_VIRTUAL
33 
34 // Implementation
35 public:
36  virtual ~CMainFrame();
37  CVisionExampleDoc* GetDocument();
38  COpenGLWnd* GetOpenGLWnd();
39  LRESULT OnChangeStatusBar(WPARAM wParam, LPARAM lParam);
40  void ShowAvailConfigFiles(char *path,char *currentChoice);
41  void ShowAvailCamResolutions();
42  void ShowAvailCamDevices();
43  void ShowAvailMaxFaces();
44  void GetConfigFilename(CString& strName);
45  void GetCameraResolution(CString& strName);
46  int GetCameraDevice();
47  int GetMaxFaces();
48 
49 
50 #ifdef _DEBUG
51  virtual void AssertValid() const;
52  virtual void Dump(CDumpContext& dc) const;
53 #endif
54 
55  CStatusBar m_wndStatusBar;
56 
57  CToolBar m_wndToolBar;
58  CComboBox *m_comboBoxConfigFile;
59  CComboBox *m_comboBoxCamResolution;
60  CComboBox *m_comboBoxCamDevice;
61  CComboBox *m_comboBoxMaxFaces;
62  CReBar m_wndReBar;
63  CDialogBar m_wndDlgBar;
64 
65 // Generated message map functions
66 protected:
67  //{{AFX_MSG(CMainFrame)
68  afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
69  // NOTE - the ClassWizard will add and remove member functions here.
70  // DO NOT EDIT what you see in these blocks of generated code!
71  //}}AFX_MSG
72 
73  afx_msg BOOL OnToolTipText(UINT nID, NMHDR* pNMHDR, LRESULT* pResult);
74  DECLARE_MESSAGE_MAP()
75 };
76 
77 /////////////////////////////////////////////////////////////////////////////
78 
79 //{{AFX_INSERT_LOCATION}}
80 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
81 
82 #endif // !defined(AFX_MAINFRM_H__03CF625D_5190_4DE4_AA47_DBB6E3C23015__INCLUDED_)
The document.
The OpenGL-enabled window with rendering and basic interaction.