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

Method CopyData

Common/DataModel/vtkDataSetAttributesFieldList.cxx:639–657  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

637
638//------------------------------------------------------------------------------
639void vtkDataSetAttributesFieldList::CopyData(int inputIndex, vtkDataSetAttributes* input,
640 vtkIdType fromId, vtkDataSetAttributes* output, vtkIdType toId) const
641{
642 auto& internals = *this->Internals;
643 for (auto& pair : internals.Fields)
644 {
645 auto& fieldInfo = pair.second;
646 if (inputIndex < 0 || inputIndex > static_cast<int>(fieldInfo.Location.size()))
647 {
648 vtkGenericWarningMacro("Incorrect/unknown inputIndex specified : " << inputIndex);
649 return;
650 }
651 else if (fieldInfo.OutputLocation != -1 && fieldInfo.Location[inputIndex] != -1)
652 {
653 output->CopyTuple(input->GetAbstractArray(fieldInfo.Location[inputIndex]),
654 output->GetAbstractArray(fieldInfo.OutputLocation), fromId, toId);
655 }
656 }
657}
658
659//------------------------------------------------------------------------------
660void vtkDataSetAttributesFieldList::CopyData(int inputIndex, vtkDataSetAttributes* input,

Callers

nothing calls this directly

Calls 4

CopyTupleMethod · 0.80
GetAbstractArrayMethod · 0.80
CopyTuplesMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected