17 #include "HGCal/TBEventDisplay/interface/root.h"
18 #include "TRootHelpDialog.h"
20 #include "TGListBox.h"
21 #include "TGResourcePool.h"
38 gClient->GetColorByName(name.c_str(), pixel);
44 std::string str,
int id,
45 std::string font,
int fontsize)
50 sprintf(fontstr,
"-adobe-%s-*-*-%d-*-*-*-*-*-iso8859-1",
51 font.c_str(), fontsize);
53 const TGFont* ufont = gClient->GetFont(fontstr);
55 ufont = gClient->GetResourcePool()->GetDefaultFont();
61 val.fFont = ufont->GetFontHandle();
62 TGGC* uGC = gClient->GetGC(&val, kTRUE);
64 TGTextLBEntry* entry =
new TGTextLBEntry(listbox->GetContainer(),
65 new TGString(str.c_str()),
68 ufont->GetFontStruct());
69 return (TGLBEntry*)entry;
75 viewer->SetGuideState(TGLUtil::kAxesOrigin,
84 TColor::SetPalette(1, 0);
85 return TColor::GetNumberOfColors();
static Pixel_t Color(std::string name)
static TGLBEntry * GLBEntry(TGListBox *listbox, std::string str, int id, std::string font="helvetica-medium-r", int fontsize=14)
static void DrawAxes(TGLViewer *viewer)
static const TGClient * Client()
static const TGWindow * GetRoot()
static int SetSpectrumPalette()