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

Method DeepCopy

Common/DataModel/vtkDataAssembly.cxx:508–523  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

506
507//------------------------------------------------------------------------------
508void vtkDataAssembly::DeepCopy(vtkDataAssembly* other)
509{
510 if (other)
511 {
512 this->Internals.reset(new vtkDataAssembly::vtkInternals());
513 // TODO: am sure there's a better way than serialize/deserialize
514 std::ostringstream str;
515 other->Internals->Document.save(str);
516 this->Internals->Parse(str.str().c_str(), this);
517 this->Modified();
518 }
519 else
520 {
521 this->Initialize();
522 }
523}
524
525//------------------------------------------------------------------------------
526int vtkDataAssembly::AddSubtree(int parent, vtkDataAssembly* other, int otherParent)

Callers 1

SubsetCopyMethod · 0.95

Calls 7

InitializeMethod · 0.95
resetMethod · 0.45
saveMethod · 0.45
ParseMethod · 0.45
c_strMethod · 0.45
strMethod · 0.45
ModifiedMethod · 0.45

Tested by

no test coverage detected