ROOT  6.06/09
Reference Guide
TEvePolygonSetProjectedGL.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_TEvePolygonSetProjectedGL
13 #define ROOT_TEvePolygonSetProjectedGL
14 
15 #include "TGLObject.h"
16 
18 
20 {
21 protected:
22  struct Edge_t
23  {
26  {
27  if (i <= j) { fI = i; fJ = j; }
28  else { fI = j; fJ = i; }
29  }
30 
31  bool operator<(const Edge_t& e) const
32  {
33  if (fI == e.fI)
34  return fJ < e.fJ;
35  else
36  return fI < e.fI;
37  }
38  };
39 
41 
42 public:
45 
46  virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
47  virtual void SetBBox();
48  virtual void Draw(TGLRnrCtx& rnrCtx) const;
49  virtual void DirectDraw(TGLRnrCtx& rnrCtx) const;
50 
51  virtual void DrawHighlight(TGLRnrCtx& rnrCtx, const TGLPhysicalShape* pshp, Int_t lvl=-1) const;
52 
53  virtual Bool_t IgnoreSizeForOfInterest() const { return kTRUE; }
54 
55 private:
56  void DrawOutline() const;
57 
58  ClassDef(TEvePolygonSetProjectedGL,0); // GL-renderer for TEvePolygonSetProjected class.
59 };
60 
61 #endif
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Definition: TGLRnrCtx.h:40
const char Option_t
Definition: RtypesCore.h:62
TEvePolygonSetProjected * fM
virtual Bool_t SetModel(TObject *obj, const Option_t *opt=0)
Set model object.
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
GL-renderer for TEvePolygonSetProjected class.
Concrete physical shape - a GL drawable.
A set of projected polygons.
Base-class for direct OpenGL renderers.
Definition: TGLObject.h:21
virtual Bool_t IgnoreSizeForOfInterest() const
Return true if size of this shape should be ignored when determining if the object should be drawn...
ClassDef(TEvePolygonSetProjectedGL, 0)
virtual void DrawHighlight(TGLRnrCtx &rnrCtx, const TGLPhysicalShape *pshp, Int_t lvl=-1) const
Draw polygons in highlight mode.
bool operator<(const Edge_t &e) const
virtual void SetBBox()
Setup bounding-box information.
virtual void Draw(TGLRnrCtx &rnrCtx) const
Draw function for TEvePolygonSetProjectedGL.
Mother of all ROOT objects.
Definition: TObject.h:58
virtual void DirectDraw(TGLRnrCtx &rnrCtx) const
Do GL rendering.
const Bool_t kTRUE
Definition: Rtypes.h:91
TObject * obj
void DrawOutline() const
Draw polygons outline.