forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TEveJetConeGL.h
86 lines (62 loc) · 2.57 KB
/
TEveJetConeGL.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// @(#)root/eve:$Id$
// Author: Matevz Tadel, Jochen Thaeder 2009
/*************************************************************************
* Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TEveJetConeGL
#define ROOT_TEveJetConeGL
#include "TGLObject.h"
#include "TEveVector.h"
class TGLViewer;
class TGLScene;
class TEveJetCone;
class TEveJetConeProjected;
//------------------------------------------------------------------------------
// TEveJetCone
//------------------------------------------------------------------------------
class TEveJetConeGL : public TGLObject
{
private:
TEveJetConeGL(const TEveJetConeGL&); // Not implemented
TEveJetConeGL& operator=(const TEveJetConeGL&); // Not implemented
protected:
TEveJetCone *fC; // Model object.
mutable std::vector<TEveVector> fP;
virtual void CalculatePoints() const;
public:
TEveJetConeGL();
virtual ~TEveJetConeGL() {}
virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
virtual void SetBBox();
virtual void DLCacheClear();
virtual void Draw(TGLRnrCtx& rnrCtx) const;
virtual void DirectDraw(TGLRnrCtx & rnrCtx) const;
ClassDef(TEveJetConeGL, 0); // GL renderer class for TEveJetCone.
};
//------------------------------------------------------------------------------
// TEveJetConeProjectedGL
//------------------------------------------------------------------------------
class TEveJetConeProjectedGL : public TEveJetConeGL
{
private:
TEveJetConeProjectedGL(const TEveJetConeProjectedGL&); // Not implemented
TEveJetConeProjectedGL& operator=(const TEveJetConeProjectedGL&); // Not implemented
protected:
TEveJetConeProjected *fM; // Model object.
virtual void CalculatePoints() const;
void RenderOutline() const;
void RenderPolygon() const;
public:
TEveJetConeProjectedGL();
virtual ~TEveJetConeProjectedGL() {}
virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
virtual void SetBBox();
virtual void Draw(TGLRnrCtx& rnrCtx) const;
virtual void DirectDraw(TGLRnrCtx & rnrCtx) const;
ClassDef(TEveJetConeProjectedGL, 0); // GL renderer class for TEveJetCone.
};
#endif