VTKsurfaceFormatCore Class Reference

Internal class used by the VTKsurfaceFormat Format is LEGACY_ASCII. More...

Inheritance diagram for VTKsurfaceFormatCore:
[legend]

Static Protected Member Functions

static vtk::outputOptions formatOptions (const dictionary &dict, vtk::outputOptions opts=vtk::formatType::LEGACY_ASCII)
 Extract format options (default format LEGACY_ASCII) More...
 
static void writeHeader (vtk::formatter &format, const UList< point > &pts)
 Write header information with points. More...
 
static void writeCellData (vtk::formatter &format, const UList< surfZone > &zones)
 Write regions (zones) information as CellData. More...
 
static void writeCellData (vtk::formatter &format, const labelUList &zoneIds)
 Write regions (zones) information as CellData. More...
 

Detailed Description

Internal class used by the VTKsurfaceFormat Format is LEGACY_ASCII.


Output Options

Property Description Required Default
format ascii or binary format no ascii
precision Write precision in ascii no same as IOstream
Source files

Definition at line 77 of file VTKsurfaceFormatCore.H.

Member Function Documentation

◆ formatOptions()

Foam::vtk::outputOptions formatOptions ( const dictionary dict,
vtk::outputOptions  opts = vtk::formatType::LEGACY_ASCII 
)
staticprotected

Extract format options (default format LEGACY_ASCII)

Definition at line 34 of file VTKsurfaceFormatCore.C.

References outputOptions::append(), outputOptions::ascii(), IOstreamOption::ASCII, IOstream::defaultPrecision(), dict, IOstreamOption::formatEnum(), dictionary::getOrDefault(), outputOptions::legacy(), and outputOptions::precision().

Here is the call graph for this function:

◆ writeHeader()

void writeHeader ( vtk::formatter format,
const UList< point > &  pts 
)
staticprotected

Write header information with points.

Definition at line 58 of file VTKsurfaceFormatCore.C.

References Foam::vtk::legacy::beginPoints(), clock::dateTime(), format(), UList< T >::size(), VTKsurfaceFormatCore::writeHeader(), and Foam::vtk::writeList().

Referenced by VTKsurfaceFormatCore::writeHeader().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeCellData() [1/2]

void writeCellData ( vtk::formatter format,
const UList< surfZone > &  zones 
)
staticprotected

Write regions (zones) information as CellData.

Definition at line 77 of file VTKsurfaceFormatCore.C.

References Foam::vtk::legacy::beginCellData(), format(), nFaces(), and Foam::vtk::write().

Here is the call graph for this function:

◆ writeCellData() [2/2]

void writeCellData ( vtk::formatter format,
const labelUList zoneIds 
)
staticprotected

Write regions (zones) information as CellData.

Definition at line 105 of file VTKsurfaceFormatCore.C.

References Foam::vtk::legacy::beginCellData(), format(), nFaces(), UList< T >::size(), and Foam::vtk::writeList().

Here is the call graph for this function:

The documentation for this class was generated from the following files: