]>
Commit | Line | Data |
---|---|---|
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 | |
9 | using namespace Reve; | |
10 | ||
11 | //______________________________________________________________________ | |
12 | // CLASS | |
13 | // | |
14 | ||
2aef44c1 | 15 | ClassImp(CLASS) |
5a5a1232 | 16 | |
a8600b56 | 17 | CLASS::CLASS() : TGLObject(), fM(0) |
5a5a1232 | 18 | { |
32e219c2 | 19 | // fDLCache = kFALSE; // Disable display list. |
5a5a1232 | 20 | } |
21 | ||
22 | CLASS::~CLASS() | |
23 | {} | |
24 | ||
25 | /**************************************************************************/ | |
26 | ||
19208112 | 27 | Bool_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 | ||
36 | void CLASS::SetBBox() | |
37 | { | |
38 | // !! This ok if master sub-classed from TAttBBox | |
a8600b56 | 39 | SetAxisAlignedBBox(((STEM*)fExternalObj)->AssertBBox()); |
5a5a1232 | 40 | } |
41 | ||
42 | /**************************************************************************/ | |
43 | ||
19208112 | 44 | void CLASS::DirectDraw(TGLRnrCtx & rnrCtx) const |
5a5a1232 | 45 | { |
46 | // printf("CLASS::DirectDraw Style %d, LOD %d\n", flags.Style(), flags.LOD()); | |
47 | } |