]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Alieve/ITSModuleStepperGL.h
Follow-up on gl/ changes introduced in ROOT-5.16.
[u/mrichter/AliRoot.git] / EVE / Alieve / ITSModuleStepperGL.h
1 // $Header$
2
3 #ifndef ALIEVE_ITSModuleStepperGL_H
4 #define ALIEVE_ITSModuleStepperGL_H
5
6 #include <TGLObject.h>
7
8 class TGLViewer;
9 class TGLScene;
10 class TString;
11
12 namespace Alieve {
13
14 class ITSModuleStepper;
15
16 class ITSModuleStepperGL : public TGLObject
17 {
18 private:
19   ITSModuleStepperGL(const ITSModuleStepperGL&);            // Not implemented
20   ITSModuleStepperGL& operator=(const ITSModuleStepperGL&); // Not implemented
21
22   void   RenderSymbol(Float_t dx, Float_t dy, Int_t id) const;
23   void   RenderString(TString text , Float_t dy, Bool_t trans = kTRUE) const;
24   void   RenderPalette(Float_t dx, Float_t dy) const;
25 protected:
26   ITSModuleStepper* fM; // fModel dynamic-casted to ITSModuleStepperGL
27
28   virtual void DirectDraw(TGLRnrCtx & rnrCtx) const;
29
30 public:
31   ITSModuleStepperGL();
32   virtual ~ITSModuleStepperGL();
33
34   virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
35   virtual void   SetBBox();
36
37   virtual Bool_t IgnoreSizeForOfInterest() const { return kTRUE; }
38   virtual Bool_t SupportsSecondarySelect() const { return kTRUE; }
39   virtual void ProcessSelection(TGLRnrCtx & rnrCtx, TGLSelectRecord & rec);
40
41   ClassDef(ITSModuleStepperGL, 0);
42 }; // endclass ITSModuleStepperGL
43
44 }
45
46 #endif