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