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

Method GetLevel

Common/DataModel/vtkTree.cxx:66–79  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

64
65//------------------------------------------------------------------------------
66vtkIdType vtkTree::GetLevel(vtkIdType vertex)
67{
68 if (vertex < 0 || vertex >= this->GetNumberOfVertices())
69 {
70 return -1;
71 }
72 vtkIdType level = 0;
73 while (vertex != this->Root)
74 {
75 vertex = this->GetParent(vertex);
76 level++;
77 }
78 return level;
79}
80
81//------------------------------------------------------------------------------
82bool vtkTree::IsLeaf(vtkIdType vertex)

Callers 15

shouldRefineMethod · 0.45
handleNodeMethod · 0.45
AreHTSameFunction · 0.45
AddContentPartitionMethod · 0.45
OnMouseMoveMethod · 0.45
PrintSelfMethod · 0.45
GetCornerCursorsMethod · 0.45
GetCornerCursorsMethod · 0.45
GetCornerCursorsMethod · 0.45
handleNodeFunction · 0.45

Calls 2

GetParentMethod · 0.95
GetNumberOfVerticesMethod · 0.80

Tested by 7

shouldRefineMethod · 0.36
handleNodeMethod · 0.36
AreHTSameFunction · 0.36
handleNodeFunction · 0.36
handleNodeFunction · 0.36
TripFunction · 0.36
CheckDepthArrayFunction · 0.36