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

Method CopyStructure

Common/DataModel/vtkAMRDataObject.cxx:329–344  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

327
328//------------------------------------------------------------------------------
329void vtkAMRDataObject::CopyStructure(vtkCompositeDataSet* src)
330{
331 if (src == this)
332 {
333 return;
334 }
335
336 this->Superclass::CopyStructure(src);
337
338 if (vtkAMRDataObject* hbds = vtkAMRDataObject::SafeDownCast(src))
339 {
340 this->SetAMRMetaData(hbds->GetAMRMetaData());
341 }
342
343 this->Modified();
344}
345
346//------------------------------------------------------------------------------
347void vtkAMRDataObject::ShallowCopy(vtkDataObject* src)

Callers

nothing calls this directly

Calls 2

GetAMRMetaDataMethod · 0.80
ModifiedMethod · 0.45

Tested by

no test coverage detected