]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - EVE/EveDet/AliEveTPCSector3DGL.h
Changes in order to modify also ITSonly tracks
[u/mrichter/AliRoot.git] / EVE / EveDet / AliEveTPCSector3DGL.h
... / ...
CommitLineData
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 *
7 * full copyright notice. *
8 **************************************************************************/
9
10#ifndef AliEveTPCSector3DGL_H
11#define AliEveTPCSector3DGL_H
12
13#include <TGLObject.h>
14
15#include <EveDet/AliEveTPCSectorData.h>
16
17class TEveBoxSetGL;
18
19class AliEveTPCSector3D;
20
21//------------------------------------------------------------------------------
22// AliEveTPCSector3DGL
23//
24// GL renderer for AliEveTPCSector3D.
25//
26
27class AliEveTPCSector3DGL : public TGLObject
28{
29public:
30 AliEveTPCSector3DGL();
31 virtual ~AliEveTPCSector3DGL();
32
33 virtual ELODAxes SupportedLODAxes() const { return kLODAxesAll; }
34 virtual Short_t QuantizeShapeLOD(Short_t shapeLOD, Short_t combiLOD) const;
35
36 virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
37 virtual void SetBBox();
38
39 void DrawSegmentFrame(const AliEveTPCSectorData::SegmentInfo& s,
40 Int_t botExtraPads=0, Int_t topExtraPads=0) const;
41
42 virtual Bool_t SupportsSecondarySelect() const { return kTRUE; }
43 virtual void ProcessSelection(TGLRnrCtx & rnrCtx, TGLSelectRecord & rec);
44
45protected:
46 AliEveTPCSector3D *fSector; // Model object.
47 TEveBoxSetGL *fBoxRnr; // Box-set GL renderer.
48
49 mutable UInt_t fRTS; // Rendering time-stamp.
50
51 virtual void DirectDraw(TGLRnrCtx & rnrCtx) const;
52
53private:
54 AliEveTPCSector3DGL(const AliEveTPCSector3DGL&); // Not implemented
55 AliEveTPCSector3DGL& operator=(const AliEveTPCSector3DGL&); // Not implemented
56
57 ClassDef(AliEveTPCSector3DGL, 0); // GL renderer for AliEveTPCSector3D.
58};
59
60#endif