Chaste  Build::
MeshReader Class Reference

#include <MeshReader.hpp>

+ Collaboration diagram for MeshReader:

Public Member Functions

 MeshReader ()
 
 ~MeshReader ()
 
vtkSmartPointer< vtkUnstructuredGrid > GetMesh ()
 
void SetFilename (const std::string &rFilename)
 
void Read ()
 

Static Public Member Functions

static boost::shared_ptr< MeshReaderCreate ()
 

Private Attributes

vtkSmartPointer< vtkUnstructuredGrid > mpVtkMesh
 
std::string mFilepath
 

Detailed Description

Read a vtk unstructured mesh from file. This is a simple wrapper over the vtk unstructured grid reader.

Definition at line 48 of file MeshReader.hpp.

Constructor & Destructor Documentation

MeshReader::MeshReader ( )

Constructor

Definition at line 42 of file MeshReader.cpp.

MeshReader::~MeshReader ( )

Destructor

Definition at line 55 of file MeshReader.cpp.

Member Function Documentation

boost::shared_ptr< MeshReader > MeshReader::Create ( )
static

Factory constructor method

Returns
a shared pointer to a new instance

Definition at line 49 of file MeshReader.cpp.

vtkSmartPointer< vtkUnstructuredGrid > MeshReader::GetMesh ( )

Get the mesh in vtu format

Definition at line 61 of file MeshReader.cpp.

References mpVtkMesh.

void MeshReader::Read ( )

Do the read operation

Definition at line 78 of file MeshReader.cpp.

References mFilepath, and mpVtkMesh.

void MeshReader::SetFilename ( const std::string &  rFilename)

Set the filename for the readers and writers

Parameters
rFilenamethe file name

Definition at line 73 of file MeshReader.cpp.

References mFilepath.

Member Data Documentation

std::string MeshReader::mFilepath
private

Path to the mesh file

Definition at line 58 of file MeshReader.hpp.

Referenced by Read(), and SetFilename().

vtkSmartPointer<vtkUnstructuredGrid> MeshReader::mpVtkMesh
private

The mesh in vtk format

Definition at line 53 of file MeshReader.hpp.

Referenced by GetMesh(), and Read().


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