Base class for reading a mesh from a file. More...
#include <meshImport.hh>


Public Member Functions | |
| ImportMesh (const uint idxStart=1) | |
| Constructor. | |
| virtual | ~ImportMesh () |
Protected Member Functions | |
| template<class T > | |
| void | clear_ (std::vector< T * > &field) |
Deletes the content of field of pointers. | |
| virtual void | createCell_ (const MultiIndex< 2 > &idx) throw (concepts::MissingFeature) |
| Creation of geometrical cells with element mapping. | |
| virtual void | createCell_ (const MultiIndex< 3 > &idx) throw (concepts::MissingFeature) |
| virtual void | createCell_ (const MultiIndex< 4 > &idx) throw (concepts::MissingFeature) |
| virtual void | createCell_ (const MultiIndex< 6 > &idx) throw (concepts::MissingFeature) |
| virtual void | createCell_ (const MultiIndex< 8 > &idx) throw (concepts::MissingFeature) |
| virtual void | createEntity_ (const MultiIndex< 4 > &idx) throw (concepts::MissingFeature) |
| virtual void | createEntity_ (const MultiIndex< 2 > &idx) |
| virtual void | createEntity_ (const MultiIndex< 6 > &idx) throw (concepts::MissingFeature) |
| virtual void | createEntity_ (const MultiIndex< 1 > &idx) |
| Creation of topological entities Vertex and Edge. | |
| virtual void | createEntity_ (const MultiIndex< 8 > &idx) throw (concepts::MissingFeature) |
| virtual void | createEntity_ (const MultiIndex< 3 > &idx) throw (concepts::MissingFeature) |
| Creation of topological entities. | |
| template<uint dim> | |
| void | newCell_ (MultiIndex< dim > i) |
| Creates topological entities and a geometrical cell. | |
| void | readAttributes_ (const std::string &bound, const Array< bool > &dimensions) |
| void | readCells_ (const std::string &elms, const Array< bool > &dimensions, const std::vector< Real3d > &vertices) |
| Reads the file with cell information and creates topological entities and geometrical cells. | |
| uint | readInts_ (const std::string &i, std::vector< int > &v) const |
| Reads integers from the string. | |
| template<class F > | |
| uint | readLine_ (const std::string &i, Array< F > &a, bool first=false) const |
| Reads line of numbers from the string. | |
Protected Attributes | |
| std::vector< Connector1 * > | edg_ |
| MultiArray< 2, Edge * > | Edg_ |
| MultiArray< 8, Attribute > | eightAttr_ |
| MultiArray< 4, Attribute > | fourAttr_ |
| const uint | idxStart_ |
| Starting point of indices in the files (1 or 0) | |
| MultiArray< 1, Attribute > | oneAttr_ |
| Attributes of entities. | |
| MultiArray< 6, Attribute > | sixAttr_ |
| MultiArray< 3, Attribute > | threeAttr_ |
| MultiArray< 2, Attribute > | twoAttr_ |
| MultiArray< 1, Vertex * > | Vtx_ |
| Array of the entities. | |
| std::vector< Vertex * > | vtx_ |
| List of entities. | |
Base class for reading a mesh from a file.
The orientation of the edges is determined by the order of the vertices in the coordinate file, i.e. the first vertex in the coordinate file is the first vertex of the edge.
Definition at line 27 of file meshImport.hh.
| concepts::ImportMesh::ImportMesh | ( | const uint | idxStart = 1 | ) | [inline] |
Constructor.
| idxStart | Starting point of indices in the files (1 or 0) |
Definition at line 32 of file meshImport.hh.
| virtual concepts::ImportMesh::~ImportMesh | ( | ) | [virtual] |
| void concepts::ImportMesh::clear_ | ( | std::vector< T * > & | field | ) | [protected] |
Deletes the content of field of pointers.
Definition at line 136 of file meshImport.hh.
| virtual void concepts::ImportMesh::createCell_ | ( | const MultiIndex< 2 > & | idx | ) | throw (concepts::MissingFeature) [protected, virtual] |
Creation of geometrical cells with element mapping.
Has to be implemented in derivated classes.
| virtual void concepts::ImportMesh::createCell_ | ( | const MultiIndex< 3 > & | idx | ) | throw (concepts::MissingFeature) [protected, virtual] |
Reimplemented in concepts::Import2dMeshBase, and concepts::Import2dMeshGeneral.
| virtual void concepts::ImportMesh::createCell_ | ( | const MultiIndex< 4 > & | idx | ) | throw (concepts::MissingFeature) [protected, virtual] |
Reimplemented in concepts::Import2dMeshBase, and concepts::Import2dMeshGeneral.
| virtual void concepts::ImportMesh::createCell_ | ( | const MultiIndex< 6 > & | idx | ) | throw (concepts::MissingFeature) [protected, virtual] |
| virtual void concepts::ImportMesh::createCell_ | ( | const MultiIndex< 8 > & | idx | ) | throw (concepts::MissingFeature) [protected, virtual] |
| virtual void concepts::ImportMesh::createEntity_ | ( | const MultiIndex< 4 > & | idx | ) | throw (concepts::MissingFeature) [protected, virtual] |
Reimplemented in concepts::Import2dMeshBase, and concepts::Import2dMeshGeneral.
| virtual void concepts::ImportMesh::createEntity_ | ( | const MultiIndex< 2 > & | idx | ) | [protected, virtual] |
Reimplemented in concepts::Import2dMeshBase, and concepts::Import2dMeshGeneral.
| virtual void concepts::ImportMesh::createEntity_ | ( | const MultiIndex< 6 > & | idx | ) | throw (concepts::MissingFeature) [protected, virtual] |
| virtual void concepts::ImportMesh::createEntity_ | ( | const MultiIndex< 1 > & | idx | ) | [protected, virtual] |
Creation of topological entities Vertex and Edge.
Reimplemented in concepts::Import2dMeshBase, and concepts::Import2dMeshGeneral.
| virtual void concepts::ImportMesh::createEntity_ | ( | const MultiIndex< 8 > & | idx | ) | throw (concepts::MissingFeature) [protected, virtual] |
| virtual void concepts::ImportMesh::createEntity_ | ( | const MultiIndex< 3 > & | idx | ) | throw (concepts::MissingFeature) [protected, virtual] |
Creation of topological entities.
Has to be implemented in derivated classes.
Reimplemented in concepts::Import2dMeshBase, and concepts::Import2dMeshGeneral.
| void concepts::ImportMesh::newCell_ | ( | MultiIndex< dim > | i | ) | [protected] |
Creates topological entities and a geometrical cell.
| void concepts::ImportMesh::readAttributes_ | ( | const std::string & | bound, |
| const Array< bool > & | dimensions | ||
| ) | [protected] |
| void concepts::ImportMesh::readCells_ | ( | const std::string & | elms, |
| const Array< bool > & | dimensions, | ||
| const std::vector< Real3d > & | vertices | ||
| ) | [protected] |
Reads the file with cell information and creates topological entities and geometrical cells.
| uint concepts::ImportMesh::readInts_ | ( | const std::string & | i, |
| std::vector< int > & | v | ||
| ) | const [protected] |
Reads integers from the string.
| uint concepts::ImportMesh::readLine_ | ( | const std::string & | i, |
| Array< F > & | a, | ||
| bool | first = false |
||
| ) | const [protected] |
Reads line of numbers from the string.
| i | String |
| a | resulting array of integers |
| first | flag, if the first integer should be taken into the array |
Definition at line 118 of file meshImport.hh.

