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

Method DeepCopy

Common/DataModel/vtkSelection.cxx:535–553  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

533
534//------------------------------------------------------------------------------
535void vtkSelection::DeepCopy(vtkDataObject* src)
536{
537 if (auto* ssrc = vtkSelection::SafeDownCast(src))
538 {
539 this->Expression = ssrc->Expression;
540
541 const auto& srcMap = ssrc->Internals->Items;
542 auto& destMap = this->Internals->Items;
543 destMap = srcMap;
544 for (auto& apair : destMap)
545 {
546 vtkNew<vtkSelectionNode> clone;
547 clone->DeepCopy(apair.second);
548 apair.second = clone;
549 }
550 this->Superclass::DeepCopy(src);
551 this->Modified();
552 }
553}
554
555//------------------------------------------------------------------------------
556void vtkSelection::Union(vtkSelection* s)

Callers 1

UnionMethod · 0.45

Calls 1

ModifiedMethod · 0.45

Tested by

no test coverage detected