Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TEveDigitSetGL.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/eve:$Id$
0002 // Author: Matevz Tadel 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_TEveDigitSetGL
0013 #define ROOT_TEveDigitSetGL
0014 
0015 #include "TGLObject.h"
0016 #include "TEveDigitSet.h"
0017 
0018 #include <set>
0019 
0020 class TGLViewer;
0021 class TGLScene;
0022 
0023 class TEveDigitSet;
0024 
0025 class TEveDigitSetGL : public TGLObject
0026 {
0027 private:
0028    TEveDigitSetGL(const TEveDigitSetGL&);            // Not implemented
0029    TEveDigitSetGL& operator=(const TEveDigitSetGL&); // Not implemented
0030 
0031 protected:
0032    mutable const std::set<Int_t> *fHighlightSet;
0033 
0034    Bool_t SetupColor(const TEveDigitSet::DigitBase_t& q) const;
0035    void   DrawFrameIfNeeded(TGLRnrCtx& rnrCtx) const;
0036 
0037 public:
0038    TEveDigitSetGL();
0039    ~TEveDigitSetGL() override {}
0040 
0041    void   SetBBox() override;
0042 
0043    void   DrawHighlight(TGLRnrCtx& rnrCtx, const TGLPhysicalShape* pshp, Int_t lvl=-1) const override;
0044 
0045    Bool_t SupportsSecondarySelect() const override { return kTRUE; }
0046    Bool_t AlwaysSecondarySelect()   const override { return ((TEveDigitSet*)fExternalObj)->GetAlwaysSecSelect(); }
0047    void   ProcessSelection(TGLRnrCtx& rnrCtx, TGLSelectRecord& rec) override;
0048 
0049    ClassDefOverride(TEveDigitSetGL, 0); // GL renderer class for TEveDigitSet.
0050 };
0051 
0052 #endif