|
| | PVTUWriter (std::ostream &stream_, FileType fileType_) |
| | create a PVTUWriter object
|
| | ~PVTUWriter () |
| | write footer
|
| void | beginPointData (const std::string &scalars="", const std::string &vectors="") |
| | start PointData section
|
| void | endPointData () |
| | finish PointData section
|
| void | beginCellData (const std::string &scalars="", const std::string &vectors="") |
| | start CellData section
|
| void | endCellData () |
| | finish CellData section
|
| void | beginPoints () |
| | start section for the point coordinates
|
| void | endPoints () |
| | finish section for the point coordinates
|
| void | beginMain (unsigned ghostLevel=0) |
| | start the main PPolyData/PUnstructuredGrid section
|
| void | endMain () |
| | finish the main PolyData/UnstructuredGrid section
|
| void | addArray (const std::string &name, unsigned ncomps, Precision prec) |
| | Add an array to the output file.
|
| void | addPiece (const std::string &filename) |
| | Add a serial piece to the output file.
|
Dump a .vtu/.vtp files contents to a stream.
This will help generating a .vtu/.vtp file. Typical use is like this:
{
writer.beginMain();
writer.beginCellData();
for(each cell data field)
writer.addArray(field.name, field.ncomps, precision);
writer.endCellData();
writer.beginPointData();
for(each point data field)
writer.addArray(field.name, field.ncomps, precision);
writer.endPointData();
writer.beginPoints();
writer.addArray("Coordinates", 3, precision);
writer.endPoints();
for(each serial piece)
writer.addPiece(piece.filename);
writer.endMain();
}
@ polyData
for .vtp files (PolyData)
Definition common.hh:254
PVTUWriter(std::ostream &stream_, FileType fileType_)
create a PVTUWriter object
Definition pvtuwriter.hh:78