#include <G4OpenGLFontBaseStore.hh>
Definition at line 41 of file G4OpenGLFontBaseStore.hh.
◆ AddFontBase()
Definition at line 34 of file G4OpenGLFontBaseStore.cc.
37 {
38 fFontBaseMap[viewer].push_back(FontInfo(fontName, size, fontBase, width));
39}
◆ GetFontInfo()
Definition at line 42 of file G4OpenGLFontBaseStore.cc.
43 {
44 std::map<G4VViewer*,std::vector<FontInfo> >::const_iterator i =
45 fFontBaseMap.find(viewer);
46 if (i != fFontBaseMap.end()) {
48 std::vector<FontInfo>::const_iterator j, k;
49 for (j = i->second.begin(); j != i->second.end(); ++j) {
50 G4double d = std::abs(size - j->fSize);
51 if (d < sizeDiscrepancy) {
52 sizeDiscrepancy = d;
53 k = j;
54 }
55 }
56 return *k;
57 } else {
58
59 static const FontInfo nullFontInfo;
60 return nullFontInfo;
61 }
62}
The documentation for this class was generated from the following files: