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

Function UpdateGeometryIfRequired

IO/HDF/vtkHDFReader.cxx:187–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185 */
186template <typename vtkDataObjT>
187void UpdateGeometryIfRequired(vtkDataObjT* data, vtkCompositeDataSet* compositeData, bool useCache,
188 bool meshGeometryChanged, vtkDataObjectMeshCache* meshCache)
189{
190 if (useCache)
191 {
192 if (!meshGeometryChanged)
193 {
194 if (compositeData)
195 {
196 meshCache->CopyCacheToDataObject(compositeData);
197 }
198 else
199 {
200 meshCache->CopyCacheToDataObject(data);
201 }
202 }
203 else
204 {
205 if (compositeData)
206 {
207 meshCache->UpdateCache(compositeData);
208 }
209 else
210 {
211 meshCache->UpdateCache(data);
212 }
213 }
214 }
215}
216
217}
218

Callers 1

ReadDataMethod · 0.85

Calls 2

CopyCacheToDataObjectMethod · 0.80
UpdateCacheMethod · 0.45

Tested by

no test coverage detected