io_ply.h
Go to the documentation of this file.
00001 /****************************************************************************
00002 * VCGLib                                                            o o     *
00003 * Visual and Computer Graphics Library                            o     o   *
00004 *                                                                _   O  _   *
00005 * Copyright(C) 2004                                                \/)\/    *
00006 * Visual Computing Lab                                            /\/|      *
00007 * ISTI - Italian National Research Council                           |      *
00008 *                                                                    \      *
00009 * All rights reserved.                                                      *
00010 *                                                                           *
00011 * This program is free software; you can redistribute it and/or modify      *   
00012 * it under the terms of the GNU General Public License as published by      *
00013 * the Free Software Foundation; either version 2 of the License, or         *
00014 * (at your option) any later version.                                       *
00015 *                                                                           *
00016 * This program is distributed in the hope that it will be useful,           *
00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of            *
00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
00019 * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)          *
00020 * for more details.                                                         *
00021 *                                                                           *
00022 ****************************************************************************/
00023 /****************************************************************************
00024   History
00025 
00026 $Log: not supported by cvs2svn $
00027 Revision 1.3  2004/05/12 10:19:30  ganovelli
00028 new line added at the end of file
00029 
00030 Revision 1.2  2004/03/09 21:26:47  cignoni
00031 cr lf mismatch
00032 
00033 Revision 1.1  2004/03/08 09:21:34  cignoni
00034 Initial commit
00035 
00036 Revision 1.1  2004/03/03 15:00:51  cignoni
00037 Initial commit
00038 
00039 ****************************************************************************/
00040 #ifndef __VCGLIB_IOTRIMESH_IO_PLY
00041 #define __VCGLIB_IOTRIMESH_IO_PLY
00042 
00043 
00048 #include<wrap/callback.h>
00049 #include<wrap/ply/plylib.h>
00050 
00051 namespace vcg {
00052 namespace tri {
00053 namespace io {
00054 
00055   
00062 class PlyInfo
00063 {
00064 public:
00065   typedef ::vcg::ply::PropDescriptor PropDescriptor ;
00066 
00067   PlyInfo()
00068   {
00069     status=0;
00070     mask=0;
00071     cb=0;
00072     vdn=fdn=0;
00073     VertexData=FaceData=0;
00074   }
00076   int status;
00078   int mask;  
00079 
00081   // it returns the current position, and formats a string with a description of what th efunction is doing (loading vertexes, faces...)
00082   CallBackPos *cb;
00083 
00085   int vdn;
00087   PropDescriptor *VertexData;
00089   int fdn;
00090   
00092   PropDescriptor *FaceData;
00093 
00095   std::string header;
00096 
00097 enum Error
00098 {
00099                 // Funzioni superiori
00100   E_NO_VERTEX       = ply::E_MAXPLYERRORS+1,                    // 14
00101         E_NO_FACE         = ply::E_MAXPLYERRORS+2,                              // 15
00102         E_SHORTFILE       = ply::E_MAXPLYERRORS+3,                      // 16
00103         E_NO_3VERTINFACE  = ply::E_MAXPLYERRORS+4,              // 17
00104         E_BAD_VERT_INDEX  = ply::E_MAXPLYERRORS+5,              // 18
00105         E_NO_6TCOORD      = ply::E_MAXPLYERRORS+6,                      // 19
00106         E_DIFFER_COLORS   = ply::E_MAXPLYERRORS+7,      
00107         E_BAD_VERT_INDEX_EDGE  = ply::E_MAXPLYERRORS+8,         // 18
00108   E_MAXPLYINFOERRORS= ply::E_MAXPLYERRORS+9// 20
00109 };
00110 
00111 }; // end class
00112 } // end namespace tri
00113 } // end namespace io
00114 } // end namespace vcg
00115 #endif


shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:32:10