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

Method ShallowCopy

Rendering/Core/vtkTextActor.cxx:405–419  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

403
404//------------------------------------------------------------------------------
405void vtkTextActor::ShallowCopy(vtkProp* prop)
406{
407 vtkTextActor* a = vtkTextActor::SafeDownCast(prop);
408 if (a != nullptr)
409 {
410 this->SetPosition2(a->GetPosition2());
411 this->SetMinimumSize(a->GetMinimumSize());
412 this->SetMaximumLineHeight(a->GetMaximumLineHeight());
413 this->SetTextScaleMode(a->GetTextScaleMode());
414 this->SetTextProperty(a->GetTextProperty());
415 this->SetInput(a->GetInput());
416 }
417 // Now do superclass (mapper is handled by it as well).
418 this->Superclass::ShallowCopy(prop);
419}
420
421//------------------------------------------------------------------------------
422// Release any graphics resources that are being consumed by this actor.

Callers 2

SetTextPropertyMethod · 0.45
ComputeScaledFontMethod · 0.45

Calls 5

SetTextPropertyMethod · 0.95
SetInputMethod · 0.95
GetPosition2Method · 0.80
GetTextPropertyMethod · 0.45
GetInputMethod · 0.45

Tested by

no test coverage detected