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

Method Initialize

Common/DataModel/vtkOverlappingAMRMetaData.cxx:317–330  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

315
316//------------------------------------------------------------------------------
317void vtkOverlappingAMRMetaData::Initialize(const std::vector<unsigned int>& blocksPerLevel)
318{
319 this->Superclass::Initialize(blocksPerLevel);
320
321 int numBlocks = this->GetNumberOfBlocks();
322 this->AllocateBoxes(numBlocks);
323 this->Spacing->SetNumberOfTuples(3 * blocksPerLevel.size());
324 this->Spacing->SetNumberOfComponents(3);
325 for (std::size_t i = 0; i < blocksPerLevel.size(); i++)
326 {
327 double spacing[3] = { -1, -1, -1 };
328 this->Spacing->SetTuple(i, spacing);
329 }
330}
331
332//------------------------------------------------------------------------------
333void vtkOverlappingAMRMetaData::AllocateBlockBounds(unsigned int n)

Callers

nothing calls this directly

Calls 6

AllocateBoxesMethod · 0.95
GetNumberOfBlocksMethod · 0.45
SetNumberOfTuplesMethod · 0.45
sizeMethod · 0.45
SetNumberOfComponentsMethod · 0.45
SetTupleMethod · 0.45

Tested by

no test coverage detected