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

Method SetTextProperty

Rendering/Core/vtkTextActor.cxx:384–402  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

382
383//------------------------------------------------------------------------------
384void vtkTextActor::SetTextProperty(vtkTextProperty* p)
385{
386 if (this->TextProperty == p)
387 {
388 return;
389 }
390 if (this->TextProperty)
391 {
392 this->TextProperty->UnRegister(this);
393 this->TextProperty = nullptr;
394 }
395 this->TextProperty = p;
396 if (this->TextProperty)
397 {
398 this->TextProperty->Register(this);
399 this->ScaledTextProperty->ShallowCopy(this->TextProperty);
400 }
401 this->Modified();
402}
403
404//------------------------------------------------------------------------------
405void vtkTextActor::ShallowCopy(vtkProp* prop)

Callers 15

~vtkTextActorMethod · 0.95
ShallowCopyMethod · 0.95
TestPropItemFunction · 0.45
FontChangeMethod · 0.45
FontSizeMethod · 0.45
TestLabeledDataMappersFunction · 0.45
SetFormattedStringFunction · 0.45
SetFormattedStringFunction · 0.45
UpdateFontSizesMethod · 0.45

Calls 4

UnRegisterMethod · 0.45
RegisterMethod · 0.45
ShallowCopyMethod · 0.45
ModifiedMethod · 0.45

Tested by 8

TestPropItemFunction · 0.36
FontChangeMethod · 0.36
FontSizeMethod · 0.36
TestLabeledDataMappersFunction · 0.36
TestLabelPlacementMapperFunction · 0.36