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, nullptr, 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:382
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t option
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize id
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() 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:79