MCPcopy Create free account
hub / github.com/Kitware/VTK / GetNumberOfBlocksInternal

Method GetNumberOfBlocksInternal

IO/Parallel/vtkMultiBlockPLOT3DReader.cxx:3051–3069  ·  view source on GitHub ↗

Read the header and return the number of grids.

Source from the content-addressed store, hash-verified

3049
3050// Read the header and return the number of grids.
3051int vtkMultiBlockPLOT3DReader::GetNumberOfBlocksInternal(FILE* xyzFp, int vtkNotUsed(allocate))
3052{
3053 int numGrid = 0;
3054
3055 if (this->Internal->Settings.MultiGrid)
3056 {
3057 this->SkipByteCount(xyzFp);
3058 this->ReadIntBlock(xyzFp, 1, &numGrid);
3059 this->SkipByteCount(xyzFp);
3060 }
3061 else
3062 {
3063 numGrid = 1;
3064 }
3065
3066 this->Internal->Dimensions.resize(numGrid);
3067
3068 return numGrid;
3069}
3070
3071int vtkMultiBlockPLOT3DReader::ReadGeometryHeader(FILE* fp)
3072{

Callers 4

CanReadBinaryFileMethod · 0.95
ReadGeometryHeaderMethod · 0.95
ReadQHeaderMethod · 0.95
ReadFunctionHeaderMethod · 0.95

Calls 3

SkipByteCountMethod · 0.95
ReadIntBlockMethod · 0.95
resizeMethod · 0.45

Tested by

no test coverage detected