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 Bool_t SetModel(TObject* obj, const Option_t *opt = nullptr) override;
47 void SetBBox() override;
48 void Draw(TGLRnrCtx& rnrCtx) const override;
49 void DirectDraw(TGLRnrCtx& rnrCtx) const override;
50
51 void DrawHighlight(TGLRnrCtx& rnrCtx, const TGLPhysicalShape* pshp, Int_t lvl=-1) const override;
52
53 Bool_t IgnoreSizeForOfInterest() const override { return kTRUE; }
54
55private:
56 void DrawOutline() const;
57
58 ClassDefOverride(TEvePolygonSetProjectedGL,0); // GL-renderer for TEvePolygonSetProjected class.
59};
60
61#endif
#define e(i)
Definition RSha256.hxx:103
bool Bool_t
Definition RtypesCore.h:63
int Int_t
Definition RtypesCore.h:45
constexpr Bool_t kTRUE
Definition RtypesCore.h:100
const char Option_t
Definition RtypesCore.h:66
GL-renderer for TEvePolygonSetProjected class.
void DrawOutline() const
Draw polygons outline.
void DrawHighlight(TGLRnrCtx &rnrCtx, const TGLPhysicalShape *pshp, Int_t lvl=-1) const override
Draw polygons in highlight mode.
void SetBBox() override
Setup bounding-box information.
ClassDefOverride(TEvePolygonSetProjectedGL, 0)
void DirectDraw(TGLRnrCtx &rnrCtx) const override
Do GL rendering.
Bool_t IgnoreSizeForOfInterest() const override
Return true if size of this shape should be ignored when determining if the object should be drawn.
Bool_t SetModel(TObject *obj, const Option_t *opt=nullptr) override
Set model object.
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()