dune-grid  2.2.0
simplexgeneration.hh
Go to the documentation of this file.
00001 #ifndef DUNE_DGF_SIMPLEXGENERATIONBLOCK_HH
00002 #define DUNE_DGF_SIMPLEXGENERATIONBLOCK_HH
00003 
00004 #include <iostream>
00005 
00006 #include <dune/grid/io/file/dgfparser/blocks/basic.hh>
00007 
00008 namespace Dune
00009 {
00010 
00011   namespace dgf
00012   {
00013 
00014     class SimplexGenerationBlock
00015     : public BasicBlock
00016     {
00017       double area_;
00018       double angle_;
00019       bool display_;
00020       std::string path_;
00021       bool haspath_;
00022       std::string filename_;
00023       std::string filetype_;
00024       std::string parameter_;
00025       std::string dumpfilename_;
00026       bool hasfile_;
00027       int dimension_;
00028 
00029     public:
00030       SimplexGenerationBlock ( std :: istream &in );
00031 
00032       double maxArea ()
00033       {
00034         return area_;
00035       }
00036 
00037       double minAngle ()
00038       {
00039         return angle_;
00040       }
00041 
00042       bool display ()
00043       {
00044         return display_;
00045       }
00046 
00047       bool haspath ()
00048       {
00049         return haspath_;
00050       }
00051 
00052       std :: string path ()
00053       {
00054         return path_;
00055       }
00056 
00057       bool hasfile ()
00058       {
00059         return hasfile_;
00060       }
00061 
00062       std :: string filename ()
00063       {
00064         return filename_;
00065       }
00066 
00067       std :: string filetype ()
00068       {
00069         return filetype_;
00070       }
00071 
00072       int dimension ()
00073       {
00074         return dimension_;
00075       }
00076 
00077       std :: string parameter ()
00078       {
00079         return parameter_;
00080       }
00081 
00082       const std::string dumpFileName ( ) const
00083       {
00084         return dumpfilename_;
00085       }
00086     };
00087 
00088   } // end namespace dgf
00089 
00090 } // end namespace Dune
00091 
00092 #endif
00093