------------------------------------------------------------------------------
| 168 | |
| 169 | //------------------------------------------------------------------------------ |
| 170 | bool vtkAMRDataSetCache::HasAMRBlockPointData(int compositeIdx, const char* name) |
| 171 | { |
| 172 | assert("pre: array name is nullptr" && (name != nullptr)); |
| 173 | |
| 174 | if (this->HasAMRBlock(compositeIdx)) |
| 175 | { |
| 176 | vtkUniformGrid* gridPtr = this->GetAMRBlock(compositeIdx); |
| 177 | assert("pre: cachedk block is nullptr!" && (gridPtr != nullptr)); |
| 178 | |
| 179 | vtkPointData* PD = gridPtr->GetPointData(); |
| 180 | assert("pre: point data is nullptr" && (PD != nullptr)); |
| 181 | |
| 182 | return PD->HasArray(name) != 0; |
| 183 | } |
| 184 | return false; |
| 185 | } |
| 186 | |
| 187 | //------------------------------------------------------------------------------ |
| 188 | bool vtkAMRDataSetCache::HasAMRBlock(int compositeIdx) |
no test coverage detected