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

Function MarkEntireTreeAsGhost

Common/DataModel/vtkHyperTreeGrid.cxx:1826–1842  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1824namespace
1825{
1826void MarkEntireTreeAsGhost(
1827 vtkHyperTreeGridNonOrientedCursor* cursor, vtkUnsignedCharArray* ghostCells)
1828{
1829 vtkIdType id = cursor->GetGlobalNodeIndex();
1830 unsigned char val = ghostCells->GetValue(id) | vtkDataSetAttributes::DUPLICATECELL;
1831 ghostCells->SetValue(id, val);
1832
1833 if (!cursor->IsLeaf())
1834 {
1835 for (unsigned int c = 0; c < cursor->GetNumberOfChildren(); ++c)
1836 {
1837 cursor->ToChild(c);
1838 ::MarkEntireTreeAsGhost(cursor, ghostCells);
1839 cursor->ToParent();
1840 }
1841 }
1842}
1843}
1844
1845//------------------------------------------------------------------------------

Callers 1

GenerateGhostArrayMethod · 0.85

Calls 7

GetGlobalNodeIndexMethod · 0.45
GetValueMethod · 0.45
SetValueMethod · 0.45
IsLeafMethod · 0.45
GetNumberOfChildrenMethod · 0.45
ToChildMethod · 0.45
ToParentMethod · 0.45

Tested by

no test coverage detected