ROOT logo
#ifndef HPRELEMENT
#define HPRELEMENT
#include "Rtypes.h"
#include "TPad.h"
#include "TList.h"
#include <iostream>

class HTPad;
class GrCanvas;

class HprElement
{
private:
   Int_t fPlane;
   Int_t fVisibilityFlag;
   Int_t fMustAlign;
   TList fMemberships;
   HTPad * fHTPad;             //!   dont stream
   GrCanvas * fGrCanvas;       //!   dont stream
   TObject *  fDaughter;       //!   dont stream

public:
   HprElement(TObject * daughter = NULL);
   virtual ~HprElement();
   virtual void  SetPlane(Int_t plane) { fPlane = plane; }; // *MENU*
   Int_t GetPlane() const      { return fPlane; };
   void  SetMustAlign(Int_t al){ fMustAlign = al; };        // *MENU*
   Int_t GetMustAlign()        { return fMustAlign; };
   void  SetVisibilityFlag(Int_t vis){ fVisibilityFlag = vis; };
   Int_t GetVisibilityFlag()   { return fVisibilityFlag; };
   Int_t GetVisibility()       { return fVisibilityFlag; };
   void  SetVisibility(Int_t vis);                          // *MENU*
   void  SetDaughter(TObject *d) { fDaughter = d;};
   TObject * GetDaughter() {return fDaughter;};
   static void MoveObject(TObject *obj, TList *from, TList *to);
   static void MoveAllObjects(TList *from, TList *to, Int_t plane, Int_t vis);
   static Int_t GetNofElementsInPlane(TList *list, Int_t plane);


 #if ROOT_VERSION_CODE >= ROOT_VERSION(5,12,0)
   void SavePrimitive(std::ostream &, Option_t *);
 #else
   void SavePrimitive(std::ofstream &, Option_t *);
 #endif
ClassDef(HprElement,2)
};
#endif
 HprElement.h:1
 HprElement.h:2
 HprElement.h:3
 HprElement.h:4
 HprElement.h:5
 HprElement.h:6
 HprElement.h:7
 HprElement.h:8
 HprElement.h:9
 HprElement.h:10
 HprElement.h:11
 HprElement.h:12
 HprElement.h:13
 HprElement.h:14
 HprElement.h:15
 HprElement.h:16
 HprElement.h:17
 HprElement.h:18
 HprElement.h:19
 HprElement.h:20
 HprElement.h:21
 HprElement.h:22
 HprElement.h:23
 HprElement.h:24
 HprElement.h:25
 HprElement.h:26
 HprElement.h:27
 HprElement.h:28
 HprElement.h:29
 HprElement.h:30
 HprElement.h:31
 HprElement.h:32
 HprElement.h:33
 HprElement.h:34
 HprElement.h:35
 HprElement.h:36
 HprElement.h:37
 HprElement.h:38
 HprElement.h:39
 HprElement.h:40
 HprElement.h:41
 HprElement.h:42
 HprElement.h:43
 HprElement.h:44
 HprElement.h:45
 HprElement.h:46
 HprElement.h:47