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

Method GetObjectArrayName

IO/Exodus/vtkExodusIIReader.cxx:4961–4977  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4959}
4960
4961const char* vtkExodusIIReaderPrivate::GetObjectArrayName(int otyp, int i)
4962{
4963 std::map<int, std::vector<ArrayInfoType>>::iterator it = this->ArrayInfo.find(otyp);
4964 if (it != this->ArrayInfo.end())
4965 {
4966 int N = (int)it->second.size();
4967 if (i < 0 || i >= N)
4968 {
4969 vtkDebugMacro("You requested array " << i << " in a collection of only " << N << " arrays.");
4970 return nullptr;
4971 }
4972 return it->second[i].Name.c_str();
4973 }
4974 vtkDebugMacro("Could not find collection of arrays for objects of type "
4975 << otyp << " (" << objtype_names[this->GetObjectTypeIndexFromObjectType(otyp)] << ").");
4976 return nullptr;
4977}
4978
4979int vtkExodusIIReaderPrivate::GetNumberOfObjectArrayComponents(int otyp, int i)
4980{

Callers 14

SetUpEmptyGridMethod · 0.95
GetGlobalResultArrayNameFunction · 0.80
GetPointResultArrayNameFunction · 0.80
GetEdgeResultArrayNameFunction · 0.80
GetFaceResultArrayNameFunction · 0.80
GetObjectArrayIndexMethod · 0.80

Calls 5

findMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
c_strMethod · 0.45

Tested by 1