VTPsurfaceFormatCore Class Reference

Internal class used by the VTPsurfaceFormat. The default format is INLINE_BASE64. More...

Inheritance diagram for VTPsurfaceFormatCore:
[legend]

Static Protected Member Functions

static vtk::outputOptions formatOptions (const dictionary &dict, vtk::outputOptions opts=vtk::formatType::INLINE_BASE64)
 Extract format options (default format INLINE_BASE64) More...
 
static void writeHeader (vtk::formatter &format, const UList< point > &pts, const label nFaces)
 Write header information with points. More...
 
static void writeFooter (vtk::formatter &format)
 Write footer. 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 VTPsurfaceFormat. The default format is INLINE_BASE64.


Output Options

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

Definition at line 77 of file VTPsurfaceFormatCore.H.

Member Function Documentation

◆ formatOptions()

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

Extract format options (default format INLINE_BASE64)

Definition at line 34 of file VTPsurfaceFormatCore.C.

References outputOptions::append(), outputOptions::ascii(), IOstreamOption::ASCII, IOstreamOption::BINARY, 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,
const label  nFaces 
)
staticprotected

Write header information with points.

Definition at line 58 of file VTPsurfaceFormatCore.C.

References clock::dateTime(), format(), nFaces(), Foam::vtk::NUMBER_OF_POINTS, Foam::vtk::NUMBER_OF_POLYS, Foam::vtk::PIECE, Foam::vtk::POINTS, Foam::vtk::POLY_DATA, UList< T >::size(), VTPsurfaceFormatCore::writeHeader(), and Foam::vtk::writeList().

Referenced by VTPsurfaceFormatCore::writeHeader().

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

◆ writeFooter()

void writeFooter ( vtk::formatter format)
staticprotected

Write footer.

Definition at line 100 of file VTPsurfaceFormatCore.C.

References format(), and Foam::vtk::POLY_DATA.

Here is the call 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 112 of file VTPsurfaceFormatCore.C.

References 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 147 of file VTPsurfaceFormatCore.C.

References format(), 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: