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

Method HasBlockBounds

Common/DataModel/vtkOverlappingAMRMetaData.cxx:1097–1109  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1095
1096//------------------------------------------------------------------------------
1097bool vtkOverlappingAMRMetaData::HasBlockBounds() const
1098{
1099 bool hasBlockBounds =
1100 !this->BlockBounds.empty() && this->BlockBounds.size() == this->GetNumberOfBlocks();
1101 for (unsigned int i = 0; i < static_cast<unsigned int>(this->BlockBounds.size()); i++)
1102 {
1103 if (!this->BlockBounds[i].IsValid())
1104 {
1105 hasBlockBounds = false;
1106 }
1107 }
1108 return hasBlockBounds;
1109}
1110
1111//------------------------------------------------------------------------------
1112bool vtkOverlappingAMRMetaData::HasBlockBounds(unsigned int index) const

Callers 6

PrintSelfMethod · 0.95
GetBoundsMethod · 0.95
GetOriginMethod · 0.95
UpdateBoundsMethod · 0.95
BlankGridsAtLevelMethod · 0.80

Calls 4

emptyMethod · 0.45
sizeMethod · 0.45
GetNumberOfBlocksMethod · 0.45
IsValidMethod · 0.45

Tested by

no test coverage detected