vtksdidoc.cpp

来自「a very goog book」· C++ 代码 · 共 100 行

CPP
100
字号
/*=========================================================================  Program:   Visualization Toolkit  Module:    $RCSfile: vtkSDIDoc.cpp,v $  Language:  C++  Date:      $Date: 2002/08/29 12:18:33 $  Version:   $Revision: 1.1 $  Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen   All rights reserved.  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.     This software is distributed WITHOUT ANY WARRANTY; without even      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      PURPOSE.  See the above copyright notice for more information.=========================================================================*/#include "stdafx.h"#include "vtkSDI.h"#include "vtkSDIDoc.h"#ifdef _DEBUG#define new DEBUG_NEW#undef THIS_FILEstatic char THIS_FILE[] = __FILE__;#endif/////////////////////////////////////////////////////////////////////////////// CVtkSDIDocIMPLEMENT_DYNCREATE(CVtkSDIDoc, CDocument)BEGIN_MESSAGE_MAP(CVtkSDIDoc, CDocument)  //{{AFX_MSG_MAP(CVtkSDIDoc)    // NOTE - the ClassWizard will add and remove mapping macros here.    //    DO NOT EDIT what you see in these blocks of generated code!  //}}AFX_MSG_MAPEND_MESSAGE_MAP()/////////////////////////////////////////////////////////////////////////////// CVtkSDIDoc construction/destructionCVtkSDIDoc::CVtkSDIDoc(){  // TODO: add one-time construction code here}CVtkSDIDoc::~CVtkSDIDoc(){}BOOL CVtkSDIDoc::OnNewDocument(){  if (!CDocument::OnNewDocument())    return FALSE;  // TODO: add reinitialization code here  // (SDI documents will reuse this document)  return TRUE;}/////////////////////////////////////////////////////////////////////////////// CVtkSDIDoc serializationvoid CVtkSDIDoc::Serialize(CArchive& ar){  if (ar.IsStoring())  {    // TODO: add storing code here  }  else  {    // TODO: add loading code here  }}/////////////////////////////////////////////////////////////////////////////// CVtkSDIDoc diagnostics#ifdef _DEBUGvoid CVtkSDIDoc::AssertValid() const{  CDocument::AssertValid();}void CVtkSDIDoc::Dump(CDumpContext& dc) const{  CDocument::Dump(dc);}#endif //_DEBUG/////////////////////////////////////////////////////////////////////////////// CVtkSDIDoc commands

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?