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

Method AllocateBoxes

Common/DataModel/vtkOverlappingAMRMetaData.cxx:343–356  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

341
342//------------------------------------------------------------------------------
343void vtkOverlappingAMRMetaData::AllocateBoxes(unsigned int n)
344{
345 this->Boxes.clear();
346 for (unsigned int i = 0; i < n; i++)
347 {
348 vtkAMRBox box;
349 this->Boxes.emplace_back(box);
350 }
351
352 for (unsigned int i = 0; i < n; i++)
353 {
354 this->Boxes[i].Invalidate();
355 }
356}
357
358//------------------------------------------------------------------------------
359void vtkOverlappingAMRMetaData::SetAMRBox(unsigned int level, unsigned int id, const vtkAMRBox& box)

Callers 1

InitializeMethod · 0.95

Calls 3

clearMethod · 0.45
emplace_backMethod · 0.45
InvalidateMethod · 0.45

Tested by

no test coverage detected