Loading...
Searching...
No Matches
foamVtkTools.H File Reference
Include dependency graph for foamVtkTools.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Caching< DataType >
 Bookkeeping for internal caching. More...
struct  Patch
 Convert OpenFOAM patch to vtkPolyData. More...

Namespaces

namespace  Foam::vtk::Tools
 A collection of static methods to assist converting OpenFOAM data structures into VTK internal data structures.
namespace  Foam
 Namespace for OpenFOAM.
namespace  Foam::vtk
 Namespace for handling VTK output. Contains classes and functions for writing VTK file content.

Functions

UList< uint8_t > asUList (vtkUnsignedCharArray *array, const label size)
 Wrap vtkUnsignedCharArray as a UList.
UList< vtkIdType > asUList (vtkIdTypeArray *array, const label size)
 Wrap vtkIdTypeArray as a UList.
vtkSmartPointer< vtkPoints > NewPoints (vtkIdType count)
 Allocate vtkPoints.
vtkSmartPointer< vtkPoints > Points (const UList< point > &pts)
 Return a list of points as vtkPoints.
vtkSmartPointer< vtkPoints > Points (const UList< point > &pts, const labelUList &addr)
 Return an indirect list of points as vtkPoints.
template<class Face>
vtkSmartPointer< vtkCellArray > Faces (const UList< Face > &faces)
 Convert a list of faces (or triFaces) to vtk polygon cells.
vtkSmartPointer< vtkPolyData > Vertices (const UList< point > &pts)
 Return vtkPolyData of vertices for each point.
vtkSmartPointer< vtkPolyData > Vertices (const UList< point > &pts, const labelUList &addr)
 Return vtkPolyData of vertices for each point.
scalarMinMax rangeOf (vtkDataArray *data)
 Min/Max of scalar, or mag() of non-scalars. Includes nullptr check.
template<class Type>
void foamToVtkTuple (float output[], const Type &value)
 Older name for copyTuple.
template<class Type>
void foamToVtkTuple (double output[], const Type &value)
 Older name for copyTuple.
template<class Type>
label transcribeFloatData (vtkDataArray *array, const UList< Type > &input, vtkIdType start=0)
 Copy list to pre-allocated vtk array.
template<class Type, class DataArrayType = vtkFloatArray>
vtkSmartPointer< DataArrayType > zeroField (const word &name, const label size)
 Create named field initialized to zero.
template<class Type, class DataArrayType = vtkFloatArray>
vtkSmartPointer< DataArrayType > convertFieldToVTK (const word &name, const UList< Type > &fld)
 Convert field data to a vtkFloatArray.
template<class Type, class DataArrayType = vtkFloatArray>
vtkSmartPointer< DataArrayType > convertFieldToVTK (const word &name, const UList< Type > &fld, const labelUList &addr)
 Convert field data to a vtkFloatArray, using indirect addressing.
vtkSmartPointer< vtkCellArray > identityVertices (const vtkIdType size)
 An identity list of VTK_VERTEX.

Detailed Description

Original source file foamVtkTools.H

Definition in file foamVtkTools.H.