------------------------------------------------------------------------------
| 266 | |
| 267 | //------------------------------------------------------------------------------ |
| 268 | int vtkAMREnzoReader::GetBlockLevel(int blockIdx) |
| 269 | { |
| 270 | assert("pre: Internal Enzo Reader is nullptr" && (this->Internal != nullptr)); |
| 271 | |
| 272 | if (!this->IsReady) |
| 273 | { |
| 274 | return (-1); |
| 275 | } |
| 276 | |
| 277 | this->Internal->ReadMetaData(); |
| 278 | |
| 279 | if (blockIdx < 0 || blockIdx >= this->Internal->NumberOfBlocks) |
| 280 | { |
| 281 | vtkErrorMacro("Block Index (" << blockIdx << ") is out-of-bounds!"); |
| 282 | return (-1); |
| 283 | } |
| 284 | return (this->Internal->Blocks[blockIdx + 1].Level); |
| 285 | } |
| 286 | |
| 287 | //------------------------------------------------------------------------------ |
| 288 | int vtkAMREnzoReader::GetNumberOfBlocks() |
no test coverage detected