Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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{
21protected:
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
42public:
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
55private:
56 void DrawOutline() const;
57
58 ClassDef(TEvePolygonSetProjectedGL,0); // GL-renderer for TEvePolygonSetProjected class.
59};
60
61#endif
#define e(i)
Definition RSha256.hxx:103
int Int_t
Definition RtypesCore.h:45
bool Bool_t
Definition RtypesCore.h:63
const Bool_t kTRUE
Definition RtypesCore.h:100
const char Option_t
Definition RtypesCore.h:66
#define ClassDef(name, id)
Definition Rtypes.h:325
GL-renderer for TEvePolygonSetProjected class.
virtual void SetBBox()
Setup bounding-box information.
virtual Bool_t SetModel(TObject *obj, const Option_t *opt=0)
Set model object.
void DrawOutline() const
Draw polygons outline.
virtual void DirectDraw(TGLRnrCtx &rnrCtx) const
Do GL rendering.
virtual void DrawHighlight(TGLRnrCtx &rnrCtx, const TGLPhysicalShape *pshp, Int_t lvl=-1) const
Draw polygons in highlight mode.
virtual Bool_t IgnoreSizeForOfInterest() const
Return true if size of this shape should be ignored when determining if the object should be drawn.
A set of projected polygons.
Base-class for direct OpenGL renderers.
Definition TGLObject.h:22
Concrete physical shape - a GL drawable.
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Definition TGLRnrCtx.h:41
Mother of all ROOT objects.
Definition TObject.h:41
th1 Draw()