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

Method IsLeaf

Common/DataModel/vtkHyperTreeGridLevelEntry.cxx:103–112  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

101
102//------------------------------------------------------------------------------
103bool vtkHyperTreeGridLevelEntry::IsLeaf(const vtkHyperTreeGrid* grid) const
104{
105 assert("pre: not_tree" && this->Tree);
106 // How to set an accessor to DepthLimiter which is const?
107 if (this->Level == const_cast<vtkHyperTreeGrid*>(grid)->GetDepthLimiter())
108 {
109 return true;
110 }
111 return this->Tree->IsLeaf(this->Index);
112}
113
114//------------------------------------------------------------------------------
115void vtkHyperTreeGridLevelEntry::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