The Machine Perception Toolbox

[Introduction]- [News]- [Download]- [Screenshots]- [Manual (pdf)]- [Forums]- [API Reference]- [Repository ]

 

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Projectsbox Class Reference

#include <Projectsbox.h>

Collaboration diagram for Projectsbox:

Collaboration graph
[legend]
List of all members.

Public Types

enum  { IDD = IDD_PROJECTSBOX }

Public Member Functions

 Projectsbox (CWnd *pParent=NULL)
void setDirectShow (MPDirectShow *directShow)

Public Attributes

CComboBox m_selectProject
CComboBox m_selectSize

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
afx_msg void OnDropdownCOMBOInputSize ()
afx_msg void OnDropdownCOMBOProjects ()
afx_msg void Oneyefinder ()
afx_msg void OnSelchangeCOMBOInputSize ()
afx_msg void OnSelchangeCOMBOProjects ()

Protected Attributes

MPDirectShowm_directShow
HWND m_hWnd

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
IDD 

Definition at line 22 of file Projectsbox.h.

00022 { IDD = IDD_PROJECTSBOX }; 


Constructor & Destructor Documentation

Projectsbox CWnd *  pParent = NULL  ) 
 

Definition at line 19 of file Projectsbox.cpp.

00020         : CDialog(Projectsbox::IDD, pParent)
00021 {
00022         //{{AFX_DATA_INIT(Projectsbox)
00023         //}}AFX_DATA_INIT
00024 }


Member Function Documentation

void DoDataExchange CDataExchange *  pDX  )  [protected, virtual]
 

Definition at line 27 of file Projectsbox.cpp.

References ds_projectNames, i, m_selectProject, and m_selectSize.

00028 {
00029         CDialog::DoDataExchange(pDX);
00030         //{{AFX_DATA_MAP(Projectsbox)
00031         DDX_Control(pDX, IDC_COMBO_InputSize, m_selectSize);
00032         DDX_Control(pDX, IDC_COMBO_Projects, m_selectProject);
00033         //}}AFX_DATA_MAP
00034 
00035         for (int i = 0; i < NUM_PROJECTS; i++)
00036                 m_selectProject.InsertString(i, ds_projectNames[i]);
00037         m_selectProject.SetCurSel(0);
00038 
00039         m_selectSize.InsertString(0, "160x120"); 
00040         m_selectSize.InsertString(1, "320x240");
00041         m_selectSize.InsertString(2, "640x480");
00042         m_selectSize.SetCurSel(1);
00043 
00044 }

void OnDropdownCOMBOInputSize  )  [protected]
 

Definition at line 74 of file Projectsbox.cpp.

00075 {
00076 }

void OnDropdownCOMBOProjects  )  [protected]
 

Definition at line 64 of file Projectsbox.cpp.

00065 {
00066 }

afx_msg void Oneyefinder  )  [protected]
 

void OnSelchangeCOMBOInputSize  )  [protected]
 

Definition at line 78 of file Projectsbox.cpp.

References m_directShow, m_selectSize, and MPDirectShow::SetInput().

00079 {
00080         int size = m_selectSize.GetCurSel();
00081         switch (size) {
00082         case 0:
00083                 m_directShow->SetInput(160, 120);
00084                 break;
00085         case 1:
00086                 m_directShow->SetInput(320, 240);
00087                 break;
00088         case 2:
00089                 m_directShow->SetInput(640, 480);
00090                 break;
00091         default:
00092                 m_directShow->SetInput(160, 120);
00093                 break;
00094         }
00095 }

Here is the call graph for this function:

void OnSelchangeCOMBOProjects  )  [protected]
 

Definition at line 68 of file Projectsbox.cpp.

References ds_project, m_directShow, m_selectProject, and MPDirectShow::SetProject().

00069 {
00070         int proj = m_selectProject.GetCurSel();
00071         m_directShow->SetProject((ds_project)proj);
00072 }

Here is the call graph for this function:

void setDirectShow MPDirectShow directShow  ) 
 

Definition at line 59 of file Projectsbox.cpp.

References m_directShow.

Referenced by CVideoDemoApp::InitInstance(), and CVideoDemoApp::OnAppProject().

00060 {
00061         m_directShow = directShow;
00062 }


Member Data Documentation

MPDirectShow* m_directShow [protected]
 

Definition at line 37 of file Projectsbox.h.

Referenced by OnSelchangeCOMBOInputSize(), and OnSelchangeCOMBOProjects().

HWND m_hWnd [protected]
 

Definition at line 38 of file Projectsbox.h.

CComboBox m_selectProject
 

Definition at line 24 of file Projectsbox.h.

Referenced by DoDataExchange(), and OnSelchangeCOMBOProjects().

CComboBox m_selectSize
 

Definition at line 23 of file Projectsbox.h.

Referenced by DoDataExchange(), and OnSelchangeCOMBOInputSize().


The documentation for this class was generated from the following files:
Generated on Mon Nov 8 17:08:41 2004 for MPT by  doxygen 1.3.9.1