Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
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