------------------------------------------------------------------------------
| 562 | |
| 563 | //------------------------------------------------------------------------------ |
| 564 | void 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 | } |
| 591 | VTK_ABI_NAMESPACE_END |
nothing calls this directly
no test coverage detected