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

Method Paint

Rendering/Matplotlib/Testing/Cxx/TestContextMathTextImage.cxx:48–57  ·  view source on GitHub ↗

This function aims to test the primitives provided by the 2D API.

Source from the content-addressed store, hash-verified

46
47// This function aims to test the primitives provided by the 2D API.
48bool ContextMathTextImageTest::Paint(vtkContext2D* painter)
49{
50 painter->GetTextProp()->SetColor(0.4, 0.6, 0.7);
51 painter->GetTextProp()->SetFontSize(60);
52 painter->DrawMathTextString(20, 20,
53 "$\\frac{-b\\pm\\sqrt{b^2-4ac}}"
54 "{2a}$");
55
56 return true;
57}

Callers

nothing calls this directly

Calls 4

GetTextPropMethod · 0.80
SetFontSizeMethod · 0.80
SetColorMethod · 0.45
DrawMathTextStringMethod · 0.45

Tested by

no test coverage detected