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

Method GetNumberOfLeaves

Common/DataModel/vtkHyperTreeGrid.cxx:703–716  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

701
702//------------------------------------------------------------------------------
703vtkIdType vtkHyperTreeGrid::GetNumberOfLeaves()
704{
705 vtkIdType nLeaves = 0;
706
707 // Iterate over all trees in grid
708 vtkHyperTreeGridIterator it;
709 it.Initialize(this);
710 while (vtkHyperTree* tree = it.GetNextTree())
711 {
712 nLeaves += tree->GetNumberOfLeaves();
713 }
714
715 return nLeaves;
716}
717
718//------------------------------------------------------------------------------
719void vtkHyperTreeGrid::InitializeTreeIterator(vtkHyperTreeGridIterator& it)

Callers 5

TestXMLHyperTreeGridIOFunction · 0.80
ProcessHtgMethod · 0.80
ProcessTreesMethod · 0.80
ProcessTreesMethod · 0.80

Calls 2

GetNextTreeMethod · 0.80
InitializeMethod · 0.45