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

Method DeepCopy

Common/DataModel/vtkFieldData.cxx:506–518  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Copy a field by creating new data arrays

Source from the content-addressed store, hash-verified

504//------------------------------------------------------------------------------
505// Copy a field by creating new data arrays
506void vtkFieldData::DeepCopy(vtkFieldData* f)
507{
508 this->CopyStructure(f);
509
510 for (int i = 0; i < f->GetNumberOfArrays(); ++i)
511 {
512 this->GetAbstractArray(i)->DeepCopy(f->GetAbstractArray(i));
513 }
514
515 this->SetGhostsToSkip(f->GetGhostsToSkip());
516
517 this->CopyFlags(f);
518}
519
520//------------------------------------------------------------------------------
521// Copy a field by reference counting the data arrays.

Callers

nothing calls this directly

Calls 5

CopyStructureMethod · 0.95
GetAbstractArrayMethod · 0.95
SetGhostsToSkipMethod · 0.95
CopyFlagsMethod · 0.95
GetNumberOfArraysMethod · 0.45

Tested by

no test coverage detected