ENH: consolidate vtk classes into 'Foam::vtk' namespace

- elminate the foamVtkFormatter operator() in favour of xmlAttr.
  Improves readability and the purpose is clearer.
This commit is contained in:
Mark Olesen
2017-06-13 14:10:07 +02:00
parent edc1bd2230
commit cde12ad9e5
81 changed files with 1249 additions and 1408 deletions

View File

@ -82,33 +82,33 @@ void writeVTK
if (isA<faceSet>(currentSet))
{
// Faces of set with OpenFOAM faceID as value
foamVtkOutput::writeFaceSet
vtk::writeFaceSet
(
mesh,
currentSet,
mesh.time().path()/vtkBaseName,
foamVtkOutput::formatType::LEGACY_BINARY
vtk::formatType::LEGACY_BINARY
);
}
else if (isA<cellSet>(currentSet))
{
// External faces of cellset with OpenFOAM cellID as value
foamVtkOutput::writeCellSetFaces
vtk::writeCellSetFaces
(
mesh,
currentSet,
mesh.time().path()/vtkBaseName,
foamVtkOutput::formatType::LEGACY_BINARY
vtk::formatType::LEGACY_BINARY
);
}
else if (isA<pointSet>(currentSet))
{
foamVtkOutput::writePointSet
vtk::writePointSet
(
mesh,
currentSet,
mesh.time().path()/vtkBaseName,
foamVtkOutput::formatType::LEGACY_BINARY
vtk::formatType::LEGACY_BINARY
);
}
else