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

Method CopyInformation

Common/Core/vtkAbstractArray.cxx:319–332  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

317
318//------------------------------------------------------------------------------
319int vtkAbstractArray::CopyInformation(vtkInformation* infoFrom, vtkTypeBool deep)
320{
321 // Copy all keys. NOTE: subclasses rely on this.
322 vtkInformation* myInfo = this->GetInformation();
323 myInfo->Copy(infoFrom, deep);
324
325 // Remove any keys we own that are not to be copied here.
326 // For now, remove per-component metadata.
327 myInfo->Remove(PER_COMPONENT());
328 myInfo->Remove(PER_FINITE_COMPONENT());
329 myInfo->Remove(DISCRETE_VALUES());
330
331 return 1;
332}
333
334//------------------------------------------------------------------------------
335// call modified on superclass

Callers 1

DeepCopyMethod · 0.95

Calls 3

GetInformationMethod · 0.95
CopyMethod · 0.45
RemoveMethod · 0.45

Tested by

no test coverage detected