// @(#)root/treeplayer:$Name: $:$Id: TFileDrawMap.h,v 1.3 2003/12/30 13:16:51 brun Exp $
// Author: Rene Brun 15/01/2003
/*************************************************************************
* Copyright (C) 1995-2003, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TFileDrawMap
#define ROOT_TFileDrawMap
//////////////////////////////////////////////////////////////////////////
// //
// TFileDrawMap //
// //
// Draw a 2-d map of the objects in a file //
// //
//////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TNamed
#include "TNamed.h"
#endif
class TH1;
class TFile;
class TDirectory;
class TBox;
class TBranch;
class TFileDrawMap : public TNamed {
protected:
TFile *fFile; //pointer to the file
TH1 *fFrame; //histogram used to draw the map frame
TString fKeys; //list of keys
TString fOption; //drawing options
Int_t fXsize; //size in bytes of X axis
Int_t fYsize; //size in K/Mbytes of Y axis
virtual void DrawMarker(Int_t marker, Long64_t eseek);
virtual Bool_t GetObjectInfoDir(TDirectory *dir, Int_t px, Int_t py, char *info) const;
virtual void PaintBox(TBox &box, Long64_t bseek, Int_t nbytes);
virtual void PaintDir(TDirectory *dir, const char *keys);
virtual TObject *GetObject();
public:
TFileDrawMap();
TFileDrawMap(const TFile *file, const char *keys, Option_t *option);
virtual ~TFileDrawMap();
virtual void AnimateTree(const char *branches=""); // *MENU*
virtual Int_t DistancetoPrimitive(Int_t px, Int_t py);
virtual void DrawObject(); // *MENU*
virtual void DumpObject(); // *MENU*
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py);
virtual char *GetObjectInfo(Int_t px, Int_t py) const;
virtual void InspectObject(); // *MENU*
virtual void Paint(Option_t *option);
ClassDef(TFileDrawMap,1) //Draw a 2-d map of the objects in a file
};
#endif
syntax highlighted by Code2HTML, v. 0.9.1