]>
Commit | Line | Data |
---|---|---|
5a5a1232 | 1 | // $Header$ |
2 | ||
3 | #include "CLASS.h" | |
71b15810 | 4 | #include <Alieve/STEM.h> |
5a5a1232 | 5 | |
19208112 | 6 | #include <TGLRnrCtx.h> |
7 | #include <TGLIncludes.h> | |
5a5a1232 | 8 | |
9 | using namespace Reve; | |
10 | using namespace Alieve; | |
11 | ||
12 | //______________________________________________________________________ | |
13 | // CLASS | |
14 | // | |
15 | ||
2aef44c1 | 16 | ClassImp(CLASS) |
5a5a1232 | 17 | |
a8600b56 | 18 | CLASS::CLASS() : TGLObject(), fM(0) |
5a5a1232 | 19 | { |
32e219c2 | 20 | // fDLCache = kFALSE; // Disable display list. |
5a5a1232 | 21 | } |
22 | ||
23 | CLASS::~CLASS() | |
24 | {} | |
25 | ||
26 | /**************************************************************************/ | |
27 | ||
19208112 | 28 | Bool_t CLASS::SetModel(TObject* obj, const Option_t* /*opt*/) |
5a5a1232 | 29 | { |
a8600b56 | 30 | if(SetModelCheckClass(obj, STEM::Class())) { |
31 | fM = dynamic_cast<STEM*>(obj); | |
71b15810 | 32 | return kTRUE; |
33 | } | |
34 | return kFALSE; | |
5a5a1232 | 35 | } |
36 | ||
37 | void CLASS::SetBBox() | |
38 | { | |
39 | // !! This ok if master sub-classed from TAttBBox | |
71b15810 | 40 | SetAxisAlignedBBox(((STEM*)fExternalObj)->AssertBBox()); |
5a5a1232 | 41 | } |
42 | ||
43 | /**************************************************************************/ | |
44 | ||
19208112 | 45 | void CLASS::DirectDraw(TGLRnrCtx & rnrCtx) const |
5a5a1232 | 46 | { |
47 | // printf("CLASS::DirectDraw Style %d, LOD %d\n", flags.Style(), flags.LOD()); | |
48 | } |