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

Method IsMasked

Common/DataModel/vtkHyperTreeGridGeometryEntry.cxx:79–89  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

77
78//------------------------------------------------------------------------------
79bool vtkHyperTreeGridGeometryEntry::IsMasked(
80 const vtkHyperTreeGrid* grid, const vtkHyperTree* tree) const
81{
82 assert("pre: not_tree" && tree);
83 if (tree && const_cast<vtkHyperTreeGrid*>(grid)->HasMask())
84 {
85 return const_cast<vtkHyperTreeGrid*>(grid)->GetMask()->GetValue(
86 this->GetGlobalNodeIndex(tree)) != 0;
87 }
88 return false;
89}
90
91//------------------------------------------------------------------------------
92bool vtkHyperTreeGridGeometryEntry::IsLeaf(

Callers 1

SubdivideLeafMethod · 0.95

Calls 5

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

Tested by

no test coverage detected