49#ifndef Foam_vtk_GenericPatchWriter_H
50#define Foam_vtk_GenericPatchWriter_H
65template<
class PatchType>
143 virtual bool beginFile(std::string title =
"surface")
static bool & parRun() noexcept
Test if this a parallel run.
A class for handling file names.
Write concrete PrimitivePatch faces/points (optionally with fields) as a vtp file or a legacy vtk fil...
virtual bool beginFile(std::string title="surface")
Write file header (non-collective)
bool writeProcIDs()
Write processor ids for each poly as CellData.
const PatchType & patch() const noexcept
Reference to the originating face/points patch.
virtual ~GenericPatchWriter()=default
Destructor.
GenericPatchWriter(const PatchType &pp, const vtk::outputOptions opts=vtk::formatType::INLINE_BASE64)
Construct from patch (default output INLINE_BASE64)
virtual bool writeGeometry()
Write patch topology.
vtk::outputOptions opts() const noexcept
The output options in use.
bool parallel() const noexcept
Parallel output requested?
Encapsulated combinations of output format options. This is primarily useful when defining the output...
Write faces/points (optionally with fields) as a vtp file or a legacy vtk file.
label nLocalPolys_
Local number of polys (faces)
bool writePolyGeometry(const pointField &points, const faceList &faces)
virtual bool beginFile(std::string title="")
Write file header (non-collective)
@ INLINE_BASE64
XML inline base64, base64Formatter.