MC_io_off.hpp

Go to the documentation of this file.
00001 /*
00002 **    TP ETI3 CPE Lyon
00003 **    Copyright (C) 2009 Damien Rohmer
00004 **
00005 **    This program is free software: you can redistribute it and/or modify
00006 **    it under the terms of the GNU General Public License as published by
00007 **    the Free Software Foundation, either version 3 of the License, or
00008 **    (at your option) any later version.
00009 **
00010 **   This program is distributed in the hope that it will be useful,
00011 **    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 **    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 **    GNU General Public License for more details.
00014 **
00015 **    You should have received a copy of the GNU General Public License
00016 **    along with this program.  If not, see <http://www.gnu.org/licenses/>.
00017 */
00018 
00019 
00020 
00021 #ifndef _MC_IO_OFF_HPP_
00022 #define _MC_IO_OFF_HPP_
00023 
00024 #include <iostream>
00025 #include <fstream>
00026 
00027 namespace mesh_conv
00028 {
00029 
00030     class MC_v3d_vector;
00031 
00033     class MC_io_off
00034     {
00035 
00036     public:
00037 
00040         static std::pair <std::vector<double>,std::vector<int> > read_off(std::istream& stream);
00043         static std::pair <std::vector<double>,std::vector<int> > read_off_file(const std::string& string_file);
00044 
00046         static std::ostream& write_off(std::ostream& stream,const std::vector<double>& vertex,const std::vector<int>& connectivity);
00048         static void write_off_file(const std::string& string_file,const std::vector<double>& vertex,const std::vector<int>& connectivity);
00049 
00050 
00051     private:
00052 
00053     };
00054 }
00055 
00056 #endif

Generated on Wed Nov 11 17:13:42 2009 by  doxygen 1.6.1