]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Alieve/.SKEL-gl.cxx
Fix handling of AliESDfriends.root.
[u/mrichter/AliRoot.git] / EVE / Alieve / .SKEL-gl.cxx
1 // $Header$
2
3 #include "CLASS.h"
4 #include <Alieve/STEM.h>
5
6 #include <TGLDrawFlags.h>
7
8 #ifdef WIN32
9 #include "Windows4root.h"
10 #endif
11 #include <GL/gl.h>
12 #include <GL/glu.h>
13
14 using namespace Reve;
15 using namespace Alieve;
16
17 //______________________________________________________________________
18 // CLASS
19 //
20
21 ClassImp(CLASS)
22
23 CLASS::CLASS() : TGLObject(), fM(0)
24 {
25   // fCached = false; // Disable display list.
26 }
27
28 CLASS::~CLASS()
29 {}
30
31 /**************************************************************************/
32
33 Bool_t CLASS::SetModel(TObject* obj)
34 {
35   if(SetModelCheckClass(obj, STEM::Class())) {
36     fM = dynamic_cast<STEM*>(obj);
37     return kTRUE;
38   }
39   return kFALSE;
40 }
41
42 void CLASS::SetBBox()
43 {
44   // !! This ok if master sub-classed from TAttBBox
45   SetAxisAlignedBBox(((STEM*)fExternalObj)->AssertBBox());
46 }
47
48 /**************************************************************************/
49
50 void CLASS::DirectDraw(const TGLDrawFlags & flags) const
51 {
52   // printf("CLASS::DirectDraw Style %d, LOD %d\n", flags.Style(), flags.LOD());
53 }