amuggridreader.hh

Go to the documentation of this file.
00001 #ifndef DUNE_AMIRAMESH_UGGRID_READER_HH
00002 #define DUNE_AMIRAMESH_UGGRID_READER_HH
00003 
00010 #include <dune/grid/uggrid.hh>
00011 #include <dune/grid/io/file/amirameshreader.hh>
00012 
00013 
00014 class AmiraMesh;
00015 
00016 namespace Dune {
00017 
00020     template<>
00021     class AmiraMeshReader<UGGrid<3> > {
00022         
00023     public:
00024 
00026         static void read(UGGrid<3>& grid, 
00027                           const std::string& filename);
00028 
00050         static void read(UGGrid<3>& grid, 
00051                          const std::string& gridFilename,
00052                          const std::string& domainFilename);
00053 
00054     protected:
00055 
00056         static void createDomain(UGGrid<3>& grid,
00057                                  const std::string& filename);
00058 
00059         static void buildGrid(UGGrid<3>& grid, 
00060                               AmiraMesh* am);
00061 
00062     };
00063 
00064 
00065 
00073     template<>
00074     class AmiraMeshReader<UGGrid<2> > {
00075         
00076     public:
00077 
00079         static void read(UGGrid<2>& grid, 
00080                           const std::string& filename);
00081 
00093         static void read(UGGrid<2>& grid, 
00094                          const std::string& gridFilename,
00095                          const std::string& domainFilename) {
00096             DUNE_THROW(NotImplemented, "No AmiraMesh-reading for 2d parametrized boundaries!");
00097         }
00098 
00099     };
00100 
00101 }   // end namespace Dune
00102 
00103 
00104 #endif

Generated on 6 Nov 2008 with Doxygen (ver 1.5.6) [logfile].