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

Method GetAttributeValueAsString

IO/MINC/vtkMINCImageAttributes.cxx:653–666  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

651
652//------------------------------------------------------------------------------
653const char* vtkMINCImageAttributes::GetAttributeValueAsString(
654 const char* variable, const char* attribute)
655{
656 vtkDataArray* array = this->GetAttributeValueAsArray(variable, attribute);
657
658 // Return nullptr if not found
659 if (array == nullptr)
660 {
661 return nullptr;
662 }
663
664 // Convert any other array to a string.
665 return this->ConvertDataArrayToString(array);
666}
667
668//------------------------------------------------------------------------------
669int vtkMINCImageAttributes::GetAttributeValueAsInt(const char* variable, const char* attribute)

Callers 2

CreateMINCVariablesMethod · 0.80

Calls 2

Tested by

no test coverage detected