37#ifndef Foam_vtk_core_H
38#define Foam_vtk_core_H
78 return (uint8_t(fmt) & 0x10);
84 return (uint8_t(fmt) & 0x20);
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
A class for handling words, derived from Foam::string.
const Foam::Enum< dataArrayAttr > dataArrayAttrNames
Legacy attributes (eg, OFFSETS)
const word fileExtension
Legacy file extension ("vtk")
const Foam::Enum< vtk::fileTag > fileTagNames
Legacy file tags (eg, LINES, CELL_DATA, POINT_DATA, ...)
const Foam::Enum< vtk::fileTag > contentNames
Legacy content names (POLYDATA, UNSTRUCTURED_GRID)
const Foam::Enum< dataArrayAttr > dataArrayAttrNames
Strings corresponding to the vtk XML DataArray attributes.
const Foam::Enum< fileAttr > fileAttrNames
Strings corresponding to the vtk XML attributes.
fileAttr
Some common XML attributes for vtk files.
@ NUMBER_OF_POLYS
"NumberOfPolys"
@ NUMBER_OF_COMPONENTS
"NumberOfComponents"
@ NUMBER_OF_TUPLES
"NumberOfTuples"
@ NUMBER_OF_LINES
"NumberOfLines"
@ NUMBER_OF_CELLS
"NumberOfCells"
@ NUMBER_OF_VERTS
"NumberOfVerts"
@ NUMBER_OF_POINTS
"NumberOfPoints"
dataArrayAttr
Some common names for XML DataArray entries.
@ FACEOFFSETS
"faceoffsets"
@ CONNECTIVITY
"connectivity"
fileTag
Some common XML tags for vtk files.
@ UNSTRUCTURED_GRID
"UnstructuredGrid"
@ MULTI_BLOCK
"vtkMultiBlockDataSet"
formatType
The output format type for file contents.
@ APPEND_BASE64
XML append base64, appendBase64Formatter.
@ APPEND_BINARY
XML append raw binary, appendRawFormatter.
@ INLINE_ASCII
XML inline ASCII, asciiFormatter.
@ LEGACY_ASCII
Legacy ASCII, legacyAsciiFormatter.
@ LEGACY_BINARY
Legacy raw binary, legacyRawFormatter.
@ INLINE_BASE64
XML inline base64, base64Formatter.
bool isAppend(enum formatType fmt) noexcept
Test for vtk append format (xml)
const Foam::Enum< fileTag > fileExtension
File extension (without ".") for some vtk XML file content types.
OutputContext
The context when outputting a VTK file (XML or legacy).
@ INLINE
Generate header and inline data.
@ HEADER
Generate header only.
@ APPEND
Generate append-data.
bool isLegacy(enum formatType fmt) noexcept
Test for vtk legacy format.
const Foam::Enum< fileTag > fileTagNames
Strings corresponding to the vtk XML tags.
const Foam::Enum< fileTag > fileContentVersions
Version string for some vtk XML file content types.
cellType
Equivalent to enumeration in "vtkCellType.h" (should be uint8_t)