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

Method SetTextActor

Interaction/Widgets/vtkTextWidget.cxx:24–38  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

22
23//------------------------------------------------------------------------------
24void vtkTextWidget::SetTextActor(vtkTextActor* textActor)
25{
26 vtkTextRepresentation* textRep = reinterpret_cast<vtkTextRepresentation*>(this->WidgetRep);
27 if (!textRep)
28 {
29 this->CreateDefaultRepresentation();
30 textRep = reinterpret_cast<vtkTextRepresentation*>(this->WidgetRep);
31 }
32
33 if (textRep->GetTextActor() != textActor)
34 {
35 textRep->SetTextActor(textActor);
36 this->Modified();
37 }
38}
39
40//------------------------------------------------------------------------------
41vtkTextActor* vtkTextWidget::GetTextActor()

Callers 4

vtkTextWidgetTest1Function · 0.45
TestTextWidgetFunction · 0.45

Calls 3

GetTextActorMethod · 0.80
ModifiedMethod · 0.45

Tested by 4

vtkTextWidgetTest1Function · 0.36
TestTextWidgetFunction · 0.36