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

Method ShallowCopy

Rendering/Annotation/vtkAxisActor2D.cxx:1198–1223  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1196
1197//------------------------------------------------------------------------------
1198void vtkAxisActor2D::ShallowCopy(vtkProp* prop)
1199{
1200 vtkAxisActor2D* a = vtkAxisActor2D::SafeDownCast(prop);
1201 if (a != nullptr)
1202 {
1203 this->SetRange(a->GetRange());
1204 this->SetNumberOfLabels(a->GetNumberOfLabels());
1205 this->SetLabelFormat(a->GetLabelFormat());
1206 this->SetAdjustLabels(a->GetAdjustLabels());
1207 this->SetSnapLabelsToGrid(a->GetSnapLabelsToGrid());
1208 this->SetTitle(a->GetTitle());
1209 this->SetTickLength(a->GetTickLength());
1210 this->SetTickOffset(a->GetTickOffset());
1211 this->SetAxisVisibility(a->GetAxisVisibility());
1212 this->SetTickVisibility(a->GetTickVisibility());
1213 this->SetLabelVisibility(a->GetLabelVisibility());
1214 this->SetTitleVisibility(a->GetTitleVisibility());
1215 this->SetFontFactor(a->GetFontFactor());
1216 this->SetLabelFactor(a->GetLabelFactor());
1217 this->SetLabelTextProperty(a->GetLabelTextProperty());
1218 this->SetTitleTextProperty(a->GetTitleTextProperty());
1219 }
1220
1221 // Now do superclass
1222 this->vtkActor2D::ShallowCopy(prop);
1223}
1224VTK_ABI_NAMESPACE_END

Callers 3

vtkAxisActor2DMethod · 0.45
BuildLabelsMethod · 0.45
BuildTitleMethod · 0.45

Calls 13

SetNumberOfLabelsMethod · 0.80
SetLabelVisibilityMethod · 0.80
GetLabelVisibilityMethod · 0.80
SetRangeMethod · 0.45
GetRangeMethod · 0.45
GetNumberOfLabelsMethod · 0.45
SetLabelFormatMethod · 0.45
SetTitleMethod · 0.45
GetTitleMethod · 0.45
SetLabelTextPropertyMethod · 0.45
GetLabelTextPropertyMethod · 0.45
SetTitleTextPropertyMethod · 0.45

Tested by

no test coverage detected