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