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