------------------------------------------------------------------------------
| 116 | |
| 117 | //------------------------------------------------------------------------------ |
| 118 | void 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 | //------------------------------------------------------------------------------ |
| 143 | unsigned int vtkAMRDataObject::GetNumberOfLevels() const |
no test coverage detected