Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 ~TEveJetConeGL() override {}
44
45 Bool_t SetModel(TObject* obj, const Option_t *opt = nullptr) override;
46 void SetBBox() override;
47
48 void DLCacheClear() override;
49 void Draw(TGLRnrCtx& rnrCtx) const override;
50 void DirectDraw(TGLRnrCtx & rnrCtx) const override;
51
52 ClassDefOverride(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 void CalculatePoints() const override;
70
71 void RenderOutline() const;
72 void RenderPolygon() const;
73
74public:
77
78 Bool_t SetModel(TObject* obj, const Option_t *opt = nullptr) override;
79 void SetBBox() override;
80
81 void Draw(TGLRnrCtx& rnrCtx) const override;
82 void DirectDraw(TGLRnrCtx & rnrCtx) const override;
83
84 ClassDefOverride(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 ClassDefOverride(name, id)
Definition Rtypes.h:341
OpenGL renderer class for TEveJetCone.
TEveJetConeGL & operator=(const TEveJetConeGL &)=delete
void SetBBox() override
Set bounding box.
virtual void CalculatePoints() const
Calculate points for drawing.
std::vector< TEveVector > fP
void DLCacheClear() override
Clear DL cache and reset internal point array.
TEveJetConeGL()
Constructor.
void DirectDraw(TGLRnrCtx &rnrCtx) const override
Render with OpenGL.
TEveJetCone * fC
TEveJetConeGL(const TEveJetConeGL &)=delete
Bool_t SetModel(TObject *obj, const Option_t *opt=nullptr) override
Set model object.
~TEveJetConeGL() override
OpenGL renderer class for TEveJetConeProjected.
~TEveJetConeProjectedGL() override
void RenderOutline() const
Draw jet outline.
void RenderPolygon() const
Draw jet surface.
TEveJetConeProjected * fM
void DirectDraw(TGLRnrCtx &rnrCtx) const override
Render with OpenGL.
void SetBBox() override
Set bounding box.
TEveJetConeProjectedGL & operator=(const TEveJetConeProjectedGL &)
Bool_t SetModel(TObject *obj, const Option_t *opt=nullptr) override
Set model object.
void CalculatePoints() const override
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:41
th1 Draw()