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

Method IsLeaf

Common/DataModel/vtkHyperTreeGridGeometryLevelEntry.cxx:85–94  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

83
84//------------------------------------------------------------------------------
85bool vtkHyperTreeGridGeometryLevelEntry::IsLeaf(const vtkHyperTreeGrid* grid) const
86{
87 assert("pre: not_tree" && this->Tree);
88 // How to set an accessor to DepthLimiter which is const?
89 if (this->Level == const_cast<vtkHyperTreeGrid*>(grid)->GetDepthLimiter())
90 {
91 return true;
92 }
93 return this->Tree->IsLeaf(this->Index);
94}
95
96//------------------------------------------------------------------------------
97void vtkHyperTreeGridGeometryLevelEntry::SubdivideLeaf(const vtkHyperTreeGrid* grid)

Callers 3

SubdivideLeafMethod · 0.95
IsTerminalNodeMethod · 0.95
ToChildMethod · 0.95

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected