Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TEveBoxSetGL.h
Go to the documentation of this file.
1 // @(#)root/eve:$Id$
2 // Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TEveBoxSetGL
13 #define ROOT_TEveBoxSetGL
14 
15 #include "TEveDigitSetGL.h"
16 #include "TEveBoxSet.h"
17 
18 class TEveBoxSetGL : public TEveDigitSetGL
19 {
20  TEveBoxSetGL(const TEveBoxSetGL&); // Not implemented
21  TEveBoxSetGL& operator=(const TEveBoxSetGL&); // Not implemented
22 
23 protected:
24  TEveBoxSet *fM; // Model object.
25 
26  mutable UInt_t fBoxDL; // Display-list id for a box atom.
27 
28  Int_t PrimitiveType() const;
29  void MakeOriginBox(Float_t p[8][3], Float_t dx, Float_t dy, Float_t dz) const;
30  void RenderBoxStdNorm(const Float_t p[8][3]) const;
31  void RenderBoxAutoNorm(const Float_t p[8][3]) const;
32  void MakeDisplayList() const;
33 
34  void RenderBoxes(TGLRnrCtx& rnrCtx) const;
35 
36 public:
37  TEveBoxSetGL();
38  virtual ~TEveBoxSetGL();
39 
40  virtual Bool_t ShouldDLCache(const TGLRnrCtx& rnrCtx) const;
41  virtual void DLCacheDrop();
42  virtual void DLCachePurge();
43 
44  virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
45  virtual void DirectDraw(TGLRnrCtx& rnrCtx) const;
46 
47  virtual void Render(TGLRnrCtx& rnrCtx);
48 
49  ClassDef(TEveBoxSetGL, 0); // GL-renderer for TEveBoxSet class.
50 };
51 
52 #endif