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

Method GetArray

Common/DataModel/vtkArrayData.cxx:113–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113vtkArray* vtkArrayData::GetArray(vtkIdType index)
114{
115 if (index < 0 || static_cast<size_t>(index) >= this->Implementation->Arrays.size())
116 {
117 vtkErrorMacro(<< "Array index out-of-range.");
118 return nullptr;
119 }
120
121 return this->Implementation->Arrays[static_cast<size_t>(index)];
122}
123
124vtkArray* vtkArrayData::GetArrayByName(const char* name)
125{

Callers 15

GetArrayByNameMethod · 0.95
GetSelectedArrayMethod · 0.45
PopulateHistogramsFunction · 0.45
UpdateLayoutMethod · 0.45
CopyPointDataMethod · 0.45
CopyCellDataMethod · 0.45
FieldArrayExistsMethod · 0.45
DataSetsEqualFunction · 0.45
RequestDataMethod · 0.45
ExecuteMethod · 0.45
ExecuteMethod · 0.45
TestNaiveImplementationFunction · 0.45

Calls 1

sizeMethod · 0.45

Tested by 15

DataSetsEqualFunction · 0.36
RequestDataMethod · 0.36
ExecuteMethod · 0.36
ExecuteMethod · 0.36
TestNaiveImplementationFunction · 0.36
TestMultiTimeStepFunction · 0.36
TestTemporalAlgoFunction · 0.36
TestTemporalAlgoInSituFunction · 0.36
CheckPerBlockFieldDataFunction · 0.36
testImportExportMethod · 0.36
testMethod · 0.36