AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM > Class Template Reference

#include <AbstractMeshWriter.hpp>

Inherited by AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >, and VertexMeshWriter< ELEMENT_DIM, SPACE_DIM >.

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

List of all members.

Public Member Functions

 AbstractMeshWriter (const std::string &rDirectory, const std::string &rBaseName, const bool clearOutputDir=true)
virtual ~AbstractMeshWriter ()
std::string GetOutputDirectory ()
virtual unsigned GetNumNodes ()
unsigned GetNumElements ()
unsigned GetNumBoundaryFaces ()
unsigned GetNumCableElements ()
virtual std::vector< doubleGetNextNode ()
virtual ElementData GetNextElement ()
virtual ElementData GetNextBoundaryElement ()
virtual ElementData GetNextCableElement ()
virtual void WriteFiles ()=0
void WriteFilesUsingMeshReader (AbstractMeshReader< ELEMENT_DIM, SPACE_DIM > &rMeshReader)

Protected Attributes

OutputFileHandlermpOutputFileHandler
std::string mBaseName
AbstractMeshReader
< ELEMENT_DIM, SPACE_DIM > * 
mpMeshReader
unsigned mNumNodes
unsigned mNumElements
unsigned mNumBoundaryElements
unsigned mNumCableElements

Detailed Description

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

An abstract mesh writer class.

Definition at line 50 of file AbstractMeshWriter.hpp.


Constructor & Destructor Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::AbstractMeshWriter ( 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 45 of file AbstractMeshWriter.cpp.

References AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::mpOutputFileHandler.

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

Member Function Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
ElementData AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNextBoundaryElement (  )  [inline, virtual]
Returns:
the data (indices/attributes) of the next face to be written to file

Reimplemented in AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >.

Definition at line 106 of file AbstractMeshWriter.cpp.

References AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::mpMeshReader.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
ElementData AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNextCableElement (  )  [inline, virtual]
Returns:
the data (indices/attributes) of the next cable element to be written to file

Reimplemented in AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >.

Definition at line 113 of file AbstractMeshWriter.cpp.

References AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::mpMeshReader.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
ElementData AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNextElement (  )  [inline, virtual]
Returns:
the data (indices/attributes) of the next element to be written to file

Reimplemented in VertexMeshWriter< ELEMENT_DIM, SPACE_DIM >, AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >, and PottsMeshWriter< SPACE_DIM >.

Definition at line 99 of file AbstractMeshWriter.cpp.

References AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::mpMeshReader.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
std::vector< double > AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNextNode (  )  [inline, virtual]
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNumBoundaryFaces (  )  [inline]
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNumCableElements (  )  [inline]
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNumElements (  )  [inline]
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetNumNodes (  )  [inline, virtual]
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
std::string AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetOutputDirectory (  )  [inline]
Returns:
the full path to the directory where meshes will be written.

Definition at line 61 of file AbstractMeshWriter.cpp.

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

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
virtual void AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFiles (  )  [pure virtual]
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFilesUsingMeshReader ( AbstractMeshReader< ELEMENT_DIM, SPACE_DIM > &  rMeshReader  )  [inline]

Member Data Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
std::string AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::mBaseName [protected]
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::mNumBoundaryElements [protected]
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::mNumCableElements [protected]
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::mNumElements [protected]
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::mNumNodes [protected]
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
AbstractMeshReader<ELEMENT_DIM,SPACE_DIM>* AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::mpMeshReader [protected]
template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
OutputFileHandler* AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::mpOutputFileHandler [protected]

Output file handler

Definition at line 54 of file AbstractMeshWriter.hpp.

Referenced by AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::AbstractMeshWriter(), VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >::AddProvenance(), AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::GetOutputDirectory(), MeshalyzerMeshWriter< ELEMENT_DIM, SPACE_DIM >::OpenElementFile(), CmguiMeshWriter< ELEMENT_DIM, SPACE_DIM >::OpenElementFiles(), MeshalyzerMeshWriter< ELEMENT_DIM, SPACE_DIM >::OpenFaceFile(), MeshalyzerMeshWriter< ELEMENT_DIM, SPACE_DIM >::OpenNodeFile(), CmguiMeshWriter< ELEMENT_DIM, SPACE_DIM >::OpenNodeFile(), CmguiDeformedSolutionsWriter< DIM >::WriteCmguiScript(), CmguiDeformedSolutionsWriter< DIM >::WriteDeformationPositions(), TrianglesMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteElementsAsFaces(), TrianglesMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFacesAsEdges(), XdmfMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFiles(), VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFiles(), TrianglesMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFiles(), VertexMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFiles(), XdmfMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFilesUsingMesh(), VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFilesUsingMesh(), MeshalyzerMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteMetaFile(), AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteNclFile(), VertexMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteVtkUsingMesh(), XdmfMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteXdmfMasterFile(), and AbstractMeshWriter< ELEMENT_DIM, SPACE_DIM >::~AbstractMeshWriter().


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

Generated by  doxygen 1.6.2