Chaste
Build::
|
#include <MultiFormatMeshWriter.hpp>
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< MultiFormatMeshWriter > | Create () |
Private Attributes | |
vtkSmartPointer< vtkUnstructuredGrid > | mpVtkMesh |
boost::shared_ptr< DiscreteContinuumMesh< DIM > > | mpMesh |
std::string | mFilepath |
MeshFormat::Value | mOutputFormat |
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.
MultiFormatMeshWriter< DIM >::MultiFormatMeshWriter | ( | ) |
Constructor
Definition at line 56 of file MultiFormatMeshWriter.cpp.
MultiFormatMeshWriter< DIM >::~MultiFormatMeshWriter | ( | ) |
Destructor
Definition at line 73 of file MultiFormatMeshWriter.cpp.
|
static |
Factory constructor method
Definition at line 66 of file MultiFormatMeshWriter.cpp.
void MultiFormatMeshWriter< DIM >::SetFilename | ( | const std::string & | rFilename | ) |
Set the filename for the writer without extension
rFilename | the file name without extension |
Definition at line 91 of file MultiFormatMeshWriter.cpp.
References MultiFormatMeshWriter< DIM >::mFilepath.
void MultiFormatMeshWriter< DIM >::SetMesh | ( | vtkSmartPointer< vtkUnstructuredGrid > | pMesh | ) |
Set the mesh in vtu format
pMesh | the mesh to write out |
Definition at line 79 of file MultiFormatMeshWriter.cpp.
References MultiFormatMeshWriter< DIM >::mpVtkMesh.
void MultiFormatMeshWriter< DIM >::SetMesh | ( | boost::shared_ptr< DiscreteContinuumMesh< DIM > > | pMesh | ) |
Set the mesh in DiscreteContinuum mesh format
pMesh | the mesh to write out |
Definition at line 85 of file MultiFormatMeshWriter.cpp.
References MultiFormatMeshWriter< DIM >::mpMesh.
void MultiFormatMeshWriter< DIM >::SetOutputFormat | ( | MeshFormat::Value | outputFormat | ) |
Set the format for writer output
outputFormat | the output format for the mesh writer |
Definition at line 97 of file MultiFormatMeshWriter.cpp.
References MultiFormatMeshWriter< DIM >::mOutputFormat.
void MultiFormatMeshWriter< DIM >::Write | ( | ) |
Write the mesh
Definition at line 103 of file MultiFormatMeshWriter.cpp.
References MultiFormatMeshWriter< DIM >::mFilepath, MultiFormatMeshWriter< DIM >::mOutputFormat, MultiFormatMeshWriter< DIM >::mpMesh, and MultiFormatMeshWriter< DIM >::mpVtkMesh.
|
private |
The output path
Definition at line 81 of file MultiFormatMeshWriter.hpp.
Referenced by MultiFormatMeshWriter< DIM >::SetFilename(), and MultiFormatMeshWriter< DIM >::Write().
|
private |
The output mesh format
Definition at line 86 of file MultiFormatMeshWriter.hpp.
Referenced by MultiFormatMeshWriter< DIM >::SetOutputFormat(), and MultiFormatMeshWriter< DIM >::Write().
|
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().
|
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().