35 #ifndef vtkWritePolyData_H 36 #define vtkWritePolyData_H 55 template<
class Types,
class Type>
74 fieldTypeValues.set(fieldi, &fieldTypeValue);
87 #undef FieldTypeValuesNonConstArg
93 template<
class Type,
class ... Args>
102 #undef FieldTypeValuesNonConstArg
103 const word& fieldName,
104 const bool fieldIsPointValue,
109 const label fieldi = fieldNames.
size() - 1 -
sizeof...(Args)/3;
111 fieldNames[fieldi] = fieldName;
112 fieldIsPointValues[fieldi] = fieldIsPointValue;
114 #define SetFieldTypeValue(Type, nullArg) \ 115 setFieldTypeValue(field##Type##Values, fieldi, fieldTypeValue); 117 #undef SetFieldTypeValue 133 template<
class Type,
class DataType>
141 const bool writePointValues
149 template<
class Po
intField,
class VertexList,
class LineList,
class FaceList>
157 const LineList& lines,
158 const FaceList& faces,
200 const VertexList& vertices,
201 const LineList& lines,
202 const FaceList& faces,
#define FieldTypeValuesParameter(Type, nullArg)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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 FOR_ALL_FIELD_TYPES(Macro,...)
#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.
Foam::argList args(argc, argv)