Loading...
Searching...
No Matches
foamVtkOutput.H File Reference
Include dependency graph for foamVtkOutput.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Foam::vtk
 Namespace for handling VTK output. Contains classes and functions for writing VTK file content.
namespace  Foam::vtk::legacy
 Namespace for legacy VTK output constants and functions.
namespace  Foam
 Namespace for OpenFOAM.

Functions

autoPtr< vtk::formatternewFormatter (std::ostream &os, unsigned prec=IOstream::defaultPrecision())
 Return a default asciiFormatter.
autoPtr< vtk::formatternewFormatter (std::ostream &os, const enum formatType fmtType, unsigned prec=IOstream::defaultPrecision())
 Return a new formatter based on the specified format type.
void writeIdentity (vtk::formatter &fmt, const label len, label start=0)
 Write an identity list of labels.
void writeList (vtk::formatter &fmt, const UList< uint8_t > &values)
 Write a list of uint8_t values.
template<class Type>
void write (vtk::formatter &fmt, const Type &val, const label n=1)
 Component-wise write of a value (N times).
template<class Type>
void writeValueParallel (vtk::formatter &fmt, const Type &val, const label count=1)
 Component-wise write of a value (N times) in parallel.
template<class Type>
void writeList (vtk::formatter &fmt, const UList< Type > &values)
 Write a list of values.
template<class Type, unsigned N>
void writeList (vtk::formatter &fmt, const FixedList< Type, N > &values)
 Write a list of values.
template<class Type>
void writeList (vtk::formatter &fmt, const UList< Type > &values, const labelUList &addressing)
 Write a list of values via indirect addressing.
template<class Type>
void writeList (vtk::formatter &fmt, const UList< Type > &values, const bitSet &selected)
 Write a list of values via indirect addressing.
template<class Type>
void writeLists (vtk::formatter &fmt, const UList< Type > &values1, const UList< Type > &values2, const labelUList &addressing)
 Write a list of values and a list of values via indirect addressing.
template<class Type>
void writeListParallel (vtk::formatter &fmt, const UList< Type > &values)
 Write a list of values.
void writeListParallel (vtk::formatter &fmt, const UList< label > &values, const globalIndex &procOffset)
 Write a list of values, with constant per-processor offset.
template<class Type>
void writeListParallel (vtk::formatter &fmt, const UList< Type > &values, const labelUList &addressing)
 Write a list of values via indirect addressing.
template<class Type>
void writeListParallel (vtk::formatter &fmt, const UList< Type > &values, const bitSet &selected)
 Write a list of values via indirect addressing.
template<class Type>
void writeListsParallel (vtk::formatter &fmt, const UList< Type > &values1, const UList< Type > &values2)
 Write a list of values and another list of values.
template<class Type>
void writeListsParallel (vtk::formatter &fmt, const UList< Type > &values1, const UList< Type > &values2, const labelUList &addressing)
 Write a list of values and a list of values via indirect addressing.
void fileHeader (std::ostream &os, const std::string &title, bool binary)
 Emit header for legacy file (vtk DataFile Version 2.0).
void fileHeader (vtk::formatter &fmt, const std::string &title, const std::string &contentType)
 Emit header for legacy file, with "ASCII" or "BINARY" depending on the formatter type.
void fileHeader (vtk::formatter &fmt, const std::string &title, vtk::fileTag contentType)
 Emit header for legacy file, with "ASCII" or "BINARY" depending on the formatter type.
template<vtk::fileTag ContentType>
void fileHeader (vtk::formatter &fmt, const std::string &title)
 Emit header for legacy file, with "ASCII" or "BINARY" depending on the formatter type.
void beginPoints (std::ostream &os, label nPoints)
 Emit header for POINTS (with trailing newline).
void beginVerts (std::ostream &os, label nVerts, label nConnectivity=0)
 Emit header for VERTICES (with trailing newline).
void beginLines (std::ostream &os, label nLines, label nConnectivity=0)
 Emit header for LINES (with trailing newline).
void beginPolys (std::ostream &os, label nPolys, label nConnectivity)
 Emit header for POLYGONS (with trailing newline).
void fieldData (vtk::formatter &fmt, label nFields)
 Emit "FIELD FieldData <n>".
void beginFieldData (vtk::formatter &fmt, label nFields)
 Emit legacy FIELD FieldData nFields.
void beginCellData (vtk::formatter &fmt, label nCells, label nFields)
 Emit legacy CELL_DATA nCells, FIELD FieldData nFields.
void beginPointData (vtk::formatter &fmt, label nPoints, label nFields)
 Emit legacy POINT_DATA nPoints, FIELD FieldData nFields.
void writeTimeValue (vtk::formatter &fmt, scalar timeValue)
 Emit "TimeValue" for a FIELD entry (name as per Catalyst output).
template<direction nComp>
void floatField (vtk::formatter &fmt, const word &name, const label nEntries)
 Start output of float field with the specified name.
template<direction nComp>
void doubleField (vtk::formatter &fmt, const word &name, const label nEntries)
 Start output of double field with the specified name.
template<direction nComp>
void intField (vtk::formatter &fmt, const word &name, const label nEntries)
 Start output of int field with the specified name.

Detailed Description

Original source file foamVtkOutput.H

Definition in file foamVtkOutput.H.