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

Method InitializeInternal

Common/DataModel/vtkAMRDataObject.cxx:118–140  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

116
117//------------------------------------------------------------------------------
118void vtkAMRDataObject::InitializeInternal()
119{
120 this->Superclass::Initialize();
121
122 this->Bounds[0] = VTK_DOUBLE_MAX;
123 this->Bounds[1] = VTK_DOUBLE_MIN;
124 this->Bounds[2] = VTK_DOUBLE_MAX;
125 this->Bounds[3] = VTK_DOUBLE_MIN;
126 this->Bounds[4] = VTK_DOUBLE_MAX;
127 this->Bounds[5] = VTK_DOUBLE_MIN;
128
129 unsigned int nLevels = this->AMRMetaData->GetNumberOfLevels();
130 this->SetNumberOfPartitionedDataSets(nLevels);
131 for (unsigned int level = 0; level < nLevels; level++)
132 {
133 unsigned int nBlocks = this->AMRMetaData->GetNumberOfBlocks(level);
134 this->SetNumberOfPartitions(level, nBlocks);
135 for (unsigned int block = 0; block < nBlocks; block++)
136 {
137 this->SetPartition(level, block, nullptr);
138 }
139 }
140}
141
142//------------------------------------------------------------------------------
143unsigned int vtkAMRDataObject::GetNumberOfLevels() const

Callers 2

InitializeMethod · 0.95
GoToFirstItemMethod · 0.45

Calls 5

GetNumberOfLevelsMethod · 0.45
GetNumberOfBlocksMethod · 0.45
SetNumberOfPartitionsMethod · 0.45
SetPartitionMethod · 0.45

Tested by

no test coverage detected