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
14
15/** \class TGTreeTable
16
17TGTreeTable is a TGTable that owns it's own interface.
18It can be used to view a TTree. If an expression is given to the
19constructor, it will be used to define the columns. A selection can
20also be given. This selection is applied to the TTree as a
21TEntryList. See the documentation of TGTable for more information
22
23The interface is accesible after the creation through the
24GetInterface() method.
25*/
26
27////////////////////////////////////////////////////////////////////////////////
28/// TGTreeTable constructor.
29
31 const char *expression, const char *selection,
32 const char *option, UInt_t nrows, UInt_t ncolumns)
33 : TGTable(p, id, nullptr, nrows, ncolumns)
34{
35 TTreeTableInterface *iface = new TTreeTableInterface(tree, expression,
38 Update();
39}
40
41////////////////////////////////////////////////////////////////////////////////
42/// TGTreeTable destructor.
43
45{
46 //FIXME this causes a double delete segfault, why???
47// delete fInterface;
48}
49
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t option
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:668
virtual void Update()
Update the range of the available data and refresh the current view.
Definition TGTable.cxx:1527
~TGTreeTable() override
TGTreeTable destructor.
TGTreeTable(TGWindow *p=nullptr, Int_t id=-1, TTree *tree=nullptr, const char *expression=nullptr, const char *selection=nullptr, const char *option=nullptr, UInt_t nrows=50, UInt_t ncolumns=10)
TGTreeTable constructor.
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:89