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

Method GetTuples

Common/Core/vtkStringArray.cxx:745–767  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

743
744//------------------------------------------------------------------------------
745void vtkStringArray::GetTuples(vtkIdList* indices, vtkAbstractArray* aa)
746{
747 if (aa == nullptr)
748 {
749 vtkErrorMacro(<< "GetTuples: Output array is null!");
750 return;
751 }
752
753 vtkStringArray* output = vtkArrayDownCast<vtkStringArray>(aa);
754
755 if (output == nullptr)
756 {
757 vtkErrorMacro(<< "Can't copy values from a string array into an array "
758 << "of type " << aa->GetDataTypeAsString());
759 return;
760 }
761
762 for (vtkIdType i = 0; i < indices->GetNumberOfIds(); ++i)
763 {
764 vtkIdType index = indices->GetId(i);
765 output->SetValue(i, this->GetValue(index));
766 }
767}
768
769//------------------------------------------------------------------------------
770void vtkStringArray::GetTuples(vtkIdType startIndex, vtkIdType endIndex, vtkAbstractArray* aa)

Callers 15

WriteDataMethod · 0.45
WriteTrees_1Method · 0.45
WriteTrees_2Method · 0.45
GetFieldMethod · 0.45
ReadVariableElementsMethod · 0.45
BuildTreeMethod · 0.45
GetNextCellMethod · 0.45
operator()Method · 0.45
GetNextCellMethod · 0.45
doStringArrayTestFunction · 0.45
benchmarkFunction · 0.45
PermuteToPolygonMethod · 0.45

Calls 4

GetNumberOfIdsMethod · 0.45
GetIdMethod · 0.45
SetValueMethod · 0.45
GetValueMethod · 0.45

Tested by 1

benchmarkFunction · 0.36