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
18class TGLViewer;
19class TGLScene;
20
21class TEveJetCone;
23
24//------------------------------------------------------------------------------
25// TEveJetCone
26//------------------------------------------------------------------------------
27
29{
30private:
31 TEveJetConeGL(const TEveJetConeGL&); // Not implemented
32 TEveJetConeGL& operator=(const TEveJetConeGL&); // Not implemented
33
34protected:
35 TEveJetCone *fC; // Model object.
36 mutable std::vector<TEveVector> fP;
37
38 virtual void CalculatePoints() const;
39
40public:
42 virtual ~TEveJetConeGL() {}
43
44 virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
45 virtual void SetBBox();
46
47 virtual void DLCacheClear();
48 virtual void Draw(TGLRnrCtx& rnrCtx) const;
49 virtual void DirectDraw(TGLRnrCtx & rnrCtx) const;
50
51 ClassDef(TEveJetConeGL, 0); // GL renderer class for TEveJetCone.
52};
53
54
55//------------------------------------------------------------------------------
56// TEveJetConeProjectedGL
57//------------------------------------------------------------------------------
58
60{
61private:
64
65protected:
66 TEveJetConeProjected *fM; // Model object.
67
68 virtual void CalculatePoints() const;
69
70 void RenderOutline() const;
71 void RenderPolygon() const;
72
73public:
76
77 virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
78 virtual void SetBBox();
79
80 virtual void Draw(TGLRnrCtx& rnrCtx) const;
81 virtual void DirectDraw(TGLRnrCtx & rnrCtx) const;
82
83 ClassDef(TEveJetConeProjectedGL, 0); // GL renderer class for TEveJetCone.
84};
85
86#endif
bool Bool_t
Definition: RtypesCore.h:61
const char Option_t
Definition: RtypesCore.h:64
#define ClassDef(name, id)
Definition: Rtypes.h:322
OpenGL renderer class for TEveJetCone.
Definition: TEveJetConeGL.h:29
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.
TEveJetConeGL(const TEveJetConeGL &)
std::vector< TEveVector > fP
Definition: TEveJetConeGL.h:36
TEveJetConeGL()
Constructor.
TEveJetConeGL & operator=(const TEveJetConeGL &)
TEveJetCone * fC
Definition: TEveJetConeGL.h:35
virtual void SetBBox()
Set bounding box.
virtual Bool_t SetModel(TObject *obj, const Option_t *opt=0)
Set model object.
virtual void Draw(TGLRnrCtx &rnrCtx) const
Draw the cone.
virtual ~TEveJetConeGL()
Definition: TEveJetConeGL.h:42
OpenGL renderer class for TEveJetConeProjected.
Definition: TEveJetConeGL.h:60
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:66
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:75
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:57
Mother of all ROOT objects.
Definition: TObject.h:37