Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:11:40

0001 // @(#)root/eve:$Id$
0002 // Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TEveBoxSetGL
0013 #define ROOT_TEveBoxSetGL
0014 
0015 #include "TEveDigitSetGL.h"
0016 #include "TEveBoxSet.h"
0017 
0018 class TEveBoxSetGL : public TEveDigitSetGL
0019 {
0020    TEveBoxSetGL(const TEveBoxSetGL&);            // Not implemented
0021    TEveBoxSetGL& operator=(const TEveBoxSetGL&); // Not implemented
0022 
0023 protected:
0024    TEveBoxSet     *fM;       // Model object.
0025 
0026    mutable UInt_t  fBoxDL;   // Display-list id for a box atom.
0027 
0028    Int_t  PrimitiveType() const;
0029    void   MakeOriginBox(Float_t p[8][3], Float_t dx, Float_t dy, Float_t dz) const;
0030    void   RenderBoxStdNorm(const Float_t p[8][3]) const;
0031    void   RenderBoxAutoNorm(const Float_t p[8][3]) const;
0032    void   MakeDisplayList() const;
0033 
0034    void   RenderBoxes(TGLRnrCtx& rnrCtx) const;
0035 
0036 public:
0037    TEveBoxSetGL();
0038    ~TEveBoxSetGL() override;
0039 
0040    Bool_t ShouldDLCache(const TGLRnrCtx& rnrCtx) const override;
0041    void   DLCacheDrop() override;
0042    void   DLCachePurge() override;
0043 
0044    Bool_t SetModel(TObject* obj, const Option_t *opt = nullptr) override;
0045    void   DirectDraw(TGLRnrCtx& rnrCtx) const override;
0046 
0047    virtual void Render(TGLRnrCtx& rnrCtx);
0048 
0049    ClassDefOverride(TEveBoxSetGL, 0); // GL-renderer for TEveBoxSet class.
0050 };
0051 
0052 #endif