ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TEveDigitSetGL.h
Go to the documentation of this file.
1 // @(#)root/eve:$Id$
2 // Author: Matevz Tadel 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_TEveDigitSetGL
13 #define ROOT_TEveDigitSetGL
14 
15 #include "TGLObject.h"
16 #include "TEveDigitSet.h"
17 
18 class TGLViewer;
19 class TGLScene;
20 
21 class TEveDigitSet;
22 
23 class TEveDigitSetGL : public TGLObject
24 {
25 private:
26  TEveDigitSetGL(const TEveDigitSetGL&); // Not implemented
27  TEveDigitSetGL& operator=(const TEveDigitSetGL&); // Not implemented
28 
29 protected:
30  mutable const std::set<Int_t> *fHighlightSet;
31 
33  void DrawFrameIfNeeded(TGLRnrCtx& rnrCtx) const;
34 
35 public:
37  virtual ~TEveDigitSetGL() {}
38 
39  virtual void SetBBox();
40 
41  virtual void DrawHighlight(TGLRnrCtx& rnrCtx, const TGLPhysicalShape* pshp, Int_t lvl=-1) const;
42 
43  virtual Bool_t SupportsSecondarySelect() const { return kTRUE; }
44  virtual Bool_t AlwaysSecondarySelect() const { return ((TEveDigitSet*)fExternalObj)->GetAlwaysSecSelect(); }
45  virtual void ProcessSelection(TGLRnrCtx& rnrCtx, TGLSelectRecord& rec);
46 
47  ClassDef(TEveDigitSetGL, 0); // GL renderer class for TEveDigitSet.
48 };
49 
50 #endif
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Definition: TGLRnrCtx.h:40
const std::set< Int_t > * fHighlightSet
virtual Bool_t SupportsSecondarySelect() const
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
virtual ~TEveDigitSetGL()
Concrete physical shape - a GL drawable.
virtual void SetBBox()
Set bounding box.
Base-class for direct OpenGL renderers.
Definition: TGLObject.h:21
void DrawFrameIfNeeded(TGLRnrCtx &rnrCtx) const
Make a decision if the frame should be drawn.
OpenGL renderer class for TEveDigitSet.
TObject * fExternalObj
first replica
ClassDef(TEveDigitSetGL, 0)
Bool_t SetupColor(const TEveDigitSet::DigitBase_t &q) const
Set color for rendering of the specified digit.
virtual void DrawHighlight(TGLRnrCtx &rnrCtx, const TGLPhysicalShape *pshp, Int_t lvl=-1) const
Draw the quad-set in highlight mode.
Standard selection record including information about containing scene and details ob out selected ob...
TEveDigitSetGL()
Constructor.
Base GL viewer object - used by both standalone and embedded (in pad) GL.
Definition: TGLViewer.h:53
virtual void ProcessSelection(TGLRnrCtx &rnrCtx, TGLSelectRecord &rec)
Processes secondary selection from TGLViewer.
virtual Bool_t AlwaysSecondarySelect() const
TGLScene provides management and rendering of ROOT's default 3D /object representation as logical and...
Definition: TGLScene.h:30
TEveDigitSetGL & operator=(const TEveDigitSetGL &)
const Bool_t kTRUE
Definition: Rtypes.h:91
float * q
Definition: THbookFile.cxx:87
Base-class for storage of digit collections; provides transformation matrix (TEveTrans), signal to color mapping (TEveRGBAPalette) and visual grouping (TEveFrameBox).
Definition: TEveDigitSet.h:29