------------------------------------------------------------------------------
| 638 | |
| 639 | //------------------------------------------------------------------------------ |
| 640 | void vtkStringArray::InsertTuplesStartingAt( |
| 641 | vtkIdType dstStart, vtkIdList* srcIds, vtkAbstractArray* source) |
| 642 | { |
| 643 | vtkStringArray* sa = vtkArrayDownCast<vtkStringArray>(source); |
| 644 | if (!sa) |
| 645 | { |
| 646 | vtkWarningMacro("Input and outputs array data types do not match."); |
| 647 | return; |
| 648 | } |
| 649 | |
| 650 | if (this->NumberOfComponents != source->GetNumberOfComponents()) |
| 651 | { |
| 652 | vtkWarningMacro("Input and output component sizes do not match."); |
| 653 | return; |
| 654 | } |
| 655 | |
| 656 | vtkIdType numIds = srcIds->GetNumberOfIds(); |
| 657 | |
| 658 | for (vtkIdType idIndex = 0; idIndex < numIds; ++idIndex) |
| 659 | { |
| 660 | vtkIdType numComp = this->NumberOfComponents; |
| 661 | vtkIdType srcLoc = srcIds->GetId(idIndex) * this->NumberOfComponents; |
| 662 | vtkIdType dstLoc = (dstStart + idIndex) * this->NumberOfComponents; |
| 663 | while (numComp-- > 0) |
| 664 | { |
| 665 | this->InsertValue(dstLoc++, sa->GetValue(srcLoc++)); |
| 666 | } |
| 667 | } |
| 668 | |
| 669 | this->DataChanged(); |
| 670 | } |
| 671 | |
| 672 | //------------------------------------------------------------------------------ |
| 673 | void vtkStringArray::InsertTuples( |
nothing calls this directly
no test coverage detected