Functions | |
template<class Types , class Type > | |
void | setFieldTypeValue (UPtrList< const Field< Types >> &fieldTypeValues, const label fieldi, const Field< Type > &fieldTypeValue) |
Helper for templated write. More... | |
template<class Type > | |
void | setFieldTypeValue (UPtrList< const Field< Type >> &fieldTypeValues, const label fieldi, const Field< Type > &fieldTypeValue) |
Helper for templated write. More... | |
void | unpackFieldTypeValues (wordList &fieldNames, boolList &fieldIsPointValues, UPtrList< const Field< label >> &fieldLabelValues #define FieldTypeValuesNonConstArg(Type, nullArg)) |
Helper for templated write. More... | |
template<class Type , class ... Args> | |
void | unpackFieldTypeValues (wordList &fieldNames, boolList &fieldIsPointValues, UPtrList< const Field< label >> &fieldLabelValues #define FieldTypeValuesNonConstArg(Type, nullArg) FOR_ALL_FIELD_TYPES(FieldTypeValuesNonConstArg), const word &fieldName, const bool fieldIsPointValue, const Field< Type > &fieldTypeValue, Args &... args) |
Helper for templated write. More... | |
template<class Type , class DataType > | |
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. More... | |
template<class PointField , class VertexList , class LineList , class FaceList > | |
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. More... | |
template<class PointField , class VertexList , class LineList , class FaceList , class ... Args> | |
void | write (const fileName &file, const word &title, const bool binary, const PointField &points, const VertexList &vertices, const LineList &lines, const FaceList &faces, const Args &... args) |
Write VTK polygonal data to a file. Takes any number of name,. More... | |
|
inline |
Helper for templated write.
Definition at line 56 of file vtkWritePolyData.H.
Referenced by unpackFieldTypeValues().
|
inline |
Helper for templated write.
Definition at line 67 of file vtkWritePolyData.H.
References unpackFieldTypeValues().
|
inline |
Helper for templated write.
Definition at line 79 of file vtkWritePolyData.H.
Referenced by setFieldTypeValue(), and unpackFieldTypeValues().
|
inline |
Helper for templated write.
Definition at line 94 of file vtkWritePolyData.H.
References field(), FieldTypeValuesConstArg, FieldTypeValuesParameter, Foam::file, FOR_ALL_FIELD_TYPES, points, setFieldTypeValue(), SetFieldTypeValue, List< T >::size(), unpackFieldTypeValues(), Foam::vertices(), write(), and writeFieldTypeValues().
void Foam::vtkWritePolyData::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.
Referenced by unpackFieldTypeValues().
void Foam::vtkWritePolyData::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 | FieldTypeValuesConstArgType, nullArg | ||
) |
Write VTK polygonal data to a file. Takes a PtrList of fields of labels and.
of every primitive type. Each PtrList should be the length of the total number of fields and only one PtrList should be non-null for each field index.
Referenced by searchableSurfaces::checkIntersection(), unpackFieldTypeValues(), and vtkSurfaceWriter::write().
|
inline |
Write VTK polygonal data to a file. Takes any number of name,.
isPointValues, values arguments at the end. E.g.;
write ( Output options "myPolyData.vtk", "myPolyData", false,
Geometry pp.localPoints(), labelList(), labelListList(), pp.localFaces(),
Fields "faceIDs", true, pp.addressing(), "facePressures", false, Field<scalar>(pp.size(), ...), "pointVelocities", true, Field<vector>(pp.nPoints(), ...) );