Logo ROOT  
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
18class TEveText;
19
20class TEveTextGL : public TGLObject
21{
22private:
23 TEveTextGL(const TEveTextGL&); // Not implemented
24 TEveTextGL& operator=(const TEveTextGL&); // Not implemented
25
26protected:
27 TEveText *fM; // model object.
28 mutable TGLFont fFont; // FTFont wrapper
29 mutable Double_t fX[4][3]; // 3D position of font
30
31public:
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
bool Bool_t
Definition: RtypesCore.h:63
double Double_t
Definition: RtypesCore.h:59
const char Option_t
Definition: RtypesCore.h:66
#define ClassDef(name, id)
Definition: Rtypes.h:325
OpenGL renderer class for TEveText.
Definition: TEveTextGL.h:21
TEveTextGL & operator=(const TEveTextGL &)
TGLFont fFont
Definition: TEveTextGL.h:28
virtual Bool_t SetModel(TObject *obj, const Option_t *opt=0)
Set model object.
Definition: TEveTextGL.cxx:42
TEveTextGL(const TEveTextGL &)
virtual ~TEveTextGL()
Definition: TEveTextGL.h:33
virtual void SetBBox()
Set bounding box.
Definition: TEveTextGL.cxx:51
TEveText * fM
Definition: TEveTextGL.h:27
virtual void DirectDraw(TGLRnrCtx &rnrCtx) const
Actual rendering code.
Definition: TEveTextGL.cxx:60
TEveTextGL()
Constructor.
Definition: TEveTextGL.cxx:31
Double_t fX[4][3]
Definition: TEveTextGL.h:29
TEveElement class used for displaying FreeType GL fonts.
Definition: TEveText.h:25
A wrapper class for FTFont.
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
Mother of all ROOT objects.
Definition: TObject.h:37