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

Method GetSortedObjectInfo

IO/Exodus/vtkExodusIIReader.cxx:2936–2955  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2934
2935//------------------------------------------------------------------------------
2936vtkExodusIIReaderPrivate::ObjectInfoType* vtkExodusIIReaderPrivate::GetSortedObjectInfo(
2937 int otyp, int k)
2938{
2939 int i = this->GetObjectTypeIndexFromObjectType(otyp);
2940 if (i < 0)
2941 {
2942 vtkDebugMacro("Could not find collection of objects with type " << otyp << ".");
2943 return nullptr;
2944 }
2945 int N = this->GetNumberOfObjectsAtTypeIndex(i);
2946 if (k < 0 || k >= N)
2947 {
2948 const char* otname = i >= 0 ? objtype_names[i] : "object";
2949 static_cast<void>(otname); // not referenced warning
2950 vtkDebugMacro(
2951 "You requested " << otname << " " << k << " in a collection of only " << N << " objects.");
2952 return nullptr;
2953 }
2954 return this->GetObjectInfo(i, this->SortedObjectIndices[otyp][k]);
2955}
2956
2957//------------------------------------------------------------------------------
2958vtkExodusIIReaderPrivate::ObjectInfoType* vtkExodusIIReaderPrivate::GetUnsortedObjectInfo(

Callers 6

GetObjectNameMethod · 0.95
GetObjectIdMethod · 0.95
GetObjectSizeMethod · 0.95
GetObjectStatusMethod · 0.95
SetObjectStatusMethod · 0.95
RequestInformationMethod · 0.80

Tested by

no test coverage detected