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