]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/Alieve/.SKEL-gl.cxx
Added interface to load-time threshold/(auto)pedestal settings.
[u/mrichter/AliRoot.git] / EVE / Alieve / .SKEL-gl.cxx
CommitLineData
5a5a1232 1// $Header$
2
3#include "CLASS.h"
71b15810 4#include <Alieve/STEM.h>
5a5a1232 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
14using namespace Reve;
15using namespace Alieve;
16
17//______________________________________________________________________
18// CLASS
19//
20
2aef44c1 21ClassImp(CLASS)
5a5a1232 22
a8600b56 23CLASS::CLASS() : TGLObject(), fM(0)
5a5a1232 24{
25 // fCached = false; // Disable display list.
26}
27
28CLASS::~CLASS()
29{}
30
31/**************************************************************************/
32
33Bool_t CLASS::SetModel(TObject* obj)
34{
a8600b56 35 if(SetModelCheckClass(obj, STEM::Class())) {
36 fM = dynamic_cast<STEM*>(obj);
71b15810 37 return kTRUE;
38 }
39 return kFALSE;
5a5a1232 40}
41
42void CLASS::SetBBox()
43{
44 // !! This ok if master sub-classed from TAttBBox
71b15810 45 SetAxisAlignedBBox(((STEM*)fExternalObj)->AssertBBox());
5a5a1232 46}
47
48/**************************************************************************/
49
50void CLASS::DirectDraw(const TGLDrawFlags & flags) const
51{
52 // printf("CLASS::DirectDraw Style %d, LOD %d\n", flags.Style(), flags.LOD());
53}