Logo ROOT   6.08/07
Reference Guide
TFileDrawMap.h
Go to the documentation of this file.
1 // @(#)root/treeplayer:$Id$
2 // Author: Rene Brun 15/01/2003
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2003, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TFileDrawMap
13 #define ROOT_TFileDrawMap
14 
15 
16 //////////////////////////////////////////////////////////////////////////
17 // //
18 // TFileDrawMap //
19 // //
20 // Draw a 2-d map of the objects in a file //
21 // //
22 //////////////////////////////////////////////////////////////////////////
23 
24 #ifndef ROOT_TNamed
25 #include "TNamed.h"
26 #endif
27 
28 class TH1;
29 class TFile;
30 class TDirectory;
31 class TBox;
32 class TBranch;
33 
34 class TFileDrawMap : public TNamed {
35 
36 protected:
37  TFile *fFile; //pointer to the file
38  TH1 *fFrame; //histogram used to draw the map frame
39  TString fKeys; //list of keys
40  TString fOption; //drawing options
41  Int_t fXsize; //size in bytes of X axis
42  Int_t fYsize; //size in K/Mbytes of Y axis
43 
44  virtual void DrawMarker(Int_t marker, Long64_t eseek);
45  virtual Bool_t GetObjectInfoDir(TDirectory *dir, Int_t px, Int_t py, TString &info) const;
46  virtual void PaintBox(TBox &box, Long64_t bseek, Int_t nbytes);
47  virtual void PaintDir(TDirectory *dir, const char *keys);
48  virtual TObject *GetObject();
49 
50 public:
51  TFileDrawMap();
52  TFileDrawMap(const TFile *file, const char *keys, Option_t *option);
53  virtual ~TFileDrawMap();
54 
55  virtual void AnimateTree(const char *branches=""); // *MENU*
56  virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
57  virtual void DrawObject(); // *MENU*
58  virtual void DumpObject(); // *MENU*
59  virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
60  virtual char *GetObjectInfo(Int_t px, Int_t py) const;
61  virtual void InspectObject(); // *MENU*
62  virtual void Paint(Option_t *option);
63 
64  ClassDef(TFileDrawMap,1); //Draw a 2-d map of the objects in a file
65 };
66 
67 #endif
virtual void PaintDir(TDirectory *dir, const char *keys)
Paint keys in a directory.
virtual void DrawMarker(Int_t marker, Long64_t eseek)
Draw marker.
TString fOption
Definition: TFileDrawMap.h:40
virtual TObject * GetObject()
Retrieve object at the mouse position in memory.
virtual Bool_t GetObjectInfoDir(TDirectory *dir, Int_t px, Int_t py, TString &info) const
Redefines TObject::GetObjectInfo.
long long Long64_t
Definition: RtypesCore.h:69
const char Option_t
Definition: RtypesCore.h:62
Create a Box.
Definition: TBox.h:36
virtual ~TFileDrawMap()
Tree destructor.
virtual void InspectObject()
Inspect object at the mouse position.
virtual void PaintBox(TBox &box, Long64_t bseek, Int_t nbytes)
Paint the object at bseek with nbytes using the box object.
virtual char * GetObjectInfo(Int_t px, Int_t py) const
Redefines TObject::GetObjectInfo.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
Definition: TFile.h:50
TFile * fFile
Definition: TFileDrawMap.h:37
virtual void DrawObject()
Draw object at the mouse position.
Basic string class.
Definition: TString.h:137
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py)
Compute distance from point px,py to this TreeFileMap.
void box(Int_t pat, Double_t x1, Double_t y1, Double_t x2, Double_t y2)
Definition: fillpatterns.C:1
TFileDrawMap()
Default TreeFileMap constructor.
#define ClassDef(name, id)
Definition: Rtypes.h:254
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:33
TString fKeys
Definition: TFileDrawMap.h:39
virtual void DumpObject()
Dump object at the mouse position.
virtual void AnimateTree(const char *branches="")
Show sequence of baskets reads for the list of baskets involved in the list of branches (separated by...
virtual void Paint(Option_t *option)
Paint this TFileDrawMap.
Describe directory structure in memory.
Definition: TDirectory.h:44
The TH1 histogram class.
Definition: TH1.h:80
Mother of all ROOT objects.
Definition: TObject.h:37
Definition: file.py:1
A TTree is a list of TBranches.
Definition: TBranch.h:58
This class is automatically called by TFile::DrawMap.
Definition: TFileDrawMap.h:34
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.