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/** \class TGSimpleTable
22 \ingroup guiwidgets
23
24To provide a simple class to visualize an array of doubles, the class
25TGSimpleTable is provided. TGSimpleTable creates it's own
26TGSimpleTableInterface. For more information, see the documentation of
27TGTable
28
29The interface is accesible through the GetInterface() method.
30
31*/
32
33
34////////////////////////////////////////////////////////////////////////////////
35/// TGSimpleTable constructor.
36
38 UInt_t nrows, UInt_t ncolumns)
39 : TGTable(p, id, 0, nrows, ncolumns)
40{
42 ncolumns);
43 SetInterface(iface,nrows, ncolumns);
44}
45
46////////////////////////////////////////////////////////////////////////////////
47/// TGSimpleTable destructor.
48
50{
51 delete fInterface;
52}
53
#define ClassImp(name)
Definition Rtypes.h:377
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize id
TGSimpleTableInterface is a very simple implementation of a TVirtualTableInterface.
To provide a simple class to visualize an array of doubles, the class TGSimpleTable is provided.
~TGSimpleTable() override
TGSimpleTable destructor.
TGSimpleTable(TGWindow *p, Int_t id, Double_t **data, UInt_t nrows, UInt_t ncolumns)
TGSimpleTable constructor.
Create an array to hold a bunch of numbers.
Definition TGTable.h:34
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:670
ROOT GUI Window base class.
Definition TGWindow.h:23