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

Method GetHeaderSize

IO/Image/vtkImageReader2.cxx:513–529  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

511
512//------------------------------------------------------------------------------
513unsigned long vtkImageReader2::GetHeaderSize()
514{
515 unsigned long firstIdx;
516
517 if (this->FileNames)
518 {
519 // if FileNames is used, indexing always starts at zero
520 firstIdx = 0;
521 }
522 else
523 {
524 // FilePrefix uses the DataExtent to figure out the first slice index
525 firstIdx = this->DataExtent[4];
526 }
527
528 return this->GetHeaderSize(firstIdx);
529}
530
531//------------------------------------------------------------------------------
532unsigned long vtkImageReader2::GetHeaderSize(unsigned long idx)

Callers 5

SeekFileMethod · 0.95
OpenAndSeekFileMethod · 0.45
ComputeStartOffsetMethod · 0.45
RequestDataMethod · 0.45

Calls 2

ComputeDataIncrementsMethod · 0.95

Tested by

no test coverage detected