Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGTreeTable.cxx
Go to the documentation of this file.
1// Author: Roel Aaij 30/08/2007
2
3/*************************************************************************
4 * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11#include "TGTreeTable.h"
12#include "TTreeTableInterface.h"
13
15
16/** \class TGTreeTable
17
18TGTreeTable is a TGTable that owns it's own interface.
19It can be used to view a TTree. If an expression is given to the
20constructor, it will be used to define the columns. A selection can
21also be given. This selection is applied to the TTree as a
22TEntryList. See the documentation of TGTable for more information
23
24The interface is accesible after the creation through the
25GetInterface() method.
26*/
27
28////////////////////////////////////////////////////////////////////////////////
29/// TGTreeTable constructor.
30
32 const char *expression, const char *selection,
33 const char *option, UInt_t nrows, UInt_t ncolumns)
34 : TGTable(p, id, 0, nrows, ncolumns)
35{
36 TTreeTableInterface *iface = new TTreeTableInterface(tree, expression,
37 selection, option);
38 SetInterface(iface, nrows, ncolumns);
39 Update();
40}
41
42////////////////////////////////////////////////////////////////////////////////
43/// TGTreeTable destructor.
44
46{
47 //FIXME this causes a double delete segfault, why???
48// delete fInterface;
49}
50
#define ClassImp(name)
Definition Rtypes.h:364
XFontStruct * id
Definition TGX11.cxx:109
Create an array to hold a bunch of numbers.
Definition TGTable.h:34
virtual void SetInterface(TVirtualTableInterface *interface, UInt_t nrows=50, UInt_t ncolumns=20)
Set the interface that the TGTable uses to interface.
Definition TGTable.cxx:670
virtual void Update()
Update the range of the available data and refresh the current view.
Definition TGTable.cxx:1529
TGTreeTable is a TGTable that owns it's own interface.
Definition TGTreeTable.h:18
TGTreeTable(TGWindow *p=0, Int_t id=-1, TTree *tree=0, const char *expression=0, const char *selection=0, const char *option=0, UInt_t nrows=50, UInt_t ncolumns=10)
TGTreeTable constructor.
~TGTreeTable()
TGTreeTable destructor.
ROOT GUI Window base class.
Definition TGWindow.h:23
TTreeTableInterface is used to interface to data that is stored in a TTree.
A TTree represents a columnar dataset.
Definition TTree.h:79
Definition tree.py:1