]>
Commit | Line | Data |
---|---|---|
5a5a1232 | 1 | // $Header$ |
2 | ||
3 | #include "CLASS.h" | |
4 | #include <Reve/STEM.h> | |
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 | ||
16 | //______________________________________________________________________ | |
17 | // CLASS | |
18 | // | |
19 | ||
2aef44c1 | 20 | ClassImp(CLASS) |
5a5a1232 | 21 | |
a8600b56 | 22 | CLASS::CLASS() : TGLObject(), fM(0) |
5a5a1232 | 23 | { |
24 | // fCached = false; // Disable display list. | |
25 | } | |
26 | ||
27 | CLASS::~CLASS() | |
28 | {} | |
29 | ||
30 | /**************************************************************************/ | |
31 | ||
32 | Bool_t CLASS::SetModel(TObject* obj) | |
33 | { | |
a8600b56 | 34 | if(SetModelCheckClass(obj, STEM::Class())) { |
35 | fM = dynamic_cast<STEM*>(obj); | |
36 | return kTRUE; | |
37 | } | |
38 | return kFALSE; | |
5a5a1232 | 39 | } |
40 | ||
41 | void CLASS::SetBBox() | |
42 | { | |
43 | // !! This ok if master sub-classed from TAttBBox | |
a8600b56 | 44 | SetAxisAlignedBBox(((STEM*)fExternalObj)->AssertBBox()); |
5a5a1232 | 45 | } |
46 | ||
47 | /**************************************************************************/ | |
48 | ||
49 | void CLASS::DirectDraw(const TGLDrawFlags & flags) const | |
50 | { | |
51 | // printf("CLASS::DirectDraw Style %d, LOD %d\n", flags.Style(), flags.LOD()); | |
52 | } |