std::vector<Connector1*> concepts::ImportMesh::edg_ [protected] |
Definition at line 42 of file meshImport.hh.
MultiArray<2, Edge*> concepts::ImportMesh::Edg_ [protected] |
Definition at line 45 of file meshImport.hh.
MultiArray<8, Attribute> concepts::ImportMesh::eightAttr_ [protected] |
Definition at line 53 of file meshImport.hh.
MultiArray<4, Attribute> concepts::ImportMesh::fourAttr_ [protected] |
Definition at line 51 of file meshImport.hh.
const uint concepts::ImportMesh::idxStart_ [protected] |
Starting point of indices in the files (1 or 0)
Definition at line 38 of file meshImport.hh.
MultiArray<1, Attribute> concepts::ImportMesh::oneAttr_ [protected] |
Attributes of entities.
Definition at line 48 of file meshImport.hh.
MultiArray<6, Attribute> concepts::ImportMesh::sixAttr_ [protected] |
Definition at line 52 of file meshImport.hh.
MultiArray<3, Attribute> concepts::ImportMesh::threeAttr_ [protected] |
Definition at line 50 of file meshImport.hh.
MultiArray<2, Attribute> concepts::ImportMesh::twoAttr_ [protected] |
Definition at line 49 of file meshImport.hh.
MultiArray<1, Vertex*> concepts::ImportMesh::Vtx_ [protected] |
Array of the entities.
Definition at line 44 of file meshImport.hh.
std::vector<Vertex*> concepts::ImportMesh::vtx_ [protected] |
List of entities.
Definition at line 41 of file meshImport.hh.