/**************************************************************************/
-void ITSModule::Init()
-{
- fTrans = false;
- fID = -1;
- fInfo = 0;
-}
-
-/**************************************************************************/
+ITSModule::ITSModule(const Text_t* n, const Text_t* t, Color_t col) :
+ Reve::RenderElement(fFrameColor),
+ QuadSet(n, t),
+ fInfo (0),
+ fDetID (-1),
+ fFrameColor(col)
+{}
ITSModule::ITSModule(Int_t id, ITSDigitsInfo* info, Color_t col) :
- QuadSet(Form("ITS module %d", id)), Reve::RenderElement(fFrameColor),
+ Reve::RenderElement(fFrameColor),
+ QuadSet(Form("ITS module %d", id)),
+ fInfo (0),
+ fDetID (-1),
fFrameColor(col)
{
- Init();
-
- fInfo = info;
+ SetDigitsInfo(info);
SetID(id);
}
/**************************************************************************/
+void ITSModule::SetDigitsInfo(ITSDigitsInfo* info)
+{
+ if(fInfo) fInfo->DecRefCount();
+ fInfo = info;
+ if(fInfo) fInfo->IncRefCount();
+}
+
void ITSModule::SetID(Int_t id)
{
static const Exc_t eH("ITSModule::SetID ");
namespace Alieve {
-class ITSModule : public Reve::QuadSet, public Reve::RenderElement
+class ITSModule : public Reve::RenderElement,
+ public Reve::QuadSet
{
private:
- void Init();
void LoadQuads();
protected:
Color_t fFrameColor;
public:
- ITSModule(const Text_t* n="ITSModule", const Text_t* t=0, Color_t col=2) :
- QuadSet(n, t), Reve::RenderElement(fFrameColor), fFrameColor(col)
- { Init(); }
+ ITSModule(const Text_t* n="ITSModule", const Text_t* t=0, Color_t col=2);
ITSModule(Int_t id, ITSDigitsInfo* info, Color_t col=2);
virtual ~ITSModule();
virtual Bool_t CanEditMainColor() { return true; }
virtual void SetMainColor(Color_t col);
+ virtual void SetDigitsInfo(ITSDigitsInfo* info);
virtual void SetID(Int_t id);
virtual void Print(Option_t* opt="") const;
}
/**************************************************************************/
+
+MUONModule::MUONModule(const Text_t* n, const Text_t* t, Color_t col) :
+ Reve::RenderElement(fFrameCol),
+ QuadSet(n, t),
+ fFrameCol(col)
+{
+ Init();
+}
+
MUONModule::MUONModule(Int_t id, Int_t cath, MUONDigitsInfo* info, Bool_t dig, Bool_t clus, Color_t col ) :
- QuadSet(Form("M-DetElemId %d C%1d",id,cath)), Reve::RenderElement(fFrameCol),
+ Reve::RenderElement(fFrameCol),
+ QuadSet(Form("M-DetElemId %d C%1d",id,cath)),
fFrameCol(col)
{
namespace Alieve {
-class MUONModule : public Reve::QuadSet, public Reve::RenderElement
+class MUONModule : public Reve::RenderElement,
+ public Reve::QuadSet
{
public:
- MUONModule(const Text_t* n="MUONModule", const Text_t* t=0, Color_t col=2) : QuadSet(n, t), Reve::RenderElement(fFrameCol), fFrameCol(col)
- { Init(); }
+ MUONModule(const Text_t* n="MUONModule", const Text_t* t=0, Color_t col=2);
MUONModule(Int_t id, Int_t cath, MUONDigitsInfo* info, Bool_t dig, Bool_t clus, Color_t col=2);
virtual ~MUONModule();
/**************************************************************************/
TPCSectorViz::TPCSectorViz(const Text_t* n, const Text_t* t) :
- TNamed(n, t),
Reve::RenderElement(fFrameColor),
+ TNamed(n, t),
fTPCData (0),
fSectorID (0),
class TPCSector2D; class TPCSector2DEditor; class TPCSector2DGL;
class TPCSector3D; class TPCSector3DEditor; class TPCSector3DGL;
-class TPCSectorViz : public TNamed, public TAtt3D, public TAttBBox,
- public Reve::RenderElement
+class TPCSectorViz : public Reve::RenderElement,
+ public TNamed,
+ public TAtt3D,
+ public TAttBBox
{
friend class TPCSectorVizEditor;
friend class TPCSector2D;