35 Int_t GetUnID(
void) {
return ++nID; }
51 ~TableTest()
override;
55 TGTable *GetTable() {
return fTable; }
62 :
TGMainFrame(
p,
w,
h), fNTableRows(ntrows), fNTableColumns(ntcols), fTable(nullptr)
65 Connect(
"CloseWindow()",
"TableTest",
this,
"DoExit()");
69 fFile =
new TFile(
"cernstaff.root");
71 if (!fFile || fFile->IsZombie()) {
72 printf(
"Please run <ROOT location>/tutorials/io/tree/tree500_cernbuild.C first.");
87 fTable =
new TGTable(
this, fIDs.GetUnID(), fInterface, fNTableRows, fNTableColumns);
91 SetWindowName(
"Tree Table Test");
94 Resize(GetDefaultWidth() + 20, 600);
98TableTest::~TableTest()
106void TableTest::DoExit()
119 TableTest *test =
new TableTest(
nullptr, ntrows, ntcols, 500, 200);
120 return test->GetTable();
#define ClassDefOverride(name, id)
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize MapSubwindows
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
This class describes layout hints used by the layout classes.
Defines top level windows that interact with the system Window Manager.
Create an array to hold a bunch of numbers.
ROOT GUI Window base class.
const char * Data() const
TTreeTableInterface is used to interface to data that is stored in a TTree.
A TTree represents a columnar dataset.
RooCmdArg Layout(double xmin, double xmax=0.99, double ymin=0.95)