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

Method DeepCopy

Common/DataModel/vtkGraph.cxx:595–612  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

593
594//------------------------------------------------------------------------------
595void vtkGraph::DeepCopy(vtkDataObject* obj)
596{
597 vtkGraph* g = vtkGraph::SafeDownCast(obj);
598 if (!g)
599 {
600 vtkErrorMacro("Can only shallow copy from vtkGraph subclass.");
601 return;
602 }
603 bool valid = this->IsStructureValid(g);
604 if (valid)
605 {
606 this->CopyInternal(g, true);
607 }
608 else
609 {
610 vtkErrorMacro("Invalid graph structure for this type of graph.");
611 }
612}
613
614//------------------------------------------------------------------------------
615void vtkGraph::CopyStructure(vtkGraph* g)

Callers 1

CopyInternalMethod · 0.45

Calls 2

CopyInternalMethod · 0.95
IsStructureValidMethod · 0.45

Tested by

no test coverage detected