Logo ROOT   6.10/09
Reference Guide
TGSimpleTable.cxx
Go to the documentation of this file.
1 // Author: Roel Aaij 21/07/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 "TGTable.h"
12 #include "TClass.h"
13 #include "TGWindow.h"
14 #include "TGResourcePool.h"
15 #include "Riostream.h"
16 #include "TSystem.h"
17 #include "TImage.h"
18 #include "TEnv.h"
19 #include "TGToolTip.h"
20 #include "TGPicture.h"
21 #include "TRandom3.h"
22 #include "TGSimpleTableInterface.h"
23 #include "TGSimpleTable.h"
24 
26 
27 ////////////////////////////////////////////////////////////////////////////////
28 
29 /* Begin_Html
30 <center><h2>TGSimpleTable</h2></center>
31 <br><br>
32 To provide a simple class to visualize an array of doubles, the class
33 TGSimpleTable is provided. TGSimpleTable creates it's own
34 TGSimpleTableInterface. For more information, see the documentation of
35 TGTable
36 <br><br>
37 The interface is accesible through the GetInterface() method.
38 End_Html
39 */
40 
41 ////////////////////////////////////////////////////////////////////////////////
42 /// TGSimpleTable constuctor.
43 
45  UInt_t nrows, UInt_t ncolumns)
46  : TGTable(p, id, 0, nrows, ncolumns)
47 {
48  TGSimpleTableInterface *iface = new TGSimpleTableInterface(data, nrows,
49  ncolumns);
50  SetInterface(iface,nrows, ncolumns);
51 }
52 
53 ////////////////////////////////////////////////////////////////////////////////
54 /// TGSimpleTable destructor.
55 
57 {
58  delete fInterface;
59 }
60 
virtual ~TGSimpleTable()
TGSimpleTable destructor.
int Int_t
Definition: RtypesCore.h:41
TVirtualTableInterface * fInterface
Definition: TGTable.h:96
unsigned int UInt_t
Definition: RtypesCore.h:42
#define ClassImp(name)
Definition: Rtypes.h:336
double Double_t
Definition: RtypesCore.h:55