Logo ROOT   6.10/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
virtual Bool_t IgnoreSizeForOfInterest() const
Return true if size of this shape should be ignored when determining if the object should be drawn...
GL-renderer for TEvePolygonSetProjected class.
Concrete physical shape - a GL drawable.
#define ClassDef(name, id)
Definition: Rtypes.h:297
A set of projected polygons.
virtual void DrawHighlight(TGLRnrCtx &rnrCtx, const TGLPhysicalShape *pshp, Int_t lvl=-1) const
Draw polygons in highlight mode.
Base-class for direct OpenGL renderers.
Definition: TGLObject.h:21
virtual void DirectDraw(TGLRnrCtx &rnrCtx) const
Do GL rendering.
virtual void Draw(TGLRnrCtx &rnrCtx) const
Draw function for TEvePolygonSetProjectedGL.
virtual void SetBBox()
Setup bounding-box information.
void DrawOutline() const
Draw polygons outline.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
Definition: TRolke.cxx:630
Mother of all ROOT objects.
Definition: TObject.h:37
const Bool_t kTRUE
Definition: RtypesCore.h:91