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

Method RemoveArray

Common/DataModel/vtkDataSetAttributes.cxx:765–785  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

763
764//------------------------------------------------------------------------------
765void 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
787namespace
788{

Callers 2

PassDataMethod · 0.95
SetAttributeMethod · 0.95

Calls 1

GetNumberOfArraysMethod · 0.45

Tested by

no test coverage detected