+++ /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*/// StereoGRDoc.cpp : implementation of the CStereoGRDoc class\r
-//\r
-\r
-#include "stdafx.h"\r
-#include "StereoGR.h"\r
-\r
-#include "StereoGRDoc.h"\r
-#include "PGControl.h"\r
-#include "PTGrey.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
-/////////////////////////////////////////////////////////////////////////////\r
-// CStereoGRDoc\r
-\r
-IMPLEMENT_DYNCREATE(CStereoGRDoc, CDocument)\r
-\r
-BEGIN_MESSAGE_MAP(CStereoGRDoc, CDocument)\r
- //{{AFX_MSG_MAP(CStereoGRDoc)\r
- // NOTE - the ClassWizard will add and remove mapping macros here.\r
- // DO NOT EDIT what you see in these blocks of generated code!\r
- //}}AFX_MSG_MAP\r
-END_MESSAGE_MAP()\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// CStereoGRDoc construction/destruction\r
-\r
-CStereoGRDoc::CStereoGRDoc()\r
-{\r
- CStereoGRApp* app = (CStereoGRApp*)AfxGetApp();\r
- m_docType = app->GetDocType();\r
-}\r
-\r
-CStereoGRDoc::~CStereoGRDoc()\r
-{\r
- PTGreySelectDataType(m_docType, 0);\r
-}\r
-\r
-BOOL CStereoGRDoc::OnNewDocument()\r
-{\r
- if (!CDocument::OnNewDocument())\r
- return FALSE;\r
-\r
- // TODO: add reinitialization code here\r
- // (SDI documents will reuse this document)\r
-\r
- return TRUE;\r
-}\r
-\r
-\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// CStereoGRDoc serialization\r
-\r
-void CStereoGRDoc::Serialize(CArchive& ar)\r
-{\r
- if (ar.IsStoring())\r
- {\r
- // TODO: add storing code here\r
- }\r
- else\r
- {\r
- // TODO: add loading code here\r
- }\r
-}\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// CStereoGRDoc diagnostics\r
-\r
-#ifdef _DEBUG\r
-void CStereoGRDoc::AssertValid() const\r
-{\r
- CDocument::AssertValid();\r
-}\r
-\r
-void CStereoGRDoc::Dump(CDumpContext& dc) const\r
-{\r
- CDocument::Dump(dc);\r
-}\r
-#endif //_DEBUG\r
-\r
-/////////////////////////////////////////////////////////////////////////////\r
-// CStereoGRDoc commands\r
-\r
-void CStereoGRDoc::SetDocType(int docType)\r
-{\r
- m_docType = docType;\r
- if(IS_PTGREY_DATATYPE(docType))\r
- SetTitle(PT_IMAGE_NAME(docType));\r
- else\r
- switch(docType)\r
- {\r
- case GR_MASK_VIEW:\r
- SetTitle("Mask view");\r
- break;\r
-\r
- case GR_MAGICCUBE:\r
- SetTitle("3D view");\r
- break;\r
- }\r
-\r
-}\r
-\r
-void CStereoGRDoc::Initialize()\r
-{\r
- SetDocType(m_docType);\r
- if(IS_PTGREY_DATATYPE(m_docType))\r
- PTGreySelectDataType(m_docType, 1);\r
-}\r
-\r
-int CStereoGRDoc::GetDocType()\r
-{\r
- return m_docType;\r
-}\r
-\r
-BOOL CStereoGRDoc::CanCloseFrame(CFrameWnd* pFrame) \r
-{\r
- return FALSE; \r
- return CDocument::CanCloseFrame(pFrame);\r
-}\r