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

Method InsertTuple

Common/Core/vtkBitArray.cxx:421–442  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Description: Insert the jth tuple in the source array, at ith location in this array. Note that memory allocation is performed as necessary to hold the data.

Source from the content-addressed store, hash-verified

419// Insert the jth tuple in the source array, at ith location in this array.
420// Note that memory allocation is performed as necessary to hold the data.
421void vtkBitArray::InsertTuple(vtkIdType i, vtkIdType j, vtkAbstractArray* source)
422{
423 vtkBitArray* ba = vtkArrayDownCast<vtkBitArray>(source);
424 if (!ba)
425 {
426 vtkWarningMacro("Input and output arrays types do not match.");
427 return;
428 }
429
430 vtkIdType loci = i * this->NumberOfComponents;
431 vtkIdType locj = j * ba->GetNumberOfComponents();
432 vtkIdType previousMaxId = this->MaxId;
433 for (vtkIdType cur = 0; cur < this->NumberOfComponents; cur++)
434 {
435 this->InsertValue(loci + cur, ba->GetValue(locj + cur));
436 }
437 if (previousMaxId / 8 != this->MaxId / 8)
438 {
439 this->InitializeUnusedBitsInLastByte();
440 }
441 this->DataChanged();
442}
443
444//------------------------------------------------------------------------------
445void vtkBitArray::InsertTuplesStartingAt(

Callers 15

RequestDataMethod · 0.45
ReadBladeDataMethod · 0.45
MoveInternalMeshMethod · 0.45
GetVolFieldAtTimeStepMethod · 0.45
duplicateCellPointFunction · 0.45
ReadTrees_1Method · 0.45
TCoordsFromStringMethod · 0.45
ReadMultiSurfaceMethod · 0.45
ReadVectorsPerNodeMethod · 0.45
ReadTensorsPerNodeMethod · 0.45
ReadVectorsPerElementMethod · 0.45

Calls 5

InsertValueMethod · 0.95
DataChangedMethod · 0.95
GetNumberOfComponentsMethod · 0.45
GetValueMethod · 0.45

Tested by 5

benchmarkFunction · 0.36
TestVariantArrayFunction · 0.36
BuildTreeFunction · 0.36
CopyInputTreeToOutputFunction · 0.36
TestNamedComponentsFunction · 0.36