TGTreeTable.cxx

Go to the documentation of this file.
00001 // Author: Roel Aaij 30/08/2007
00002 
00003 /*************************************************************************
00004  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers.               *
00005  * All rights reserved.                                                  *
00006  *                                                                       *
00007  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00008  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00009  *************************************************************************/
00010 
00011 #include "TGTable.h"
00012 #include "TClass.h"
00013 #include "TGWindow.h"
00014 #include "TGResourcePool.h"
00015 #include "Riostream.h"
00016 #include "TSystem.h"
00017 #include "TImage.h"
00018 #include "TEnv.h"
00019 #include "TGToolTip.h"
00020 #include "TGPicture.h"
00021 #include "TRandom3.h"
00022 #include "TTreeTableInterface.h"
00023 #include "TGTreeTable.h"
00024 
00025 ClassImp(TGTreeTable)
00026 
00027 //////////////////////////////////////////////////////////////////////////
00028 //                                                                      //
00029 // TGTreeTable                                                          //
00030 //                                                                      //
00031 // TGTreeTable is a TGTable that owns it's own interface, it            //
00032 // can be used to view a TTree. If an expression is given to the        //
00033 // constuctor, it will be used to define the columns. A selection can   //
00034 // also be given. This selection is applied to the TTree as a           //
00035 // TEntryList. See the documentation of TGTable for more information    //
00036 //                                                                      //
00037 // The interface is accesible after the creation through the            //
00038 // GetInterface() method.                                               //
00039 //                                                                      //
00040 //////////////////////////////////////////////////////////////////////////
00041 
00042 //______________________________________________________________________________
00043 TGTreeTable::TGTreeTable(TGWindow *p, Int_t id, TTree *tree, 
00044                          const char *expression, const char *selection, 
00045                          const char *option, UInt_t nrows, UInt_t ncolumns) 
00046    : TGTable(p, id, 0, nrows, ncolumns)
00047 {
00048    // TGTreeTable constructor.
00049 
00050    TTreeTableInterface *iface = new TTreeTableInterface(tree, expression, 
00051                                                         selection, option);
00052    SetInterface(iface, nrows, ncolumns);
00053    Update();
00054 }
00055 
00056 //______________________________________________________________________________
00057 TGTreeTable::~TGTreeTable()
00058 {
00059    // TGTreeTable destructor.
00060 
00061    //FIXME this causes a double delete segfault, why???
00062 //    delete fInterface;
00063 }
00064 

Generated on Tue Jul 5 15:43:44 2011 for ROOT_528-00b_version by  doxygen 1.5.1