Logo ROOT  
Reference Guide
TEveJetConeGL.h
Go to the documentation of this file.
1// @(#)root/eve:$Id$
2// Author: Matevz Tadel, Jochen Thaeder 2009
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_TEveJetConeGL
13#define ROOT_TEveJetConeGL
14
15#include "TGLObject.h"
16#include "TEveVector.h"
17#include <vector>
18
19class TGLViewer;
20class TGLScene;
21
22class TEveJetCone;
24
25//------------------------------------------------------------------------------
26// TEveJetCone
27//------------------------------------------------------------------------------
28
30{
31private:
32 TEveJetConeGL(const TEveJetConeGL&) = delete;
34
35protected:
36 TEveJetCone *fC; // Model object.
37 mutable std::vector<TEveVector> fP;
38
39 virtual void CalculatePoints() const;
40
41public:
43 virtual ~TEveJetConeGL() {}
44
45 virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
46 virtual void SetBBox();
47
48 virtual void DLCacheClear();
49 virtual void Draw(TGLRnrCtx& rnrCtx) const;
50 virtual void DirectDraw(TGLRnrCtx & rnrCtx) const;
51
52 ClassDef(TEveJetConeGL, 0); // GL renderer class for TEveJetCone.
53};
54
55
56//------------------------------------------------------------------------------
57// TEveJetConeProjectedGL
58//------------------------------------------------------------------------------
59
61{
62private:
65
66protected:
67 TEveJetConeProjected *fM; // Model object.
68
69 virtual void CalculatePoints() const;
70
71 void RenderOutline() const;
72 void RenderPolygon() const;
73
74public:
77
78 virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
79 virtual void SetBBox();
80
81 virtual void Draw(TGLRnrCtx& rnrCtx) const;
82 virtual void DirectDraw(TGLRnrCtx & rnrCtx) const;
83
84 ClassDef(TEveJetConeProjectedGL, 0); // GL renderer class for TEveJetCone.
85};
86
87#endif
bool Bool_t
Definition: RtypesCore.h:63
const char Option_t
Definition: RtypesCore.h:66
#define ClassDef(name, id)
Definition: Rtypes.h:325
OpenGL renderer class for TEveJetCone.
Definition: TEveJetConeGL.h:30
TEveJetConeGL & operator=(const TEveJetConeGL &)=delete
virtual void DLCacheClear()
Clear DL cache and reset internal point array.
virtual void CalculatePoints() const
Calculate points for drawing.
virtual void DirectDraw(TGLRnrCtx &rnrCtx) const
Render with OpenGL.
std::vector< TEveVector > fP
Definition: TEveJetConeGL.h:37
TEveJetConeGL()
Constructor.
TEveJetCone * fC
Definition: TEveJetConeGL.h:36
virtual void SetBBox()
Set bounding box.
virtual Bool_t SetModel(TObject *obj, const Option_t *opt=0)
Set model object.
TEveJetConeGL(const TEveJetConeGL &)=delete
virtual void Draw(TGLRnrCtx &rnrCtx) const
Draw the cone.
virtual ~TEveJetConeGL()
Definition: TEveJetConeGL.h:43
OpenGL renderer class for TEveJetConeProjected.
Definition: TEveJetConeGL.h:61
void RenderOutline() const
Draw jet outline.
virtual void DirectDraw(TGLRnrCtx &rnrCtx) const
Render with OpenGL.
virtual void Draw(TGLRnrCtx &rnrCtx) const
Draw the cone.
void RenderPolygon() const
Draw jet surface.
TEveJetConeProjected * fM
Definition: TEveJetConeGL.h:67
virtual void SetBBox()
Set bounding box.
virtual Bool_t SetModel(TObject *obj, const Option_t *opt=0)
Set model object.
virtual ~TEveJetConeProjectedGL()
Definition: TEveJetConeGL.h:76
TEveJetConeProjectedGL & operator=(const TEveJetConeProjectedGL &)
virtual void CalculatePoints() const
Calculate points for drawing.
TEveJetConeProjectedGL(const TEveJetConeProjectedGL &)
TEveJetConeProjectedGL()
Constructor.
Projection of TEveJetCone.
Definition: TEveJetCone.h:74
Draws a jet cone with leading particle is specified in (eta,phi) and cone radius is given.
Definition: TEveJetCone.h:24
Base-class for direct OpenGL renderers.
Definition: TGLObject.h:22
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Definition: TGLRnrCtx.h:41
TGLScene provides management and rendering of ROOT's default 3D /object representation as logical and...
Definition: TGLScene.h:29
Base GL viewer object - used by both standalone and embedded (in pad) GL.
Definition: TGLViewer.h:55
Mother of all ROOT objects.
Definition: TObject.h:37