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

Method HasAMRBlockPointData

IO/AMR/vtkAMRDataSetCache.cxx:170–185  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

168
169//------------------------------------------------------------------------------
170bool 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//------------------------------------------------------------------------------
188bool vtkAMRDataSetCache::HasAMRBlock(int compositeIdx)

Callers 2

GetAMRBlockPointDataMethod · 0.95
GetAMRPointDataMethod · 0.80

Calls 5

HasAMRBlockMethod · 0.95
GetAMRBlockMethod · 0.95
assertFunction · 0.50
GetPointDataMethod · 0.45
HasArrayMethod · 0.45

Tested by

no test coverage detected