ROOT
6.06/09
Reference Guide
ROOT Home Page
Main Page
Related Pages
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
gui
gui
src
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
25
ClassImp
(
TGSimpleTable
)
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
44
TGSimpleTable
::
TGSimpleTable
(
TGWindow
*p,
Int_t
id
,
Double_t
**data,
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
56
TGSimpleTable::~TGSimpleTable
()
57
{
58
delete
fInterface
;
59
}
60
TGSimpleTableInterface.h
TClass.h
TGTable
Definition:
TGTable.h:40
TGSimpleTable::~TGSimpleTable
virtual ~TGSimpleTable()
TGSimpleTable destructor.
Definition:
TGSimpleTable.cxx:56
ClassImp
ClassImp(TGSimpleTable) TGSimpleTable
TGSimpleTable constuctor.
Definition:
TGSimpleTable.cxx:25
TGWindow.h
Int_t
int Int_t
Definition:
RtypesCore.h:41
TImage.h
TSystem.h
TGSimpleTable
Definition:
TGSimpleTable.h:20
TGWindow
Definition:
TGWindow.h:38
TGTable::fInterface
TVirtualTableInterface * fInterface
Definition:
TGTable.h:102
TGSimpleTableInterface
Definition:
TGSimpleTableInterface.h:18
UInt_t
unsigned int UInt_t
Definition:
RtypesCore.h:42
TGPicture.h
Riostream.h
TGSimpleTable.h
Double_t
double Double_t
Definition:
RtypesCore.h:55
TGToolTip.h
TGResourcePool.h
TRandom3.h
TEnv.h
TGTable.h