]>
Commit | Line | Data |
---|---|---|
d810d0de | 1 | // $Id$ |
2 | // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007 | |
3 | ||
4 | /************************************************************************** | |
5 | * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. * | |
6 | * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for * | |
51346b82 | 7 | * full copyright notice. * |
d810d0de | 8 | **************************************************************************/ |
9 | ||
10 | #ifndef ALIEVE_TPCSector3DGL_H | |
11 | #define ALIEVE_TPCSector3DGL_H | |
12 | ||
13 | #include <TGLObject.h> | |
14 | ||
cb4245bb | 15 | #include <EveDet/AliEveTPCSectorData.h> |
d810d0de | 16 | |
17 | class TEveBoxSetGL; | |
18 | ||
19 | ||
20 | class AliEveTPCSector3D; | |
21 | ||
22 | class AliEveTPCSector3DGL : public TGLObject | |
23 | { | |
24 | AliEveTPCSector3DGL(const AliEveTPCSector3DGL&); // Not implemented | |
25 | AliEveTPCSector3DGL& operator=(const AliEveTPCSector3DGL&); // Not implemented | |
26 | ||
27 | protected: | |
a97abca8 | 28 | AliEveTPCSector3D *fSector; // Model object. |
29 | TEveBoxSetGL *fBoxRnr; // Box-set GL renderer. | |
d810d0de | 30 | |
a97abca8 | 31 | mutable UInt_t fRTS; // Rendering time-stamp. |
d810d0de | 32 | |
33 | virtual void DirectDraw(TGLRnrCtx & rnrCtx) const; | |
34 | ||
35 | public: | |
36 | AliEveTPCSector3DGL(); | |
37 | virtual ~AliEveTPCSector3DGL(); | |
38 | ||
39 | virtual Bool_t ShouldDLCache(const TGLRnrCtx&) const { return kFALSE; } | |
40 | virtual ELODAxes SupportedLODAxes() const { return kLODAxesAll; } | |
41 | virtual Short_t QuantizeShapeLOD(Short_t shapeLOD, Short_t combiLOD) const; | |
42 | ||
43 | virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0); | |
44 | virtual void SetBBox(); | |
45 | ||
46 | void DrawSegmentFrame(const AliEveTPCSectorData::SegmentInfo& s, | |
47 | Int_t botExtraPads=0, Int_t topExtraPads=0) const; | |
48 | ||
49 | virtual Bool_t SupportsSecondarySelect() const { return kTRUE; } | |
50 | virtual void ProcessSelection(TGLRnrCtx & rnrCtx, TGLSelectRecord & rec); | |
51 | ||
a97abca8 | 52 | ClassDef(AliEveTPCSector3DGL, 0); // GL renderer for AliEveTPCSector3D. |
d810d0de | 53 | }; // endclass AliEveTPCSector3DGL |
54 | ||
55 | #endif |