VtkMeshWriter< ELEMENT_DIM, SPACE_DIM > Class Template Reference

#include <VtkMeshWriter.hpp>

Inheritance diagram for VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

 VtkMeshWriter (const std::string &rDirectory, const std::string &rBaseName, const bool &rCleanDirectory=true)
void WriteFiles ()
void AddCellData (std::string name, std::vector< double > data)
void AddPointData (std::string name, std::vector< double > data)
virtual ~VtkMeshWriter ()

Private Member Functions

void MakeVtkMesh ()

Private Attributes

vtkUnstructuredGrid * mpVtkUnstructedMesh


Detailed Description

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

VtkMeshWriter

Writes a mesh in VTK .vtu format (that's an XML-based, data compressed unstructured mesh)

Definition at line 55 of file VtkMeshWriter.hpp.


Constructor & Destructor Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >::VtkMeshWriter ( const std::string &  rDirectory,
const std::string &  rBaseName,
const bool &  rCleanDirectory = 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
rCleanDirectory whether to clean the directory (defaults to true)

Definition at line 118 of file VtkMeshWriter.hpp.

References AbstractTetrahedralMeshWriter< ELEMENT_DIM, SPACE_DIM >::mIndexFromZero, and VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >::mpVtkUnstructedMesh.

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

Destructor.

Definition at line 130 of file VtkMeshWriter.hpp.

References VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >::mpVtkUnstructedMesh.


Member Function Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >::MakeVtkMesh (  )  [inline, private]

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >::WriteFiles (  )  [inline, virtual]

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >::AddCellData ( std::string  name,
std::vector< double >  data 
) [inline]

Add a scalar data field to each element (known as "cell" in VTK).

Parameters:
name is a meaningful name with which to annotate the data
data is the data which should appear in the same order as the element numbering The length of the data vector is assumed to match the number of elements in the mesh. Checking cannot be done at this stage since the data is associated with an empty VTK mesh structure.

Definition at line 210 of file VtkMeshWriter.hpp.

References VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >::mpVtkUnstructedMesh.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >::AddPointData ( std::string  name,
std::vector< double >  data 
) [inline]

Add a scalar data field to each node (known as "point" in VTK).

Parameters:
name is a meaningful name with which to annotate the data
data is the data which should appear in the same order as the node numbering The length of the data vector is assumed to match the number of nodes in the mesh Checking cannot be done at this stage since the data is associated with an empty VTK mesh structure.

Definition at line 225 of file VtkMeshWriter.hpp.

References VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >::mpVtkUnstructedMesh.

Referenced by Hdf5ToVtkConverter< ELEMENT_DIM, SPACE_DIM >::Hdf5ToVtkConverter().


Member Data Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
vtkUnstructuredGrid* VtkMeshWriter< ELEMENT_DIM, SPACE_DIM >::mpVtkUnstructedMesh [private]


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

Generated on Mon Nov 1 12:37:35 2010 for Chaste by  doxygen 1.5.5