TFileDrawMap.h

Go to the documentation of this file.
00001 // @(#)root/treeplayer:$Id: TFileDrawMap.h 35450 2010-09-20 12:36:11Z pcanal $
00002 // Author: Rene Brun   15/01/2003
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2003, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TFileDrawMap
00013 #define ROOT_TFileDrawMap
00014 
00015 
00016 //////////////////////////////////////////////////////////////////////////
00017 //                                                                      //
00018 // TFileDrawMap                                                         //
00019 //                                                                      //
00020 // Draw a 2-d map of the objects in a file                              //
00021 //                                                                      //
00022 //////////////////////////////////////////////////////////////////////////
00023 
00024 #ifndef ROOT_TNamed
00025 #include "TNamed.h"
00026 #endif
00027 
00028 class TH1;
00029 class TFile;
00030 class TDirectory;
00031 class TBox;
00032 class TBranch;
00033 
00034 class TFileDrawMap : public TNamed {
00035 
00036 protected:
00037    TFile         *fFile;           //pointer to the file
00038    TH1           *fFrame;          //histogram used to draw the map frame
00039    TString        fKeys;           //list of keys
00040    TString        fOption;         //drawing options
00041    Int_t          fXsize;          //size in bytes of X axis
00042    Int_t          fYsize;          //size in K/Mbytes of Y axis
00043    
00044    virtual void     DrawMarker(Int_t marker, Long64_t eseek);
00045    virtual Bool_t   GetObjectInfoDir(TDirectory *dir, Int_t px, Int_t py, TString &info) const;
00046    virtual void     PaintBox(TBox &box, Long64_t bseek, Int_t nbytes);
00047    virtual void     PaintDir(TDirectory *dir, const char *keys);
00048    virtual TObject *GetObject(); 
00049    
00050 public:
00051    TFileDrawMap();
00052    TFileDrawMap(const TFile *file, const char *keys, Option_t *option);
00053    virtual ~TFileDrawMap();
00054    
00055    virtual void  AnimateTree(const char *branches=""); // *MENU*
00056    virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
00057    virtual void  DrawObject(); // *MENU*
00058    virtual void  DumpObject(); // *MENU*
00059    virtual void  ExecuteEvent(Int_t event, Int_t px, Int_t py);
00060    virtual char *GetObjectInfo(Int_t px, Int_t py) const;
00061    virtual void  InspectObject(); // *MENU*
00062    virtual void  Paint(Option_t *option);
00063    
00064    ClassDef(TFileDrawMap,1);  //Draw a 2-d map of the objects in a file
00065 };
00066 
00067 #endif

Generated on Tue Jul 5 14:26:49 2011 for ROOT_528-00b_version by  doxygen 1.5.1