------------------------------------------------------------------------------
| 763 | |
| 764 | //------------------------------------------------------------------------------ |
| 765 | void vtkDataSetAttributes::RemoveArray(int index) |
| 766 | { |
| 767 | if (index < 0 || index >= this->GetNumberOfArrays()) |
| 768 | { |
| 769 | return; |
| 770 | } |
| 771 | this->Superclass::RemoveArray(index); |
| 772 | |
| 773 | // Adjust attribute types |
| 774 | for (int attributeType = 0; attributeType < NUM_ATTRIBUTES; ++attributeType) |
| 775 | { |
| 776 | if (this->AttributeIndices[attributeType] == index) |
| 777 | { |
| 778 | this->AttributeIndices[attributeType] = -1; |
| 779 | } |
| 780 | else if (this->AttributeIndices[attributeType] > index) |
| 781 | { |
| 782 | this->AttributeIndices[attributeType]--; |
| 783 | } |
| 784 | } |
| 785 | } |
| 786 | |
| 787 | namespace |
| 788 | { |
no test coverage detected