Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 "TGWindow.h"
13#include "TGResourcePool.h"
14#include "TRandom3.h"
16#include "TGSimpleTable.h"
17
19
20////////////////////////////////////////////////////////////////////////////////
21
22/* Begin_Html
23<center><h2>TGSimpleTable</h2></center>
24<br><br>
25To provide a simple class to visualize an array of doubles, the class
26TGSimpleTable is provided. TGSimpleTable creates it's own
27TGSimpleTableInterface. For more information, see the documentation of
28TGTable
29<br><br>
30The interface is accesible through the GetInterface() method.
31End_Html
32*/
33
34////////////////////////////////////////////////////////////////////////////////
35/// TGSimpleTable constuctor.
36
38 UInt_t nrows, UInt_t ncolumns)
39 : TGTable(p, id, 0, nrows, ncolumns)
40{
41 TGSimpleTableInterface *iface = new TGSimpleTableInterface(data, nrows,
42 ncolumns);
43 SetInterface(iface,nrows, ncolumns);
44}
45
46////////////////////////////////////////////////////////////////////////////////
47/// TGSimpleTable destructor.
48
50{
51 delete fInterface;
52}
53
double Double_t
Definition RtypesCore.h:59
#define ClassImp(name)
Definition Rtypes.h:364
XFontStruct * id
Definition TGX11.cxx:109
TGSimpleTable(TGWindow *p, Int_t id, Double_t **data, UInt_t nrows, UInt_t ncolumns)
TGSimpleTable constuctor.
virtual ~TGSimpleTable()
TGSimpleTable destructor.
TVirtualTableInterface * fInterface
Definition TGTable.h:96
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:676