Foam::vtkWritePolyData Namespace Reference

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...
 

Function Documentation

◆ setFieldTypeValue() [1/2]

void Foam::vtkWritePolyData::setFieldTypeValue ( UPtrList< const Field< Types >> &  fieldTypeValues,
const label  fieldi,
const Field< Type > &  fieldTypeValue 
)
inline

Helper for templated write.

Definition at line 57 of file vtkWritePolyData.H.

Referenced by unpackFieldTypeValues().

Here is the caller graph for this function:

◆ setFieldTypeValue() [2/2]

void Foam::vtkWritePolyData::setFieldTypeValue ( UPtrList< const Field< Type >> &  fieldTypeValues,
const label  fieldi,
const Field< Type > &  fieldTypeValue 
)
inline

Helper for templated write.

Definition at line 68 of file vtkWritePolyData.H.

References unpackFieldTypeValues().

Here is the call graph for this function:

◆ unpackFieldTypeValues() [1/2]

void Foam::vtkWritePolyData::unpackFieldTypeValues ( wordList fieldNames,
boolList fieldIsPointValues,
UPtrList< const Field< label >> &fieldLabelValues #define   FieldTypeValuesNonConstArgType, nullArg 
)
inline

Helper for templated write.

Definition at line 80 of file vtkWritePolyData.H.

Referenced by setFieldTypeValue(), and unpackFieldTypeValues().

Here is the caller graph for this function:

◆ unpackFieldTypeValues() [2/2]

void Foam::vtkWritePolyData::unpackFieldTypeValues ( wordList fieldNames,
boolList fieldIsPointValues,
UPtrList< const Field< label >> &fieldLabelValues #define   FieldTypeValuesNonConstArgType, nullArg) FOR_ALL_FIELD_TYPES(FieldTypeValuesNonConstArg,
const word fieldName,
const bool  fieldIsPointValue,
const Field< Type > &  fieldTypeValue,
Args &...  args 
)
inline

◆ 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().

Here is the caller graph for this function:

◆ write() [1/2]

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(), patchToPatch::intersectPatches(), intersection::srcBoxStatic(), unpackFieldTypeValues(), vtkSetWriter::write(), vtkSurfaceWriter::write(), and Foam::triIntersect::writeTriProjection().

Here is the caller graph for this function:

◆ write() [2/2]

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 Args &...  args 
)
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(), ...) );