ROOT logo
#ifndef HTPAD
#define HTPAD
#include "TPad.h"
#include "HprElement.h"

class HprElement;

class HTPad : public TPad, public HprElement
{
private:
   TList *fHiddenPrimitives;
   Color_t fLabelColor();
   Int_t  fCurrentPlane;
public:
   HTPad();
   HTPad(const char *name, const char *title,
           Double_t x1, Double_t y1, Double_t x2, Double_t y2,
           Color_t color=-1, Short_t bordersize=-1, Short_t bordermode=-2);
   ~HTPad();
   void Paint(Option_t *option="");
   void PaintModified();
   virtual void PrintAddress()  {std::cout << ClassName() << "* aa = "
                         << "(" << ClassName() << "*)" << this
                         << std::endl; }; // *MENU*
   void     RemoveImage(); // *MENU*
   void     HideObject(TObject*);
   void     ViewObject(TObject*);
   void     ViewAllObjects(); // *MENU*
   Int_t    GetCurrentPlane() {return fCurrentPlane;};
   void     SetCurrentPlane(Int_t p) {fCurrentPlane = p;};
   Bool_t IsSortable() const {return kTRUE;}
   Int_t Compare( const TObject *obj) const
   {
      const HprElement* hpre = dynamic_cast<const HprElement*>(obj);
      if (GetPlane()== hpre->GetPlane())
         return 0;
      if (GetPlane() > hpre->GetPlane())
         return 1;
      else
         return -1;
   }
ClassDef(HTPad,1)
};

#endif
 HTPad.h:1
 HTPad.h:2
 HTPad.h:3
 HTPad.h:4
 HTPad.h:5
 HTPad.h:6
 HTPad.h:7
 HTPad.h:8
 HTPad.h:9
 HTPad.h:10
 HTPad.h:11
 HTPad.h:12
 HTPad.h:13
 HTPad.h:14
 HTPad.h:15
 HTPad.h:16
 HTPad.h:17
 HTPad.h:18
 HTPad.h:19
 HTPad.h:20
 HTPad.h:21
 HTPad.h:22
 HTPad.h:23
 HTPad.h:24
 HTPad.h:25
 HTPad.h:26
 HTPad.h:27
 HTPad.h:28
 HTPad.h:29
 HTPad.h:30
 HTPad.h:31
 HTPad.h:32
 HTPad.h:33
 HTPad.h:34
 HTPad.h:35
 HTPad.h:36
 HTPad.h:37
 HTPad.h:38
 HTPad.h:39
 HTPad.h:40
 HTPad.h:41
 HTPad.h:42
 HTPad.h:43
 HTPad.h:44
 HTPad.h:45