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