ROOT  6.06/09
Reference Guide
TPaveClass.h
Go to the documentation of this file.
1 // @(#)root/gpad:$Id$
2 // Author: Rene Brun 06/08/99
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2000, 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 #ifndef ROOT_TPaveClass
12 #define ROOT_TPaveClass
13 
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TPaveClass //
18 // //
19 // A TPaveLabel specialized for TClassTree objects //
20 // //
21 //////////////////////////////////////////////////////////////////////////
22 
23 #ifndef ROOT_TPaveLabel
24 #include "TPaveLabel.h"
25 #endif
26 #ifndef ROOT_TClassTree
27 #include "TClassTree.h"
28 #endif
29 
30 
31 class TPaveClass : public TPaveLabel{
32 
33 protected:
34  TClassTree *fClassTree; //Pointer to the TClassTree referencing this object
35 
36 public:
37  TPaveClass();
38  TPaveClass(Double_t x1, Double_t y1,Double_t x2 ,Double_t y2, const char *label, TClassTree *classtree);
39  TPaveClass(const TPaveClass &PaveVar);
40  virtual ~TPaveClass();
41 
42  void Copy(TObject &PaveVar) const;
43  virtual void DrawClasses(const char *classes="this"); // *MENU*
44  TClassTree *GetClassTree() const {return fClassTree;}
45  virtual void SaveAs(const char *filename="",Option_t *option="") const; // *MENU*
46  virtual void SavePrimitive(std::ostream &out, Option_t *option = "");
47  virtual void SetClasses(const char *classes="this", Option_t *option="ID"); // *MENU*
48  virtual void ShowClassesUsedBy(const char *classes="this"); // *MENU*
49  virtual void ShowClassesUsing(const char *classes="this"); // *MENU*
50  virtual void SetClassTree(TClassTree *classtree) {fClassTree = classtree;}
51  virtual void ShowLinks(Option_t *option="HMR"); // *MENU*
52 
53  ClassDef(TPaveClass,1) //A TPaveLabel specialized for TClassTree objects
54 };
55 
56 #endif
A TPaveLabel specialized to process classes inside a TClassTree.
Definition: TPaveClass.h:31
TClassTree * GetClassTree() const
Definition: TPaveClass.h:44
TClassTree * fClassTree
Definition: TPaveClass.h:34
ClassDef(TAttBBox2D, 0)
virtual ~TPaveClass()
PaveClass default destructor.
Definition: TPaveClass.cxx:53
const char Option_t
Definition: RtypesCore.h:62
static const char * filename()
static const double x2[5]
virtual void ShowClassesUsing(const char *classes="this")
Show classes using.
Definition: TPaveClass.cxx:130
char * out
Definition: TBase64.cxx:29
A Pave (see TPave) with a text centered in the Pave.
Definition: TPaveLabel.h:32
virtual void SaveAs(const char *filename="", Option_t *option="") const
Save as.
Definition: TPaveClass.cxx:87
virtual void SetClasses(const char *classes="this", Option_t *option="ID")
Set classes.
Definition: TPaveClass.cxx:96
void Copy(TObject &PaveVar) const
Copy this PaveClass to PaveClass.
Definition: TPaveClass.cxx:68
static const double x1[5]
virtual void DrawClasses(const char *classes="this")
Draw classes.
Definition: TPaveClass.cxx:77
double Double_t
Definition: RtypesCore.h:55
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save primitive as a C++ statement(s) on output stream out.
Definition: TPaveClass.cxx:140
Mother of all ROOT objects.
Definition: TObject.h:58
virtual void ShowLinks(Option_t *option="HMR")
Set link options in the ClassTree object.
Definition: TPaveClass.cxx:111
virtual void ShowClassesUsedBy(const char *classes="this")
Show classes used by.
Definition: TPaveClass.cxx:120
virtual void SetClassTree(TClassTree *classtree)
Definition: TPaveClass.h:50
Draw inheritance tree and their relations for a list of classes.
Definition: TClassTree.h:31