X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fdocs.cpp;h=ae82675c555745862df9479fc256aa1b51eb48a9;hb=f692b2d39f56ffbafc04283f32233c098aa2978b;hp=c9f2b3ff0af45bfbb01e3998274fc267a4bf7c42;hpb=ba8635d790ee847d9746c6da24b60bd4cb6d9116;p=ctsim.git diff --git a/src/docs.cpp b/src/docs.cpp index c9f2b3f..ae82675 100644 --- a/src/docs.cpp +++ b/src/docs.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (c) 1983-2001 Kevin Rosenberg ** -** $Id: docs.cpp,v 1.19 2001/01/30 07:32:13 kevin Exp $ +** $Id: docs.cpp,v 1.22 2001/02/02 00:46:38 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -371,8 +371,21 @@ TextFileDocument::getTextCtrl() // ////////////////////////////////////////////////////////////////////////// +#if wxUSE_GLCANVAS + IMPLEMENT_DYNAMIC_CLASS(Graph3dFileDocument, wxDocument) +Graph3dFileDocument::Graph3dFileDocument(void) +: m_bBadFileOpen(false), m_nVertices(0), m_pVertices(0), m_pNormals(0),m_nx(0),m_ny(0),m_array(0) +{ +} + +Graph3dFileDocument::~Graph3dFileDocument() +{ +// delete [] m_pVertices; +// delete [] m_pNormals; +} + bool Graph3dFileDocument::OnSaveDocument(const wxString& filename) { @@ -403,3 +416,18 @@ Graph3dFileDocument::getView() const return dynamic_cast(GetFirstView()); } +bool +Graph3dFileDocument::createFromImageFile (const ImageFile& rImageFile) +{ +// delete [] m_pVertices; +// delete [] m_pNormals; + + + m_nx = rImageFile.nx(); + m_ny = rImageFile.ny(); + m_array = rImageFile.getArray(); + + return true; +} + +#endif // wxUSE_GLCANVAS \ No newline at end of file