------------------------------------------------------------------------------
| 637 | |
| 638 | //------------------------------------------------------------------------------ |
| 639 | void 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 | //------------------------------------------------------------------------------ |
| 660 | void vtkDataSetAttributesFieldList::CopyData(int inputIndex, vtkDataSetAttributes* input, |
nothing calls this directly
no test coverage detected