------------------------------------------------------------------------------
| 1012 | |
| 1013 | //------------------------------------------------------------------------------ |
| 1014 | void vtkLegendBoxActor::ShallowCopy(vtkProp* prop) |
| 1015 | { |
| 1016 | vtkLegendBoxActor* a = vtkLegendBoxActor::SafeDownCast(prop); |
| 1017 | if (a != nullptr) |
| 1018 | { |
| 1019 | this->SetPosition2(a->GetPosition2()); |
| 1020 | this->SetEntryTextProperty(a->GetEntryTextProperty()); |
| 1021 | this->SetBorder(a->GetBorder()); |
| 1022 | this->SetLockBorder(a->GetLockBorder()); |
| 1023 | this->SetPadding(a->GetPadding()); |
| 1024 | this->SetScalarVisibility(a->GetScalarVisibility()); |
| 1025 | this->SetNumberOfEntries(a->GetNumberOfEntries()); |
| 1026 | for (int i = 0; i < this->NumberOfEntries; i++) |
| 1027 | { |
| 1028 | this->SetEntrySymbol(i, a->GetEntrySymbol(i)); |
| 1029 | this->SetEntryString(i, a->GetEntryString(i)); |
| 1030 | this->SetEntryColor(i, a->GetEntryColor(i)); |
| 1031 | } |
| 1032 | } |
| 1033 | |
| 1034 | // Now do superclass |
| 1035 | this->vtkActor2D::ShallowCopy(prop); |
| 1036 | } |
| 1037 | VTK_ABI_NAMESPACE_END |
no test coverage detected