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

Method DeepCopy

Testing/GenericBridge/vtkBridgeAttribute.cxx:370–381  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Description: Recursive duplication of `other' in `this'. \pre other_exists: other!=0 \pre not_self: other!=this

Source from the content-addressed store, hash-verified

368// \pre other_exists: other!=0
369// \pre not_self: other!=this
370void vtkBridgeAttribute::DeepCopy(vtkGenericAttribute* other)
371{
372 assert("pre: other_exists" && other != nullptr);
373 assert("pre: not_self" && other != this);
374 vtkBridgeAttribute* o = static_cast<vtkBridgeAttribute*>(other);
375
376 vtkSetObjectBodyMacro(Pd, vtkPointData, o->Pd);
377 vtkSetObjectBodyMacro(Cd, vtkCellData, o->Cd);
378 this->Data = o->Data;
379 this->AttributeNumber = o->AttributeNumber;
380 this->AllocateInternalTuple(this->GetNumberOfComponents());
381}
382
383//------------------------------------------------------------------------------
384// Description:

Callers

nothing calls this directly

Calls 3

AllocateInternalTupleMethod · 0.95
GetNumberOfComponentsMethod · 0.95
assertFunction · 0.50

Tested by

no test coverage detected