friend class ITSModuleStepperGL;
public:
+
typedef std::vector<UInt_t> vpInt_t;
typedef std::vector<UInt_t>::iterator vpInt_i;
-private:
- vpInt_t fIDs; // Vector of module IDs to be displayed.
- UInt_t fPosition; // Position of top corner ITS module in vector fIDs.
- AliEveITSModuleStepper(const AliEveITSModuleStepper&); // Not implemented
- AliEveITSModuleStepper& operator=(const AliEveITSModuleStepper&); // Not implemented
+ AliEveITSModuleStepper(AliEveITSDigitsInfo* di);
+ virtual ~AliEveITSModuleStepper();
+
+ // external functions
+ void DisplayDet(Int_t det, Int_t layer = -1);
+ void DisplayTheta(Float_t min, Float_t max);
+
+ // overlay functions
+ virtual Bool_t MouseEnter(TGLOvlSelectRecord& selRec);
+ virtual Bool_t Handle(TGLRnrCtx& rnrCtx, TGLOvlSelectRecord& selRec,
+ Event_t* event);
+ virtual void MouseLeave();
+ virtual void Render(TGLRnrCtx& rnrCtx);
+
+ // stepper
+ TEveGridStepper* GetStepper() { return fStepper; }
+ void SetStepper(TEveGridStepper* s) { fStepper = s; Apply(); }
+
+ Int_t GetCurrentPage() const;
+ Int_t GetPages();
+ void Start();
+ void Next();
+ void Previous();
+ void End();
+ void Apply();
+ void Capacity();
+
+ // getters/setters
+ Color_t GetWColor() const { return fWCol; }
+ void SetWColor(Color_t c) { fWCol = c; }
+ TGLText* GetFont() { return fText; }
+ void SetGLText(TGLText* t) { fText = t; }
+
protected:
+
AliEveITSDigitsInfo *fDigitsInfo; // Source of data and geometry.
AliEveDigitScaleInfo *fScaleInfo; // Parameters for digit-scaling.
Int_t fSubDet; // Sub-det, 0~SPD, 1~SDD, 2~SSD.
void ResetList() { fIDs.clear();}
void SetFirst(Int_t first);
-public:
- AliEveITSModuleStepper(AliEveITSDigitsInfo* di);
- virtual ~AliEveITSModuleStepper();
-
- // external functions
- void DisplayDet(Int_t det, Int_t layer = -1);
- void DisplayTheta(Float_t min, Float_t max);
-
- // overlay functions
- virtual Bool_t MouseEnter(TGLOvlSelectRecord& selRec);
- virtual Bool_t Handle(TGLRnrCtx& rnrCtx, TGLOvlSelectRecord& selRec,
- Event_t* event);
- virtual void MouseLeave();
- virtual void Render(TGLRnrCtx& rnrCtx);
-
- // stepper
- TEveGridStepper* GetStepper() { return fStepper; }
- void SetStepper(TEveGridStepper* s) { fStepper = s; Apply(); }
-
- Int_t GetCurrentPage() const;
- Int_t GetPages();
- void Start();
- void Next();
- void Previous();
- void End();
- void Apply();
- void Capacity();
+private:
+ vpInt_t fIDs; // Vector of module IDs to be displayed.
+ UInt_t fPosition; // Position of top corner ITS module in vector fIDs.
- // getters/setters
- Color_t GetWColor() const { return fWCol; }
- void SetWColor(Color_t c) { fWCol = c; }
- TGLText* GetFont() { return fText; }
- void SetGLText(TGLText* t) { fText = t; }
+ AliEveITSModuleStepper(const AliEveITSModuleStepper&); // Not implemented
+ AliEveITSModuleStepper& operator=(const AliEveITSModuleStepper&); // Not implemented
ClassDef(AliEveITSModuleStepper, 0); // Display scaled ITS modules in a paged layout, also providing GL-overaly control GUI.
};