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

Method RemoveTuple

Common/Core/vtkBitArray.cxx:714–729  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

712
713//------------------------------------------------------------------------------
714void vtkBitArray::RemoveTuple(vtkIdType id)
715{
716 if (id < 0 || id >= this->GetNumberOfTuples())
717 {
718 // Nothing to be done
719 return;
720 }
721 if (id == this->GetNumberOfTuples() - 1)
722 {
723 // To remove last item, just decrease the size by one
724 this->RemoveLastTuple();
725 return;
726 }
727 this->DataChanged();
728 vtkErrorMacro("Not yet implemented...");
729}
730
731//------------------------------------------------------------------------------
732void vtkBitArray::RemoveFirstTuple()

Callers 9

RemoveFirstTupleMethod · 0.95
RequestInformationMethod · 0.45
LoadMetaDataMethod · 0.45
RequestDataObjectMethod · 0.45
DeselectPointMethod · 0.45
RemoveFirstTupleFunction · 0.45
RemovePointFunction · 0.45
TestDataArrayFunction · 0.45

Calls 3

RemoveLastTupleMethod · 0.95
DataChangedMethod · 0.95
GetNumberOfTuplesMethod · 0.45

Tested by 1

TestDataArrayFunction · 0.36