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

Method GetBlockLevel

IO/AMR/vtkAMRFlashReader.cxx:95–110  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

93
94//------------------------------------------------------------------------------
95int vtkAMRFlashReader::GetBlockLevel(int blockIdx)
96{
97 assert("pre: Internal Flash Reader is nullptr" && (this->Internal != nullptr));
98 if (!this->IsReady)
99 {
100 return (-1);
101 }
102
103 this->Internal->ReadMetaData();
104 if (blockIdx < 0 || blockIdx >= this->Internal->NumberOfBlocks)
105 {
106 vtkErrorMacro("Block Index (" << blockIdx << ") is out-of-bounds!");
107 return (-1);
108 }
109 return (this->Internal->Blocks[blockIdx].Level - 1);
110}
111
112//------------------------------------------------------------------------------
113int vtkAMRFlashReader::GetNumberOfBlocks()

Callers

nothing calls this directly

Calls 2

assertFunction · 0.50
ReadMetaDataMethod · 0.45

Tested by

no test coverage detected