Go to the documentation of this file.
45 #ifndef foamVtkOutput_H
46 #define foamVtkOutput_H
91 void writeIdentity(vtk::formatter& fmt,
const label len, label start=0);
103 inline void write(vtk::formatter& fmt,
const Type& val,
const label
n=1);
113 template<
class Type,
unsigned N>
123 const UList<Type>&
values,
133 const UList<Type>&
values,
134 const bitSet& selected
143 const UList<Type>& values1,
144 const UList<Type>& values2,
163 const UList<label>&
values,
164 const globalIndex& procOffset
173 const UList<Type>&
values,
183 const UList<Type>&
values,
184 const bitSet& selected
193 const UList<Type>& values1,
194 const UList<Type>& values2
203 const UList<Type>& values1,
204 const UList<Type>& values2,
220 void fileHeader(std::ostream& os,
const std::string& title,
bool binary);
228 const std::string& title,
229 const std::string& contentType
238 const std::string& title,
245 template<vtk::fileTag ContentType>
246 inline void fileHeader(vtk::formatter& fmt,
const std::string& title);
255 inline void beginPolys(std::ostream& os, label nPolys, label nConnectivity);
259 inline void fieldData(vtk::formatter& fmt, label nFields);
282 inline void writeTimeValue(vtk::formatter& fmt, scalar timeValue);
285 template<direction nComp>
294 template<direction nComp>
303 template<direction nComp>
void writeListParallel(vtk::formatter &fmt, const UList< uint8_t > &values)
Write a list of uint8_t values.
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
void writeIdentity(vtk::formatter &fmt, const label len, label start=0)
Write an identity list of labels.
void beginPolys(std::ostream &os, label nPolys, label nConnectivity)
Emit header for POLYGONS (with trailing newline).
void beginPointData(vtk::formatter &fmt, label nPoints, label nFields)
Emit legacy POINT_DATA nPoints, FIELD FieldData nFields.
void fieldData(vtk::formatter &fmt, label nFields)
Emit "FIELD FieldData <n>".
void writeListsParallel(vtk::formatter &fmt, const UList< Type > &values1, const UList< Type > &values2)
Write a list of values and another list of values.
void beginFieldData(vtk::formatter &fmt, label nFields)
Emit legacy FIELD FieldData nFields.
formatType
The output format type for file contents.
void writeTimeValue(vtk::formatter &fmt, scalar timeValue)
Emit "TimeValue" for a FIELD entry (name as per Catalyst output)
word name(const complex &c)
Return string representation of complex.
void writeList(vtk::formatter &fmt, const UList< uint8_t > &values)
Write a list of uint8_t values.
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.
void beginPoints(std::ostream &os, label nPoints)
Emit header for POINTS (with trailing newline).
void fileHeader(std::ostream &os, const std::string &title, bool binary)
Emit header for legacy file.
fileTag
Some common XML tags for vtk files.
void beginCellData(vtk::formatter &fmt, label nCells, label nFields)
Emit legacy CELL_DATA nCells, FIELD FieldData nFields.
static unsigned int defaultPrecision()
Return the default precision.
void floatField(vtk::formatter &fmt, const word &name, const label nEntries)
Start output of float field with the specified name.
void intField(vtk::formatter &fmt, const word &name, const label nEntries)
Start output of int field with the specified name.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
autoPtr< vtk::formatter > newFormatter(std::ostream &os, unsigned prec=IOstream::defaultPrecision())
Return a default asciiFormatter.
UList< label > labelUList
A UList of labels.
void doubleField(vtk::formatter &fmt, const word &name, const label nEntries)
Start output of double field with the specified name.