------------------------------------------------------------------------------
| 116 | |
| 117 | //------------------------------------------------------------------------------ |
| 118 | vtkDataArray* vtkAMRDataSetCache::GetAMRBlockPointData(int compositeIdx, const char* dataName) |
| 119 | { |
| 120 | |
| 121 | if (this->HasAMRBlockPointData(compositeIdx, dataName)) |
| 122 | { |
| 123 | vtkUniformGrid* amrBlock = this->GetAMRBlock(compositeIdx); |
| 124 | assert("pre: AMR block should not be nullptr" && (amrBlock != nullptr)); |
| 125 | |
| 126 | vtkPointData* PD = amrBlock->GetPointData(); |
| 127 | assert("pre: PointData should not be nullptr" && (PD != nullptr)); |
| 128 | |
| 129 | if (PD->HasArray(dataName)) |
| 130 | { |
| 131 | return PD->GetArray(dataName); |
| 132 | } |
| 133 | else |
| 134 | { |
| 135 | return nullptr; |
| 136 | } |
| 137 | } |
| 138 | return nullptr; |
| 139 | } |
| 140 | |
| 141 | //------------------------------------------------------------------------------ |
| 142 | vtkUniformGrid* vtkAMRDataSetCache::GetAMRBlock(int compositeIdx) |
no test coverage detected