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

Method ShallowCopy

Rendering/Annotation/vtkCaptionActor2D.cxx:564–590  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

562
563//------------------------------------------------------------------------------
564void vtkCaptionActor2D::ShallowCopy(vtkProp* prop)
565{
566 vtkCaptionActor2D* a = vtkCaptionActor2D::SafeDownCast(prop);
567 if (a != nullptr)
568 {
569 this->SetCaption(a->GetCaption());
570 this->SetAttachmentPoint(a->GetAttachmentPoint());
571 this->SetBorder(a->GetBorder());
572 this->SetLeader(a->GetLeader());
573 this->SetThreeDimensionalLeader(a->GetThreeDimensionalLeader());
574 if (a->LeaderGlyphConnectionHolder->GetNumberOfInputConnections(0) < 1)
575 {
576 this->SetLeaderGlyphConnection(nullptr);
577 }
578 else
579 {
580 this->SetLeaderGlyphConnection(a->LeaderGlyphConnectionHolder->GetInputConnection(0, 0));
581 }
582 this->SetLeaderGlyphSize(a->GetLeaderGlyphSize());
583 this->SetMaximumLeaderGlyphSize(a->GetMaximumLeaderGlyphSize());
584 this->SetPadding(a->GetPadding());
585 this->SetCaptionTextProperty(a->GetCaptionTextProperty());
586 }
587
588 // Now do superclass
589 this->vtkActor2D::ShallowCopy(prop);
590}
591VTK_ABI_NAMESPACE_END

Callers

nothing calls this directly

Calls 7

SetCaptionMethod · 0.95
GetCaptionMethod · 0.80
SetBorderMethod · 0.80
GetInputConnectionMethod · 0.45
SetPaddingMethod · 0.45

Tested by

no test coverage detected