35 #ifndef VERTEXMESHWRITER_HPP_
36 #define VERTEXMESHWRITER_HPP_
39 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
44 #define _BACKWARD_BACKWARD_WARNING_H 1 //Cut out the strstream deprecated warning for now (gcc4.3)
45 #include <vtkDoubleArray.h>
46 #include <vtkCellData.h>
47 #include <vtkPointData.h>
48 #include <vtkConvexPointSet.h>
49 #include <vtkPolygon.h>
50 #include <vtkUnstructuredGrid.h>
51 #include <vtkUnstructuredGridWriter.h>
52 #include <vtkXMLUnstructuredGridWriter.h>
53 #include <vtkDataCompressor.h>
56 #include "VertexMesh.hpp"
57 #include "AbstractMeshWriter.hpp"
58 #include "NodeMap.hpp"
61 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
64 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
70 template<
unsigned ELEMENT_DIM,
unsigned SPACE_DIM>
104 const std::string& rBaseName,
105 const bool clearOutputDir=
true);
142 void AddCellData(std::string dataName, std::vector<double> dataPayload);
150 void AddPointData(std::string dataName, std::vector<double> dataPayload);
void AddCellData(std::string dataName, std::vector< double > dataPayload)
unsigned mNodeMapCurrentIndex
MeshWriterIterators< ELEMENT_DIM, SPACE_DIM > * mpIters
void WriteFilesUsingMesh(VertexMesh< ELEMENT_DIM, SPACE_DIM > &rMesh)
vtkUnstructuredGrid * mpVtkUnstructedMesh
VertexMeshWriter(const std::string &rDirectory, const std::string &rBaseName, const bool clearOutputDir=true)
VertexElementData GetNextElementWithFaces()
void WriteVtkUsingMesh(VertexMesh< ELEMENT_DIM, SPACE_DIM > &rMesh, std::string stamp="")
void MakeVtkMesh(VertexMesh< ELEMENT_DIM, SPACE_DIM > &rMesh)
std::vector< double > GetNextNode()
ElementData GetNextElement()
void AddPointData(std::string dataName, std::vector< double > dataPayload)
VertexMesh< ELEMENT_DIM, SPACE_DIM > * mpMesh