]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Reve/.SKEL-gl.cxx
Add Getters and Setters in TrackRnrStyle and TrackList to define rendering of path...
[u/mrichter/AliRoot.git] / EVE / Reve / .SKEL-gl.cxx
1 // $Header$
2
3 #include "CLASS.h"
4 #include <Reve/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
16 //______________________________________________________________________
17 // CLASS
18 //
19
20 ClassImp(CLASS)
21
22 CLASS::CLASS() : TGLObject(), fM(0)
23 {
24   // fCached = false; // Disable display list.
25 }
26
27 CLASS::~CLASS()
28 {}
29
30 /**************************************************************************/
31
32 Bool_t CLASS::SetModel(TObject* obj)
33 {
34   if(SetModelCheckClass(obj, STEM::Class())) {
35     fM = dynamic_cast<STEM*>(obj);
36     return kTRUE;
37   }
38   return kFALSE;
39 }
40
41 void CLASS::SetBBox()
42 {
43   // !! This ok if master sub-classed from TAttBBox
44   SetAxisAlignedBBox(((STEM*)fExternalObj)->AssertBBox());
45 }
46
47 /**************************************************************************/
48
49 void CLASS::DirectDraw(const TGLDrawFlags & flags) const
50 {
51   // printf("CLASS::DirectDraw Style %d, LOD %d\n", flags.Style(), flags.LOD());
52 }