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

DeviceList Class Reference

#include <DeviceList.h>

Collaboration diagram for DeviceList:

Collaboration graph
[legend]
List of all members.

Public Types

enum  { IDD = IDD_DEVICES }

Public Member Functions

 DeviceList (CWnd *pParent=NULL)
virtual int DoModal ()
void setDirectShow (MPDirectShow *directShow, int totalDevices, dl_deviceType deviceType)

Public Attributes

CComboBox m_deviceList
CStatic m_deviceText

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
afx_msg void OnSelchangeCOMBOList ()

Protected Attributes

dl_deviceType m_deviceType
MPDirectShowm_directShow
int m_totalDevices

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
IDD 

Definition at line 24 of file DeviceList.h.

00024 { IDD = IDD_DEVICES };


Constructor & Destructor Documentation

DeviceList CWnd *  pParent = NULL  ) 
 

Definition at line 19 of file DeviceList.cpp.

00020         : CDialog(DeviceList::IDD, pParent)
00021 {
00022         //{{AFX_DATA_INIT(DeviceList)
00023                 // NOTE: the ClassWizard will add member initialization here
00024         //}}AFX_DATA_INIT
00025 }


Member Function Documentation

void DoDataExchange CDataExchange *  pDX  )  [protected, virtual]
 

Definition at line 28 of file DeviceList.cpp.

References dl_capture, dl_compressor, i, m_deviceList, MPDirectShow::m_deviceNames, m_deviceText, and m_directShow.

00029 {
00030         CDialog::DoDataExchange(pDX);
00031         //{{AFX_DATA_MAP(DeviceList)
00032         DDX_Control(pDX, IDC_STATIC_Text, m_deviceText);
00033         DDX_Control(pDX, IDC_COMBO_List, m_deviceList);
00034         //}}AFX_DATA_MAP
00035 
00036         for (int i = 0; i < m_totalDevices; i++) {
00037                 m_deviceList.InsertString(i, m_directShow->m_deviceNames[i]);
00038         }
00039 
00040         switch (m_deviceType) {
00041         case dl_capture:
00042                 SetDlgItemText(IDC_STATIC_Text,"Select Capture Device"); 
00043                 break;
00044         case dl_compressor:
00045                 SetDlgItemText(IDC_STATIC_Text,"Select Video Compressor"); 
00046                 m_deviceList.InsertString(i, "None");
00047                 break;
00048         }
00049                 
00050 }

int DoModal  )  [virtual]
 

Definition at line 69 of file DeviceList.cpp.

References MPDirectShow::m_devicePos, and m_directShow.

Referenced by CVideoDemoApp::InitInstance().

00070 {
00071         if (m_deviceType == dl_capture)
00072                 m_directShow->m_devicePos = 0;
00073         else
00074                 m_directShow->m_devicePos = m_totalDevices;
00075 
00076         return CDialog::DoModal();
00077 }

void OnSelchangeCOMBOList  )  [protected]
 

Definition at line 79 of file DeviceList.cpp.

References m_deviceList, MPDirectShow::m_devicePos, and m_directShow.

00080 {
00081         int pos = m_deviceList.GetCurSel();
00082         m_directShow->m_devicePos = pos;        
00083 }

void setDirectShow MPDirectShow directShow,
int  totalDevices,
dl_deviceType  deviceType
 

Definition at line 52 of file DeviceList.cpp.

References m_deviceType, m_directShow, and m_totalDevices.

Referenced by CVideoDemoApp::InitInstance().

00053 {
00054         m_directShow = directShow;
00055         m_totalDevices = totalDevices;
00056         m_deviceType = deviceType;
00057 }


Member Data Documentation

CComboBox m_deviceList
 

Definition at line 26 of file DeviceList.h.

Referenced by DoDataExchange(), and OnSelchangeCOMBOList().

CStatic m_deviceText
 

Definition at line 25 of file DeviceList.h.

Referenced by DoDataExchange().

dl_deviceType m_deviceType [protected]
 

Definition at line 43 of file DeviceList.h.

Referenced by setDirectShow().

MPDirectShow* m_directShow [protected]
 

Definition at line 41 of file DeviceList.h.

Referenced by DoDataExchange(), OnSelchangeCOMBOList(), and setDirectShow().

int m_totalDevices [protected]
 

Definition at line 42 of file DeviceList.h.

Referenced by setDirectShow().


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