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

Method GetNumberOfObjectArrayComponents

IO/Exodus/vtkExodusIIReader.cxx:4979–4995  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4977}
4978
4979int vtkExodusIIReaderPrivate::GetNumberOfObjectArrayComponents(int otyp, int i)
4980{
4981 std::map<int, std::vector<ArrayInfoType>>::iterator it = this->ArrayInfo.find(otyp);
4982 if (it != this->ArrayInfo.end())
4983 {
4984 int N = (int)it->second.size();
4985 if (i < 0 || i >= N)
4986 {
4987 vtkDebugMacro("You requested array " << i << " in a collection of only " << N << " arrays.");
4988 return 0;
4989 }
4990 return it->second[i].Components;
4991 }
4992 vtkDebugMacro("Could not find collection of arrays for objects of type "
4993 << otyp << " (" << objtype_names[this->GetObjectTypeIndexFromObjectType(otyp)] << ").");
4994 return 0;
4995}
4996
4997int vtkExodusIIReaderPrivate::GetObjectArrayStatus(int otyp, int i)
4998{

Callers 1

SetUpEmptyGridMethod · 0.95

Calls 4

findMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected