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

Method GetImageAttributes

IO/HDF/vtkHDFReaderImplementation.cxx:516–537  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

514
515//------------------------------------------------------------------------------
516bool vtkHDFReader::Implementation::GetImageAttributes(
517 int WholeExtent[6], double Origin[3], double Spacing[3])
518{
519
520 if (!this->GetAttribute("WholeExtent", 6, WholeExtent))
521 {
522 vtkErrorWithObjectMacro(this->Reader, "Could not get WholeExtent attribute");
523 return false;
524 }
525 if (!this->GetAttribute("Origin", 3, Origin))
526 {
527 vtkErrorWithObjectMacro(this->Reader, "Could not get Origin attribute");
528 return false;
529 }
530 if (!this->GetAttribute("Spacing", 3, Spacing))
531 {
532 vtkErrorWithObjectMacro(this->Reader, "Could not get Spacing attribute");
533 return false;
534 }
535
536 return true;
537}
538
539//------------------------------------------------------------------------------
540bool vtkHDFReader::Implementation::ComputeAMROffsetsPerLevels(

Callers 2

SetupInformationMethod · 0.45
ReadMethod · 0.45

Calls 1

GetAttributeMethod · 0.95

Tested by

no test coverage detected