Move the sources to trunk
[opencv] / apps / HMMDemo / SamplingParams.cpp
1 // SamplingParams.cpp : implementation file
2 //
3
4 #include "stdafx.h"
5 #include "hmmdemo.h"
6 #include "SamplingParams.h"
7
8 #ifdef _DEBUG
9 #define new DEBUG_NEW
10 #undef THIS_FILE
11 static char THIS_FILE[] = __FILE__;
12 #endif
13
14 /////////////////////////////////////////////////////////////////////////////
15 // CSamplingParams property page
16
17 IMPLEMENT_DYNCREATE(CSamplingParams, CPropertyPage)
18
19 CSamplingParams::CSamplingParams() : CPropertyPage(CSamplingParams::IDD)
20 {
21         //{{AFX_DATA_INIT(CSamplingParams)
22                 // NOTE: the ClassWizard will add member initialization here
23         //}}AFX_DATA_INIT
24
25     m_delta = cvSize( 4, 4 );
26     m_obsSize = cvSize( 3, 3 );
27     m_dctSize = cvSize( 12, 12 );
28
29 }
30
31 CSamplingParams::~CSamplingParams()
32 {
33 }
34
35 void CSamplingParams::DoDataExchange(CDataExchange* pDX)
36 {
37         CPropertyPage::DoDataExchange(pDX);
38         //{{AFX_DATA_MAP(CSamplingParams)
39                 DDX_Text(pDX, IDC_DCT_WIDTH, m_dctSize.width);
40         DDX_Text(pDX, IDC_DCT_HEIGHT, m_dctSize.height);
41         DDX_Text(pDX, IDC_DELTA_WIDTH, m_delta.width);
42         DDX_Text(pDX, IDC_DELTA_HEIGHT, m_delta.height);
43         DDX_Text(pDX, IDC_OBS_WIDTH, m_obsSize.width);
44         DDX_Text(pDX, IDC_OBS_HEIGHT, m_obsSize.height);
45         //}}AFX_DATA_MAP
46 }
47
48
49 BEGIN_MESSAGE_MAP(CSamplingParams, CPropertyPage)
50         //{{AFX_MSG_MAP(CSamplingParams)
51         //}}AFX_MSG_MAP
52 END_MESSAGE_MAP()
53
54 /////////////////////////////////////////////////////////////////////////////
55 // CSamplingParams message handlers
56
57 BOOL CSamplingParams::OnInitDialog() 
58 {
59         CPropertyPage::OnInitDialog();
60         
61         // TODO: Add extra initialization here
62         
63         return TRUE;  // return TRUE unless you set the focus to a control
64                       // EXCEPTION: OCX Property Pages should return FALSE
65 }