]>
Commit | Line | Data |
---|---|---|
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 | ||
14 | using namespace Reve; | |
15 | using namespace Alieve; | |
16 | ||
17 | //______________________________________________________________________ | |
18 | // CLASS | |
19 | // | |
20 | ||
2aef44c1 | 21 | ClassImp(CLASS) |
5a5a1232 | 22 | |
a8600b56 | 23 | CLASS::CLASS() : TGLObject(), fM(0) |
5a5a1232 | 24 | { |
25 | // fCached = false; // Disable display list. | |
26 | } | |
27 | ||
28 | CLASS::~CLASS() | |
29 | {} | |
30 | ||
31 | /**************************************************************************/ | |
32 | ||
33 | Bool_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 | ||
42 | void CLASS::SetBBox() | |
43 | { | |
44 | // !! This ok if master sub-classed from TAttBBox | |
71b15810 | 45 | SetAxisAlignedBBox(((STEM*)fExternalObj)->AssertBBox()); |
5a5a1232 | 46 | } |
47 | ||
48 | /**************************************************************************/ | |
49 | ||
50 | void CLASS::DirectDraw(const TGLDrawFlags & flags) const | |
51 | { | |
52 | // printf("CLASS::DirectDraw Style %d, LOD %d\n", flags.Style(), flags.LOD()); | |
53 | } |