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

Function SetFormattedString

Rendering/Label/vtkDynamic2DLabelMapper.cxx:94–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 }
93
94 void SetFormattedString(int i, const char* resultString)
95 {
96 this->Self->TextMappers[i]->SetInput(resultString);
97 // Find the correct property type
98 int type = 0;
99 if (this->TypeArr)
100 {
101 type = this->TypeArr->GetValue(i);
102 }
103 vtkTextProperty* prop = this->Self->GetLabelTextProperty(type);
104 if (!prop)
105 {
106 prop = this->Self->GetLabelTextProperty(0);
107 }
108 this->Self->TextMappers[i]->SetTextProperty(prop);
109 }
110
111 void operator()(const std::string& FormatString)
112 {

Callers

nothing calls this directly

Calls 4

SetInputMethod · 0.45
GetValueMethod · 0.45
GetLabelTextPropertyMethod · 0.45
SetTextPropertyMethod · 0.45

Tested by

no test coverage detected