51#ifndef Foam_vtk_core_H
52#define Foam_vtk_core_H
99 return (uint8_t(fmt) & 0x10);
105 return (uint8_t(fmt) & 0x20);
237template<
class FloatType,
class Type>
238const FloatType*
copyTuple_impl(FloatType output[],
const Type& value);
285 #include "foamVtkCore.txx"
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
A templated (3 x 3) symmetric tensor of objects of <T>, effectively containing 6 elements,...
A class for handling words, derived from Foam::string.
Namespace for legacy VTK output constants and functions.
const Foam::Enum< dataArrayAttr > dataArrayAttrNames
Legacy attributes (eg, OFFSETS).
const word fileExtension
Legacy file extension ("vtk").
const Foam::Enum< vtk::fileTag > contentNames
Legacy content names (POLYDATA, UNSTRUCTURED_GRID).
const Foam::Enum< vtk::fileTag > fileTagNames
Legacy file tags (eg, LINES, CELL_DATA, POINT_DATA, ...).
Namespace for handling VTK output. Contains classes and functions for writing VTK file content.
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"
const Foam::Enum< dataArrayAttr > dataArrayAttrNames
Strings corresponding to the vtk XML DataArray attributes.
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"
@ VTK_HDF
"VTKHDF" - used for the extension
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.
@ HDF_FORMAT
VTKHDF format.
@ INLINE_BASE64
XML inline base64, base64Formatter.
bool isAppend(enum formatType fmt) noexcept
Test for vtk append format (xml).
const Foam::Enum< fileTag > fileContentVersions
Version string for some vtk XML file content types.
const Foam::Enum< fileAttr > fileAttrNames
Strings corresponding to the vtk XML attributes.
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.
bool isHDF(enum formatType fmt) noexcept
Test for HDF format.
cellType
Equivalent to enumeration in "vtkCellType.h" (should be uint8_t).
const Foam::Enum< fileTag > fileExtension
File extension (without ".") for some vtk XML file content types.