+++ /dev/null
-/*M///////////////////////////////////////////////////////////////////////////////////////\r
-//\r
-// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.\r
-//\r
-// By downloading, copying, installing or using the software you agree to this license.\r
-// If you do not agree to this license, do not download, install,\r
-// copy or use the software.\r
-//\r
-//\r
-// Intel License Agreement\r
-// For Open Source Computer Vision Library\r
-//\r
-// Copyright (C) 2000, Intel Corporation, all rights reserved.\r
-// Third party copyrights are property of their respective owners.\r
-//\r
-// Redistribution and use in source and binary forms, with or without modification,\r
-// are permitted provided that the following conditions are met:\r
-//\r
-// * Redistribution's of source code must retain the above copyright notice,\r
-// this list of conditions and the following disclaimer.\r
-//\r
-// * Redistribution's in binary form must reproduce the above copyright notice,\r
-// this list of conditions and the following disclaimer in the documentation\r
-// and/or other materials provided with the distribution.\r
-//\r
-// * The name of Intel Corporation may not be used to endorse or promote products\r
-// derived from this software without specific prior written permission.\r
-//\r
-// This software is provided by the copyright holders and contributors "as is" and\r
-// any express or implied warranties, including, but not limited to, the implied\r
-// warranties of merchantability and fitness for a particular purpose are disclaimed.\r
-// In no event shall the Intel Corporation or contributors be liable for any direct,\r
-// indirect, incidental, special, exemplary, or consequential damages\r
-// (including, but not limited to, procurement of substitute goods or services;\r
-// loss of use, data, or profits; or business interruption) however caused\r
-// and on any theory of liability, whether in contract, strict liability,\r
-// or tort (including negligence or otherwise) arising in any way out of\r
-// the use of this software, even if advised of the possibility of such damage.\r
-//\r
-//M*/// PTOptions.cpp : implementation file\r
-//\r
-\r
-#include "stdafx.h"\r
-#include "stereogr.h"\r
-#include "PTOptions.h"\r
-\r
-#ifdef _DEBUG\r
-#define new DEBUG_NEW\r
-#undef THIS_FILE\r
-static char THIS_FILE[] = __FILE__;\r
-#endif\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// CPTOptions property page\r
-\r
-IMPLEMENT_DYNCREATE(CPTOptions, CPropertyPage)\r
-\r
-CPTOptions::CPTOptions() : CPropertyPage(CPTOptions::IDD)\r
-{\r
- //{{AFX_DATA_INIT(CPTOptions)\r
- m_checkContours = FALSE;\r
- m_depthThresh = 0.0f;\r
- m_diffThresh = 0.0f;\r
- m_dispThresh = 0.0f;\r
- m_rawRes = 0;\r
- m_stereoRes = 0;\r
- m_maxDisp = 0;\r
- m_minDisp = 0;\r
- //}}AFX_DATA_INIT\r
-}\r
-\r
-CPTOptions::~CPTOptions()\r
-{\r
-}\r
-\r
-void CPTOptions::DoDataExchange(CDataExchange* pDX)\r
-{\r
- CPropertyPage::DoDataExchange(pDX);\r
- //{{AFX_DATA_MAP(CPTOptions)\r
- DDX_Check(pDX, IDC_CHECKCONTOUR, m_checkContours);\r
- DDX_Text(pDX, IDC_DEPTHTHRESH, m_depthThresh);\r
- DDX_Text(pDX, IDC_DIFFTHRESH, m_diffThresh);\r
- DDX_Text(pDX, IDC_DISPHRESH, m_dispThresh);\r
- DDX_Text(pDX, IDC_PTMAXDISP, m_maxDisp);\r
- DDX_Text(pDX, IDC_PTMINDISP, m_minDisp);\r
- //}}AFX_DATA_MAP\r
-}\r
-\r
-\r
-BEGIN_MESSAGE_MAP(CPTOptions, CPropertyPage)\r
- //{{AFX_MSG_MAP(CPTOptions)\r
- //}}AFX_MSG_MAP\r
-END_MESSAGE_MAP()\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// CPTOptions message handlers\r
-\r
-#define GET_CONTROL(t, o, r) t* o = (t*)GetDlgItem((r));\r
-BOOL CPTOptions::OnInitDialog() \r
-{\r
- CPropertyPage::OnInitDialog();\r
- \r
- GET_CONTROL(CComboBox, pStereoRes, IDC_PTSTEREORES);\r
- GET_CONTROL(CComboBox, pRawRes, IDC_PTRAWRES);\r
-\r
- pStereoRes->SetCurSel(m_stereoRes);\r
- pRawRes->SetCurSel(m_rawRes);\r
-\r
- return TRUE; // return TRUE unless you set the focus to a control\r
- // EXCEPTION: OCX Property Pages should return FALSE\r
-}\r
-\r
-void CPTOptions::OnOK() \r
-{\r
- GET_CONTROL(CComboBox, pStereoRes, IDC_PTSTEREORES);\r
- GET_CONTROL(CComboBox, pRawRes, IDC_PTRAWRES);\r
-\r
- m_stereoRes = pStereoRes->GetCurSel();\r
- m_rawRes = pRawRes->GetCurSel();\r
- \r
- CPropertyPage::OnOK();\r
-}\r