35 #ifndef vtkWritePolyData_H
36 #define vtkWritePolyData_H
56 template<
class Types,
class Type>
75 fieldTypeValues.set(fieldi, &fieldTypeValue);
94 template<
class Type,
class ... Args>
104 const word& fieldName,
105 const bool fieldIsPointValue,
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,
202 const LineList& lines,
203 const FaceList& faces,
Pre-declare SubField and related Field type.
void size(const label)
Override size to be inconsistent with allocated storage.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
A class for handling file names.
General write functions for vtk polygonal data files.
A class for handling words, derived from string.
static List< word > fieldNames
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 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 setFieldTypeValue(UPtrList< const Field< Types >> &fieldTypeValues, const label fieldi, const Field< Type > &fieldTypeValue)
Helper for templated write.
void unpackFieldTypeValues(wordList &fieldNames, boolList &fieldIsPointValues, UPtrList< const Field< label >> &fieldLabelValues #define FieldTypeValuesNonConstArg(Type, nullArg))
Helper for templated write.
pointField vertices(const blockVertexList &bvl)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
GeometricField< Type, pointPatchField, pointMesh > PointField
FOR_ALL_FIELD_TYPES(makeFieldSourceTypedef)
Foam::argList args(argc, argv)
#define FieldTypeValuesConstArg(Type, nullArg)
#define FieldTypeValuesParameter(Type, nullArg)
#define SetFieldTypeValue(Type, nullArg)
#define FieldTypeValuesNonConstArg(Type, nullArg)