H2DReader Class Reference
[Mesh loaders]
Mesh loader from Hermes2D format.
More...
#include <h2d_reader.h>
Inherits MeshLoader.
List of all members.
Public Member Functions |
| | H2DReader () |
| virtual | ~H2DReader () |
| virtual bool | load (const char *file_name, Mesh *mesh) |
| | Loads the mesh from a file. Aborts the program on error.
|
| virtual bool | save (const char *file_name, Mesh *mesh) |
| void | load_old (const char *filename, Mesh *mesh) |
| void | load_str (char *mesh_str, Mesh *mesh) |
| void | load_stream (FILE *f, Mesh *mesh) |
Protected Member Functions |
| Nurbs * | load_nurbs_old (Mesh *mesh, FILE *f, Node **en, int &p1, int &p2) |
| Nurbs * | load_nurbs (Mesh *mesh, MItem *curve, int id, Node **en, int &p1, int &p2) |
| void | save_refinements (Mesh *mesh, FILE *f, Element *e, int id, bool &first) |
| void | save_nurbs (Mesh *mesh, FILE *f, int p1, int p2, Nurbs *nurbs) |
Detailed Description
Mesh loader from Hermes2D format.
Constructor & Destructor Documentation
| H2DReader::~H2DReader |
( |
|
) |
[virtual] |
Member Function Documentation
| bool H2DReader::load |
( |
const char * |
file_name, |
|
|
Mesh * |
mesg | |
|
) |
| | [virtual] |
Loads the mesh from a file. Aborts the program on error.
- Parameters:
-
| filename | [in] The name of the file. |
| mesh | [out] The mesh. |
Implements MeshLoader.
| Nurbs * H2DReader::load_nurbs |
( |
Mesh * |
mesh, |
|
|
MItem * |
curve, |
|
|
int |
id, |
|
|
Node ** |
en, |
|
|
int & |
p1, |
|
|
int & |
p2 | |
|
) |
| | [protected] |
| Nurbs * H2DReader::load_nurbs_old |
( |
Mesh * |
mesh, |
|
|
FILE * |
f, |
|
|
Node ** |
en, |
|
|
int & |
p1, |
|
|
int & |
p2 | |
|
) |
| | [protected] |
| void H2DReader::load_old |
( |
const char * |
filename, |
|
|
Mesh * |
mesh | |
|
) |
| | |
| void H2DReader::load_str |
( |
char * |
mesh_str, |
|
|
Mesh * |
mesh | |
|
) |
| | |
| void H2DReader::load_stream |
( |
FILE * |
f, |
|
|
Mesh * |
mesh | |
|
) |
| | |
| bool H2DReader::save |
( |
const char * |
file_name, |
|
|
Mesh * |
mesh | |
|
) |
| | [virtual] |
| void H2DReader::save_nurbs |
( |
Mesh * |
mesh, |
|
|
FILE * |
f, |
|
|
int |
p1, |
|
|
int |
p2, |
|
|
Nurbs * |
nurbs | |
|
) |
| | [protected] |
| void H2DReader::save_refinements |
( |
Mesh * |
mesh, |
|
|
FILE * |
f, |
|
|
Element * |
e, |
|
|
int |
id, |
|
|
bool & |
first | |
|
) |
| | [protected] |
The documentation for this class was generated from the following files: