49#ifndef Foam_vtk_GenericPatchWriter_H
50#define Foam_vtk_GenericPatchWriter_H
65template<
class PatchType>
142 virtual bool beginFile(std::string title =
"surface")
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
static bool parRun(const bool on) noexcept
Set as parallel run on/off.
A class for handling file names.
virtual bool beginFile(std::string title="surface")
Write file header (non-collective).
GenericPatchWriter(const GenericPatchWriter< PatchType > &)=delete
No copy construct.
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).
void operator=(const GenericPatchWriter< PatchType > &)=delete
No copy assignment.
virtual bool writeGeometry()
Write patch topology.
GenericPatchWriter(const PatchType &pp, const vtk::outputOptions opts, const fileName &file, bool parallel=UPstream::parRun())
Construct from components and open the file for writing.
GenericPatchWriter(const PatchType &pp, const fileName &file, bool parallel=UPstream::parRun())
Construct from components (default output INLINE_BASE64), and open the file for writing.
bool writeProcIDs(const label nValues)
Write nValues of processor ids as CellData or PointData (no-op in serial).
vtk::outputOptions opts() const noexcept
The output options in use.
bool isPointData() const noexcept
True if output state corresponds to POINT_DATA.
bool parallel() const noexcept
Parallel output requested?
virtual bool beginFile(std::string title="")
Write file header (non-collective).
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)
Low-level write face/point topology. Normally used by writeGeometry() in a derived class.
label nLocalPoints_
Local number of points.
Namespace for handling VTK output. Contains classes and functions for writing VTK file content.
@ INLINE_BASE64
XML inline base64, base64Formatter.