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

Method ShallowCopy

Rendering/Annotation/vtkLegendBoxActor.cxx:1014–1036  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1012
1013//------------------------------------------------------------------------------
1014void 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}
1037VTK_ABI_NAMESPACE_END

Callers 1

RenderOpaqueGeometryMethod · 0.45

Calls 10

SetNumberOfEntriesMethod · 0.95
SetEntrySymbolMethod · 0.95
SetEntryStringMethod · 0.95
SetEntryColorMethod · 0.95
GetPosition2Method · 0.80
SetBorderMethod · 0.80
GetEntrySymbolMethod · 0.80
GetEntryStringMethod · 0.80
GetEntryColorMethod · 0.80
SetPaddingMethod · 0.45

Tested by

no test coverage detected