Logo ROOT   master
Reference Guide
TEveTextGL.h
Go to the documentation of this file.
1 // @(#)root/eve:$Id$
2 // Authors: Alja & Matevz Tadel 2008
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_TEveTextGL
13 #define ROOT_TEveTextGL
14 
15 #include "TGLObject.h"
16 #include "TGLFontManager.h"
17 
18 class TEveText;
19 
20 class TEveTextGL : public TGLObject
21 {
22 private:
23  TEveTextGL(const TEveTextGL&); // Not implemented
24  TEveTextGL& operator=(const TEveTextGL&); // Not implemented
25 
26 protected:
27  TEveText *fM; // model object.
28  mutable TGLFont fFont; // FTFont wrapper
29  mutable Double_t fX[4][3]; // 3D position of font
30 
31 public:
32  TEveTextGL();
33  virtual ~TEveTextGL() {}
34 
35  virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0);
36  virtual void SetBBox();
37 
38  virtual void DirectDraw(TGLRnrCtx & rnrCtx) const;
39 
40  ClassDef(TEveTextGL, 0); // GL renderer class for TEveText.
41 };
42 
43 #endif
OpenGL renderer class for TEveText.
Definition: TEveTextGL.h:20
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:64
virtual void DirectDraw(TGLRnrCtx &rnrCtx) const
Actual rendering code.
Definition: TEveTextGL.cxx:60
bool Bool_t
Definition: RtypesCore.h:61
#define ClassDef(name, id)
Definition: Rtypes.h:322
Base-class for direct OpenGL renderers.
Definition: TGLObject.h:21
TEveText * fM
Definition: TEveTextGL.h:27
TGLFont fFont
Definition: TEveTextGL.h:28
TEveTextGL & operator=(const TEveTextGL &)
virtual Bool_t SetModel(TObject *obj, const Option_t *opt=0)
Set model object.
Definition: TEveTextGL.cxx:42
virtual void SetBBox()
Set bounding box.
Definition: TEveTextGL.cxx:51
TEveElement class used for displaying FreeType GL fonts.
Definition: TEveText.h:21
Mother of all ROOT objects.
Definition: TObject.h:37
virtual ~TEveTextGL()
Definition: TEveTextGL.h:33
A wrapper class for FTFont.
Double_t fX[4][3]
Definition: TEveTextGL.h:29
TEveTextGL()
Constructor.
Definition: TEveTextGL.cxx:31