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

Function CollectMask

Filters/ParallelMPI/vtkHyperTreeGridRedistribute.cxx:83–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void CollectMask(vtkHyperTreeGridNonOrientedCursor* cursor, vtkBitArray* maskBuffer, int& offset)
84{
85 maskBuffer->InsertValue(offset++, cursor->IsMasked());
86
87 if (cursor->IsMasked())
88 {
89 return;
90 }
91
92 if (!cursor->IsLeaf())
93 {
94 for (int ichild = 0; ichild < cursor->GetNumberOfChildren(); ++ichild)
95 {
96 cursor->ToChild(ichild);
97 ::CollectMask(cursor, maskBuffer, offset);
98 cursor->ToParent();
99 }
100 }
101}
102
103void SetMaskValues(vtkHyperTreeGridNonOrientedCursor* cursor, vtkBitArray* maskBuffer,
104 vtkBitArray* destMask, int& offset)

Callers 1

ExchangeMaskMethod · 0.85

Calls 6

InsertValueMethod · 0.45
IsMaskedMethod · 0.45
IsLeafMethod · 0.45
GetNumberOfChildrenMethod · 0.45
ToChildMethod · 0.45
ToParentMethod · 0.45

Tested by

no test coverage detected