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

SaveVideo Class Reference

#include <SaveVideo.h>

Collaboration diagram for SaveVideo:

Collaboration graph
[legend]
List of all members.

Public Types

enum  { IDD = IDD_SAVEVIDEO }

Public Member Functions

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

Public Attributes

CButton m_pause
CButton m_resume
CButton m_save
CButton m_stop

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
afx_msg void OnFileSavevideo ()
afx_msg void OnPause ()
afx_msg void OnResume ()
afx_msg void OnSave ()
afx_msg void OnStop ()

Protected Attributes

MPDirectShowm_directShow

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
IDD 

Definition at line 23 of file SaveVideo.h.

00023 { IDD = IDD_SAVEVIDEO };


Constructor & Destructor Documentation

SaveVideo CWnd *  pParent = NULL  ) 
 

Definition at line 18 of file SaveVideo.cpp.

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


Member Function Documentation

void DoDataExchange CDataExchange *  pDX  )  [protected, virtual]
 

Definition at line 27 of file SaveVideo.cpp.

References ds_capture, ds_pause, ds_stop, FALSE, m_directShow, m_pause, MPDirectShow::m_recordMode, m_resume, m_save, m_stop, and TRUE.

00028 {
00029         CDialog::DoDataExchange(pDX);
00030         //{{AFX_DATA_MAP(SaveVideo)
00031         DDX_Control(pDX, ID_PAUSE, m_pause);
00032         DDX_Control(pDX, ID_RESUME, m_resume);
00033         DDX_Control(pDX, ID_STOP, m_stop);
00034         DDX_Control(pDX, ID_SAVE, m_save);
00035         //}}AFX_DATA_MAP
00036 
00037         switch (m_directShow->m_recordMode) {
00038         case ds_stop:
00039                 break;
00040         case ds_pause:
00041                 m_save.EnableWindow(FALSE);
00042                 m_resume.EnableWindow(TRUE);
00043                 m_stop.EnableWindow(TRUE);
00044                 break;
00045         case ds_capture:
00046                 m_save.EnableWindow(FALSE);
00047                 m_pause.EnableWindow(TRUE);
00048                 m_stop.EnableWindow(TRUE);
00049                 break;
00050         default:
00051                 break;
00052         }
00053 }

void OnFileSavevideo  )  [protected]
 

Definition at line 74 of file SaveVideo.cpp.

00075 {
00076         // TODO: Add your command handler code here
00077         
00078 }

void OnPause  )  [protected]
 

Definition at line 88 of file SaveVideo.cpp.

References FALSE, m_directShow, m_pause, m_resume, MPDirectShow::PauseFilter(), and TRUE.

00089 {
00090         m_directShow->PauseFilter();
00091         m_pause.EnableWindow(FALSE);
00092         m_resume.EnableWindow(TRUE);
00093         
00094 }

Here is the call graph for this function:

void OnResume  )  [protected]
 

Definition at line 80 of file SaveVideo.cpp.

References FALSE, m_directShow, m_pause, m_resume, MPDirectShow::RunFilter(), and TRUE.

00081 {
00082         m_directShow->RunFilter();
00083         m_pause.EnableWindow(TRUE);
00084         m_resume.EnableWindow(FALSE);
00085         
00086 }

Here is the call graph for this function:

void OnSave  )  [protected]
 

Definition at line 96 of file SaveVideo.cpp.

References FALSE, m_directShow, m_pause, m_save, m_stop, MPDirectShow::SaveVideo(), and TRUE.

00097 {
00098         if(FAILED(m_directShow->SaveVideo()))
00099                 return;
00100         m_save.EnableWindow(FALSE);
00101         m_pause.EnableWindow(TRUE);
00102         m_stop.EnableWindow(TRUE);
00103         
00104 }

Here is the call graph for this function:

void OnStop  )  [protected]
 

Definition at line 106 of file SaveVideo.cpp.

References FALSE, m_directShow, m_pause, m_save, m_stop, MPDirectShow::StopCapture(), and TRUE.

00107 {
00108         m_directShow->StopCapture();
00109         m_save.EnableWindow(TRUE);
00110         m_pause.EnableWindow(FALSE);
00111         m_stop.EnableWindow(FALSE);
00112         
00113 }

Here is the call graph for this function:

void setDirectShow MPDirectShow directShow  ) 
 

Definition at line 69 of file SaveVideo.cpp.

References m_directShow.

Referenced by CVideoDemoApp::OnFileSavevideo().

00070 {
00071         m_directShow = directShow;
00072 }


Member Data Documentation

MPDirectShow* m_directShow [protected]
 

Definition at line 40 of file SaveVideo.h.

Referenced by DoDataExchange(), OnPause(), OnResume(), OnSave(), and OnStop().

CButton m_pause
 

Definition at line 24 of file SaveVideo.h.

Referenced by DoDataExchange(), OnPause(), OnResume(), OnSave(), and OnStop().

CButton m_resume
 

Definition at line 25 of file SaveVideo.h.

Referenced by DoDataExchange(), OnPause(), and OnResume().

CButton m_save
 

Definition at line 27 of file SaveVideo.h.

Referenced by DoDataExchange(), OnSave(), and OnStop().

CButton m_stop
 

Definition at line 26 of file SaveVideo.h.

Referenced by DoDataExchange(), OnSave(), and OnStop().


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