Internal class used by the VTPsurfaceFormat. The default format is INLINE_BASE64. More...
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... | |
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 |
Definition at line 77 of file VTPsurfaceFormatCore.H.
|
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().
|
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().
|
staticprotected |
Write footer.
Definition at line 100 of file VTPsurfaceFormatCore.C.
References format(), and Foam::vtk::POLY_DATA.
|
staticprotected |
Write regions (zones) information as CellData.
Definition at line 112 of file VTPsurfaceFormatCore.C.
References format(), nFaces(), and Foam::vtk::write().
|
staticprotected |
Write regions (zones) information as CellData.
Definition at line 147 of file VTPsurfaceFormatCore.C.
References format(), UList< T >::size(), and Foam::vtk::writeList().