MeshOutput Class Reference

A class for saving a BezierMesh and BoundaryMesh as a quartet of text files. More...

#include </usr1/tp517/Tumble/trunk/src/tumble/meshio.h>

Collaboration diagram for MeshOutput:

[legend]
List of all members.

Public Member Functions

 MeshOutput (BezierMesh *_bezier_mesh, BoundaryMesh *_bdry_mesh)
bool write (const char *filename)

Private Member Functions

int node_to_file (ControlPoint cp, DataPoint dp)
int edge_to_file (BezierEdge *edge)
int ele_to_file (BezierTriangle *tri, BezierMesh *bezier_mesh)
int bdry_vert_to_file (BoundaryVertex *vert)
int bdry_edge_to_file (BoundaryEdge *edge)
int bdry_face_to_file (BoundaryFace *face)

Private Attributes

FILE * node_file
FILE * ele_file
FILE * edge_file
FILE * bdry_file
hashers::hash_map< ControlPoint,
unsigned, ControlPointHasher
node_hash
hashers::hash_map< BezierEdge *,
unsigned > 
bez_edge_hash
hashers::hash_map< BoundaryVertex *,
unsigned > 
bdry_vert_hash
hashers::hash_map< BoundaryEdge *,
unsigned > 
bdry_edge_hash
hashers::hash_map< BoundaryFace *,
unsigned > 
bdry_face_hash
BezierMeshbezier_mesh
BoundaryMeshbdry_mesh

Detailed Description

A class for saving a BezierMesh and BoundaryMesh as a quartet of text files.

The text file format specifies a quartet of files with respective extentions of ".bdry",".node",".edge", and ".ele"

See File Formats.

Definition at line 120 of file meshio.h.


Constructor & Destructor Documentation

MeshOutput::MeshOutput ( BezierMesh _bezier_mesh,
BoundaryMesh _bdry_mesh 
) [inline]

Definition at line 147 of file meshio.h.


Member Function Documentation

int MeshOutput::node_to_file ( ControlPoint  cp,
DataPoint  dp 
) [private]

Definition at line 492 of file meshio.C.

References node_file, node_hash, and TRUE.

Referenced by write().

int MeshOutput::edge_to_file ( BezierEdge edge  )  [private]

Definition at line 501 of file meshio.C.

References bdry_edge_hash, bez_edge_hash, edge_file, BezierEdge::is_boundary(), node_hash, and TRUE.

Referenced by write().

Here is the call graph for this function:

int MeshOutput::ele_to_file ( BezierTriangle tri,
BezierMesh bezier_mesh 
) [private]

Definition at line 520 of file meshio.C.

References bdry_face_hash, bez_edge_hash, ele_file, BezierTriangle::get_bdry_face_or_null(), BezierTriangle::get_edge(), BezierTriangle::is_inverted(), and TRUE.

Referenced by write().

Here is the call graph for this function:

int MeshOutput::bdry_vert_to_file ( BoundaryVertex vert  )  [private]

Definition at line 531 of file meshio.C.

References bdry_file, bdry_vert_hash, node_hash, and TRUE.

Referenced by write().

int MeshOutput::bdry_edge_to_file ( BoundaryEdge edge  )  [private]

Definition at line 537 of file meshio.C.

References bdry_edge_hash, bdry_file, and bdry_vert_hash.

Referenced by write().

int MeshOutput::bdry_face_to_file ( BoundaryFace face  )  [private]

Definition at line 559 of file meshio.C.

References bdry_edge_hash, bdry_face_hash, bdry_file, and TRUE.

Referenced by write().

bool MeshOutput::write ( const char *  filename  ) 

Definition at line 379 of file meshio.C.

References bdry_edge_hash, bdry_edge_to_file(), bdry_face_hash, bdry_face_to_file(), bdry_file, bdry_mesh, bdry_vert_hash, bdry_vert_to_file(), bez_edge_hash, bezier_mesh, edge_file, edge_to_file(), ele_file, ele_to_file(), CellComplex< Vertex, Edge, Face, Tuple >::get_edges_begin(), CellComplex< Vertex, Edge, Face, Tuple >::get_edges_end(), CellComplex< Vertex, Edge, Face, Tuple >::get_faces_begin(), CellComplex< Vertex, Edge, Face, Tuple >::get_faces_end(), CellComplex< Vertex, Edge, Face, Tuple >::get_vertices_begin(), CellComplex< Vertex, Edge, Face, Tuple >::get_vertices_end(), MAX_FILENAME, node_file, node_hash, and node_to_file().

Referenced by Simulation::to_text_file().

Here is the call graph for this function:


Member Data Documentation

FILE* MeshOutput::node_file [private]

Definition at line 122 of file meshio.h.

Referenced by node_to_file(), and write().

FILE* MeshOutput::ele_file [private]

Definition at line 123 of file meshio.h.

Referenced by ele_to_file(), and write().

FILE* MeshOutput::edge_file [private]

Definition at line 124 of file meshio.h.

Referenced by edge_to_file(), and write().

FILE* MeshOutput::bdry_file [private]

Definition at line 125 of file meshio.h.

Referenced by bdry_edge_to_file(), bdry_face_to_file(), bdry_vert_to_file(), and write().

hashers::hash_map<ControlPoint, unsigned, ControlPointHasher> MeshOutput::node_hash [private]

Definition at line 128 of file meshio.h.

Referenced by bdry_vert_to_file(), edge_to_file(), node_to_file(), and write().

hashers::hash_map<BezierEdge*, unsigned> MeshOutput::bez_edge_hash [private]

Definition at line 129 of file meshio.h.

Referenced by edge_to_file(), ele_to_file(), and write().

hashers::hash_map<BoundaryVertex*, unsigned> MeshOutput::bdry_vert_hash [private]

Definition at line 130 of file meshio.h.

Referenced by bdry_edge_to_file(), bdry_vert_to_file(), and write().

hashers::hash_map<BoundaryEdge*, unsigned> MeshOutput::bdry_edge_hash [private]

Definition at line 131 of file meshio.h.

Referenced by bdry_edge_to_file(), bdry_face_to_file(), edge_to_file(), and write().

hashers::hash_map<BoundaryFace*, unsigned> MeshOutput::bdry_face_hash [private]

Definition at line 132 of file meshio.h.

Referenced by bdry_face_to_file(), ele_to_file(), and write().

BezierMesh* MeshOutput::bezier_mesh [private]

Definition at line 144 of file meshio.h.

Referenced by write().

BoundaryMesh* MeshOutput::bdry_mesh [private]

Definition at line 145 of file meshio.h.

Referenced by write().


The documentation for this class was generated from the following files:
Generated on Mon May 24 09:53:34 2010 for TUMBLE by  doxygen 1.5.2