35 #ifndef vtkWritePolyData_H 36 #define vtkWritePolyData_H 56 template<
class Types,
class Type>
75 fieldTypeValues.set(fieldi, &fieldTypeValue);
88 #undef FieldTypeValuesNonConstArg
94 template<
class Type,
class ... Args>
103 #undef FieldTypeValuesNonConstArg
104 const word& fieldName,
105 const bool fieldIsPointValue,
110 const label fieldi = fieldNames.
size() - 1 -
sizeof...(Args)/3;
112 fieldNames[fieldi] = fieldName;
113 fieldIsPointValues[fieldi] = fieldIsPointValue;
115 #define SetFieldTypeValue(Type, nullArg) \ 116 setFieldTypeValue(field##Type##Values, fieldi, fieldTypeValue); 118 #undef SetFieldTypeValue 134 template<
class Type,
class DataType>
142 const bool writePointValues
150 template<
class Po
intField,
class VertexList,
class LineList,
class FaceList>
158 const LineList& lines,
159 const FaceList& faces,
201 const VertexList& vertices,
202 const LineList& lines,
203 const FaceList& faces,
#define FieldTypeValuesParameter(Type, nullArg)
A class for handling file names.
void unpackFieldTypeValues(wordList &fieldNames, boolList &fieldIsPointValues, UPtrList< const Field< label >> &fieldLabelValues #define FieldTypeValuesNonConstArg(Type, nullArg))
Helper for templated write.
void writeFieldTypeValues(std::ostream &os, const bool binary, const wordList &fieldNames, const boolList &fieldIsPointValues, const UPtrList< const Field< Type >> &fieldTypeValues, const bool writePointValues)
Write the field values out for a type.
void size(const label)
Override size to be inconsistent with allocated storage.
General write functions for vtk polygonal data files.
#define FieldTypeValuesConstArg(Type, nullArg)
pointField vertices(const blockVertexList &bvl)
#define FieldTypeValuesNonConstArg(Type, nullArg)
Pre-declare SubField and related Field type.
A class for handling words, derived from string.
GeometricField< Type, pointPatchField, pointMesh > PointField
#define SetFieldTypeValue(Type, nullArg)
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
void write(const fileName &file, const word &title, const bool binary, const PointField &points, const VertexList &vertices, const LineList &lines, const FaceList &faces, const wordList &fieldNames, const boolList &fieldIsPointValues, const UPtrList< const Field< label >> &fieldLabelValues #define FieldTypeValuesConstArg(Type, nullArg))
Write VTK polygonal data to a file. Takes a PtrList of fields of labels and.
void setFieldTypeValue(UPtrList< const Field< Types >> &fieldTypeValues, const label fieldi, const Field< Type > &fieldTypeValue)
Helper for templated write.
FOR_ALL_FIELD_TYPES(DefineFvWallInfoType)
Foam::argList args(argc, argv)