Chaste  Build::
MultiFormatMeshWriter< DIM > Class Template Reference

#include <MultiFormatMeshWriter.hpp>

+ Collaboration diagram for MultiFormatMeshWriter< DIM >:

Public Member Functions

 MultiFormatMeshWriter ()
 
 ~MultiFormatMeshWriter ()
 
void SetFilename (const std::string &rFilename)
 
void SetMesh (vtkSmartPointer< vtkUnstructuredGrid > pMesh)
 
void SetMesh (boost::shared_ptr< DiscreteContinuumMesh< DIM > > pMesh)
 
void SetOutputFormat (MeshFormat::Value outputFormat)
 
void Write ()
 

Static Public Member Functions

static boost::shared_ptr< MultiFormatMeshWriterCreate ()
 

Private Attributes

vtkSmartPointer< vtkUnstructuredGrid > mpVtkMesh
 
boost::shared_ptr< DiscreteContinuumMesh< DIM > > mpMesh
 
std::string mFilepath
 
MeshFormat::Value mOutputFormat
 

Detailed Description

template<unsigned DIM>
class MultiFormatMeshWriter< DIM >

Write meshes represented as vtk unstructured grids or DiscreteContinuumMesh to file. Supports output in VTU, STL (ascii) and dolfin formats. This differs from the VtkMeshWriter in that it allows the full path to an output directory to be set and has multiple output types. It does not write parallel vtk files.

Definition at line 63 of file MultiFormatMeshWriter.hpp.

Constructor & Destructor Documentation

template<unsigned DIM>
MultiFormatMeshWriter< DIM >::MultiFormatMeshWriter ( )

Constructor

Definition at line 56 of file MultiFormatMeshWriter.cpp.

template<unsigned DIM>
MultiFormatMeshWriter< DIM >::~MultiFormatMeshWriter ( )

Destructor

Definition at line 73 of file MultiFormatMeshWriter.cpp.

Member Function Documentation

template<unsigned DIM>
boost::shared_ptr< MultiFormatMeshWriter< DIM > > MultiFormatMeshWriter< DIM >::Create ( )
static

Factory constructor method

Returns
a shared pointer to a instance of this class

Definition at line 66 of file MultiFormatMeshWriter.cpp.

template<unsigned DIM>
void MultiFormatMeshWriter< DIM >::SetFilename ( const std::string &  rFilename)

Set the filename for the writer without extension

Parameters
rFilenamethe file name without extension

Definition at line 91 of file MultiFormatMeshWriter.cpp.

References MultiFormatMeshWriter< DIM >::mFilepath.

template<unsigned DIM>
void MultiFormatMeshWriter< DIM >::SetMesh ( vtkSmartPointer< vtkUnstructuredGrid >  pMesh)

Set the mesh in vtu format

Parameters
pMeshthe mesh to write out

Definition at line 79 of file MultiFormatMeshWriter.cpp.

References MultiFormatMeshWriter< DIM >::mpVtkMesh.

template<unsigned DIM>
void MultiFormatMeshWriter< DIM >::SetMesh ( boost::shared_ptr< DiscreteContinuumMesh< DIM > >  pMesh)

Set the mesh in DiscreteContinuum mesh format

Parameters
pMeshthe mesh to write out

Definition at line 85 of file MultiFormatMeshWriter.cpp.

References MultiFormatMeshWriter< DIM >::mpMesh.

template<unsigned DIM>
void MultiFormatMeshWriter< DIM >::SetOutputFormat ( MeshFormat::Value  outputFormat)

Set the format for writer output

Parameters
outputFormatthe output format for the mesh writer

Definition at line 97 of file MultiFormatMeshWriter.cpp.

References MultiFormatMeshWriter< DIM >::mOutputFormat.

Member Data Documentation

template<unsigned DIM>
std::string MultiFormatMeshWriter< DIM >::mFilepath
private
template<unsigned DIM>
MeshFormat::Value MultiFormatMeshWriter< DIM >::mOutputFormat
private

The output mesh format

Definition at line 86 of file MultiFormatMeshWriter.hpp.

Referenced by MultiFormatMeshWriter< DIM >::SetOutputFormat(), and MultiFormatMeshWriter< DIM >::Write().

template<unsigned DIM>
boost::shared_ptr<DiscreteContinuumMesh<DIM> > MultiFormatMeshWriter< DIM >::mpMesh
private

The mesh to be written in DiscreteContinuumMesh format

Definition at line 76 of file MultiFormatMeshWriter.hpp.

Referenced by MultiFormatMeshWriter< DIM >::SetMesh(), and MultiFormatMeshWriter< DIM >::Write().

template<unsigned DIM>
vtkSmartPointer<vtkUnstructuredGrid> MultiFormatMeshWriter< DIM >::mpVtkMesh
private

The mesh to be written in vtk format

Definition at line 71 of file MultiFormatMeshWriter.hpp.

Referenced by MultiFormatMeshWriter< DIM >::SetMesh(), and MultiFormatMeshWriter< DIM >::Write().


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