ROOT logo
ROOT » GUI » GUI » TTableRange

class TTableRange


TGTable



TGTable implements a table widget to display data in rows and columns. The data is supplied by a TVirtualTableInterface.

The table is a TGCanvas to make use of already available viewport functionality and drawing optimizations.

The top left cell in a table has coordinates (0,0)

A TObjArray is used internally to ensure little overhead and fast acces to cells.

If the data source has more rows than the default 50 rows of cells in memory, buttons at the bottom of the table can be used to load the next or previous chunk of data.

At the top of the table, a frame is visible that shows the coordinates of the top left cell currently in memmory in row,column. The amount of rows and columns is also shown in rows x columns. These values can be edited to move to a different area of the data source or to resize the table. Tab will switch between the enties, return will move to the currently entered range and resize the table if needed. Clicking the goto button has the same effect.

A TGTable is created by first creating an appropriate TVirtualTableInterface from the data that needs visualization and then creating the TGTable using this interface.

A simple macro to use a TGTable with a TGSimpleTableInterface:

It is also possible to visualise data from a tree. A simple macro showing the use of a TTreeTableInterface follows.


Function Members (Methods)

public:
TTableRange()
TTableRange(const TTableRange&)
virtual~TTableRange()
static TClass*Class()
virtual TClass*IsA() const
TTableRange&operator=(const TTableRange&)
Bool_toperator==(TTableRange& other)
virtual voidPrint()
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)

Data Members

public:
UInt_tfXbrBottom right X coordinate
UInt_tfXtlTop left X coordinate
UInt_tfYbrBottom right Y coordinate
UInt_tfYtlTop left Y coordinate

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TTableRange()
 TTableRange constuctor.
void Print()
 Print the values of a range.
Bool_t operator==(TTableRange& other)
 Operator to determine if 2 ranges are equal
TTableRange()
virtual ~TTableRange()
{}