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

Method GetAbstractArray

Common/DataModel/vtkFieldData.cxx:495–502  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Return the ith array in the field. A nullptr is returned if the index i is out of range.

Source from the content-addressed store, hash-verified

493// Return the ith array in the field. A nullptr is returned if the index i is out
494// of range.
495vtkAbstractArray* vtkFieldData::GetAbstractArray(int i)
496{
497 if (i < 0 || i >= this->GetNumberOfArrays() || this->Data == nullptr)
498 {
499 return nullptr;
500 }
501 return this->Data[i];
502}
503
504//------------------------------------------------------------------------------
505// Copy a field by creating new data arrays

Callers 15

GetArrayMethod · 0.95
DeepCopyMethod · 0.95
AddArrayMethod · 0.95
GetRangeMethod · 0.95
GetFiniteRangeMethod · 0.95
RemoveArrayMethod · 0.95
PassDataMethod · 0.95
GetNumberOfTuplesMethod · 0.95
GetFieldAsFloatFunction · 0.80
WriteDataMethod · 0.80
WriteDataMethod · 0.80

Calls 2

GetNumberOfArraysMethod · 0.45
GetArrayNameMethod · 0.45

Tested by 15

CheckOBJGroupsFunction · 0.64
TestOBJReaderMaterialsFunction · 0.64
TestOpenFOAMReaderRegExFunction · 0.64
TestNetCDFCAMReaderFunction · 0.64
CompareDataCommonFunction · 0.64
AreHTSameFunction · 0.64
TestNewickTreeWriterFunction · 0.64
VerifyArrayValueFunction · 0.64
VerifyArrayAttributeFunction · 0.64