Go to the documentation of this file.
49 #ifndef Foam_vtk_polyWriter_H
50 #define Foam_vtk_polyWriter_H
98 const label nCellValues,
99 const word& fieldName,
120 void writeLinesLegacy(
const edgeList& edges,
const label pointOffset);
124 void writeLines(
const edgeList& edges,
const label pointOffset);
128 void writePolysLegacy(
const faceList& faces,
const label pointOffset);
132 void writePolys(
const faceList& faces,
const label pointOffset);
Encapsulated combinations of output format options. This is primarily useful when defining the output...
Base class for VTK output writers that handle geometry and fields (eg, vtp, vtu data)....
A class for handling words, derived from Foam::string.
A class for handling file names.
vtk::outputOptions opts() const
The output options in use.
void writePointData(const word &fieldName, const UList< Type > &field)
Write primitive field of PointData.
label numberOfPoints_
The number of field points for the current Piece.
bool writeLineGeometry(const pointField &points, const edgeList &edges)
static word ext(vtk::outputOptions opts)
File extension for given output type.
bool writePolyGeometry(const pointField &points, const faceList &faces)
virtual ~polyWriter()=default
Destructor.
bool parallel() const noexcept
Parallel output requested?
label numberOfCells_
The number of field cells (edges or faces) for the current Piece.
void writeCellData(const word &fieldName, const UList< Type > &field)
Write primitive field of CellData.
XML inline base64, base64Formatter.
label nLocalPoints_
Local number of points.
virtual bool writeGeometry()
Dummy write mesh topology method - Fatal if called.
label nLocalLines_
Local number of lines (edges)
void writeUniformValue(const label nCellValues, const word &fieldName, const Type &val)
Write a uniform field of Cell (Poly or Line) or Point values.
static bool & parRun() noexcept
Test if this a parallel run.
word ext(vtk::fileTag contentType) const
The file extension (legacy or xml) for the given content-type.
label nLocalPolys_
Local number of polys (faces)
Write faces/points (optionally with fields) as a vtp file or a legacy vtk file.
virtual bool beginPointData(label nFields=0)
Begin PointData for specified number of fields.
void write(const word &fieldName, const UList< Type > &field)
Write primitive field of CellData (Poly or Line) or PointData values.
virtual bool beginCellData(label nFields=0)
Begin CellData output section for specified number of fields.
word ext() const
File extension for current format type.