Logo ROOT   6.08/07
Reference Guide
TEveTrackGL.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_TEveTrackGL
13 #define ROOT_TEveTrackGL
14 
15 #include "TEveLineGL.h"
16 
17 class TGLViewer;
18 class TGLScene;
19 
20 class TEveTrack;
21 
22 class TEveTrackGL : public TEveLineGL
23 {
24 private:
25  TEveTrackGL(const TEveTrackGL&); // Not implemented
26  TEveTrackGL& operator=(const TEveTrackGL&); // Not implemented
27 
28 protected:
29  TEveTrack* fTrack; // Model object.
30 
31  void RenderPathMarksAndFirstVertex(TGLRnrCtx& rnrCtx) const;
32 
33 public:
34  TEveTrackGL();
35  virtual ~TEveTrackGL() {}
36 
37  virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
38  virtual void DirectDraw(TGLRnrCtx & rnrCtx) const;
39 
40  virtual Bool_t SupportsSecondarySelect() const { return kTRUE; }
41  virtual void ProcessSelection(TGLRnrCtx& rnrCtx, TGLSelectRecord& rec);
42 
43  ClassDef(TEveTrackGL, 0); // GL-renderer for TEveTrack class.
44 };
45 
46 #endif
virtual Bool_t SupportsSecondarySelect() const
Definition: TEveTrackGL.h:40
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
Definition: TGLRnrCtx.h:40
const char Option_t
Definition: RtypesCore.h:62
TEveTrackGL()
Default constructor.
Definition: TEveTrackGL.cxx:30
bool Bool_t
Definition: RtypesCore.h:59
TEveTrackGL & operator=(const TEveTrackGL &)
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual void DirectDraw(TGLRnrCtx &rnrCtx) const
GL rendering code.
Definition: TEveTrackGL.cxx:68
virtual Bool_t SetModel(TObject *obj, const Option_t *opt=0)
Set model object.
Definition: TEveTrackGL.cxx:38
GL-renderer for TEveLine class.
Definition: TEveLineGL.h:23
virtual ~TEveTrackGL()
Definition: TEveTrackGL.h:35
Standard selection record including information about containing scene and details ob out selected ob...
Base GL viewer object - used by both standalone and embedded (in pad) GL.
Definition: TGLViewer.h:53
GL-renderer for TEveTrack class.
Definition: TEveTrackGL.h:22
Visual representation of a track.
Definition: TEveTrack.h:32
Mother of all ROOT objects.
Definition: TObject.h:37
TGLScene provides management and rendering of ROOT's default 3D /object representation as logical and...
Definition: TGLScene.h:30
virtual void ProcessSelection(TGLRnrCtx &rnrCtx, TGLSelectRecord &rec)
Processes secondary selection from TGLViewer.
Definition: TEveTrackGL.cxx:50
TEveTrack * fTrack
Definition: TEveTrackGL.h:29
void RenderPathMarksAndFirstVertex(TGLRnrCtx &rnrCtx) const
Render path-marks and the first vertex, if required.
Definition: TEveTrackGL.cxx:78
const Bool_t kTRUE
Definition: Rtypes.h:91