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

Method IsMasked

Common/DataModel/vtkHyperTreeGridGeometryUnlimitedEntry.cxx:104–114  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

102
103//------------------------------------------------------------------------------
104bool vtkHyperTreeGridGeometryUnlimitedEntry::IsMasked(
105 const vtkHyperTreeGrid* grid, const vtkHyperTree* tree) const
106{
107 assert("pre: not_tree" && tree);
108 if (tree && const_cast<vtkHyperTreeGrid*>(grid)->HasMask())
109 {
110 return const_cast<vtkHyperTreeGrid*>(grid)->GetMask()->GetValue(
111 this->GetGlobalNodeIndex(tree)) != 0;
112 }
113 return false;
114}
115
116//------------------------------------------------------------------------------
117bool vtkHyperTreeGridGeometryUnlimitedEntry::IsLeaf(

Callers

nothing calls this directly

Calls 5

GetGlobalNodeIndexMethod · 0.95
HasMaskMethod · 0.80
assertFunction · 0.50
GetValueMethod · 0.45
GetMaskMethod · 0.45

Tested by

no test coverage detected