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
18
19
20/** \class TGSimpleTable
21 \ingroup guiwidgets
22
23To provide a simple class to visualize an array of doubles, the class
24TGSimpleTable is provided. TGSimpleTable creates it's own
25TGSimpleTableInterface. For more information, see the documentation of
26TGTable
27
28The interface is accesible through the GetInterface() method.
29
30*/
31
32
33////////////////////////////////////////////////////////////////////////////////
34/// TGSimpleTable constructor.
35
37 UInt_t nrows, UInt_t ncolumns)
38 : TGTable(p, id, 0, nrows, ncolumns)
39{
40 TGSimpleTableInterface *iface = new TGSimpleTableInterface(data, nrows,
41 ncolumns);
42 SetInterface(iface,nrows, ncolumns);
43}
44
45////////////////////////////////////////////////////////////////////////////////
46/// TGSimpleTable destructor.
47
52
int Int_t
Signed integer 4 bytes (int).
Definition RtypesCore.h:59
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
Definition RtypesCore.h:60
double Double_t
Double 8 bytes.
Definition RtypesCore.h:73
XFontStruct * id
Definition TGX11.cxx:147
TGSimpleTableInterface is a very simple implementation of a TVirtualTableInterface.
~TGSimpleTable() override
TGSimpleTable destructor.
TGSimpleTable(TGWindow *p, Int_t id, Double_t **data, UInt_t nrows, UInt_t ncolumns)
TGSimpleTable constructor.
TVirtualTableInterface * fInterface
Definition TGTable.h:103
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
TGTable(const TGWindow *p=nullptr, Int_t id=0, TVirtualTableInterface *interface=nullptr, UInt_t nrows=50, UInt_t ncolumns=20)
TGTable constuctor.
Definition TGTable.cxx:153
ROOT GUI Window base class.
Definition TGWindow.h:23