AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM > Class Template Reference

#include <AbstractTetrahedralMeshWriter.hpp>

Inheritance diagram for AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >:

Inheritance graph
[legend]
Collaboration diagram for AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 AbstractTetrahedralMeshWriter (const std::string &rDirectory, const std::string &rBaseName, const bool clearOutputDir=true)
virtual ~AbstractTetrahedralMeshWriter ()
std::string GetOutputDirectory ()
void SetNextNode (std::vector< double > nextNode)
virtual void SetNextElement (std::vector< unsigned > nextElement)
void SetNextBoundaryFace (std::vector< unsigned > nextFace)
virtual void WriteFiles ()=0
unsigned GetNumNodes ()
unsigned GetNumElements ()
unsigned GetNumBoundaryFaces ()
unsigned GetNumBoundaryEdges ()
void WriteFilesUsingMesh (AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > &rMesh)
void WriteFilesUsingMesh (const AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > &rMesh)
void WriteFilesUsingMeshReader (AbstractMeshReader< ELEMENT_DIM, SPACE_DIM > &rMeshReader)
void WriteFilesUsingMeshReader (AbstractMeshReader< ELEMENT_DIM, SPACE_DIM > &rMeshReader, const std::vector< unsigned > &rNodePermutation)

Protected Attributes

OutputFileHandlermpOutputFileHandler
std::string mBaseName
std::vector< std::vector
< double > > 
mNodeData
std::vector< std::vector
< unsigned > > 
mElementData
std::vector< std::vector
< unsigned > > 
mBoundaryFaceData
std::vector< std::vector
< double > >::iterator 
mpNodeIterator
std::vector< std::vector
< unsigned > >::iterator 
mpElementIterator
std::vector< std::vector
< unsigned > >::iterator 
mpBoundaryFaceIterator
bool mIndexFromZero
bool mWriteMetaFile


Detailed Description

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
class AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >

An abstract mesh writer class.

Definition at line 53 of file AbstractTetrahedralMeshWriter.hpp.


Constructor & Destructor Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::AbstractTetrahedralMeshWriter ( const std::string &  rDirectory,
const std::string &  rBaseName,
const bool  clearOutputDir = true 
) [inline]

Constructor.

Parameters:
rDirectory the directory in which to write the mesh to file
rBaseName the base name of the files in which to write the mesh data
clearOutputDir whether to clean the directory (defaults to true)

Definition at line 38 of file AbstractTetrahedralMeshWriter.cpp.

References AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::mpOutputFileHandler.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::~AbstractTetrahedralMeshWriter (  )  [inline, virtual]


Member Function Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
std::string AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetOutputDirectory (  )  [inline]

Return the full path to the directory where meshes will be written.

Definition at line 77 of file AbstractTetrahedralMeshWriter.cpp.

References OutputFileHandler::GetOutputDirectoryFullPath(), and AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::mpOutputFileHandler.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::SetNextNode ( std::vector< double >  nextNode  )  [inline]

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::SetNextElement ( std::vector< unsigned >  nextElement  )  [inline, virtual]

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::SetNextBoundaryFace ( std::vector< unsigned >  nextFace  )  [inline]

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
virtual void AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFiles (  )  [pure virtual]

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNumNodes (  )  [inline]

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNumElements (  )  [inline]

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNumBoundaryFaces (  )  [inline]

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNumBoundaryEdges (  )  [inline]

Get the number of boundary faces in the mesh.

Definition at line 71 of file AbstractTetrahedralMeshWriter.cpp.

References AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::mBoundaryFaceData.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFilesUsingMesh ( AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > &  rMesh  )  [inline]

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFilesUsingMesh ( const AbstractTetrahedralMesh< ELEMENT_DIM, SPACE_DIM > &  rMesh  )  [inline]

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFilesUsingMeshReader ( AbstractMeshReader< ELEMENT_DIM, SPACE_DIM > &  rMeshReader  )  [inline]

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFilesUsingMeshReader ( AbstractMeshReader< ELEMENT_DIM, SPACE_DIM > &  rMeshReader,
const std::vector< unsigned > &  rNodePermutation 
) [inline]


Member Data Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
OutputFileHandler* AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::mpOutputFileHandler [protected]

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
std::string AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::mBaseName [protected]

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
std::vector< std::vector<double> > AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::mNodeData [protected]

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
std::vector< std::vector<unsigned> > AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::mElementData [protected]

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
std::vector< std::vector<unsigned> > AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::mBoundaryFaceData [protected]

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
std::vector< std::vector<double> >::iterator AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::mpNodeIterator [protected]

Is an iterator for the node data

Definition at line 64 of file AbstractTetrahedralMeshWriter.hpp.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
std::vector< std::vector<unsigned> >::iterator AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::mpElementIterator [protected]

Is an iterator for the element data

Definition at line 65 of file AbstractTetrahedralMeshWriter.hpp.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
std::vector< std::vector<unsigned> >::iterator AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::mpBoundaryFaceIterator [protected]

Is an iterator for the boundary face data

Definition at line 66 of file AbstractTetrahedralMeshWriter.hpp.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
bool AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::mIndexFromZero [protected]

True if input data is numbered from zero, false otherwise

Definition at line 68 of file AbstractTetrahedralMeshWriter.hpp.

Referenced by MeshalyzerMeshWriter< ELEMENT_DIM, SPACE_DIM >::MeshalyzerMeshWriter(), and MeshalyzerMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFiles().

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
bool AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::mWriteMetaFile [protected]

Whether to write a metafile (only used by MeshylazerMeshWriter)

Definition at line 69 of file AbstractTetrahedralMeshWriter.hpp.

Referenced by MeshalyzerMeshWriter< ELEMENT_DIM, SPACE_DIM >::MeshalyzerMeshWriter(), and MeshalyzerMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFiles().


The documentation for this class was generated from the following files:

Generated on Tue Aug 4 16:10:48 2009 for Chaste by  doxygen 1.5.5