Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 ~TEveTextGL() override {}
34
35 Bool_t SetModel(TObject* obj, const Option_t *opt = nullptr) override;
36 void SetBBox() override;
37
38 void DirectDraw(TGLRnrCtx & rnrCtx) const override;
39
40 ClassDefOverride(TEveTextGL, 0); // GL renderer class for TEveText.
41};
42
43#endif
bool Bool_t
Definition RtypesCore.h:63
const char Option_t
Definition RtypesCore.h:66
OpenGL renderer class for TEveText.
Definition TEveTextGL.h:21
Bool_t SetModel(TObject *obj, const Option_t *opt=nullptr) override
Set model object.
TEveTextGL & operator=(const TEveTextGL &)
TGLFont fFont
Definition TEveTextGL.h:28
void DirectDraw(TGLRnrCtx &rnrCtx) const override
Actual rendering code.
TEveTextGL(const TEveTextGL &)
ClassDefOverride(TEveTextGL, 0)
void SetBBox() override
Set bounding box.
~TEveTextGL() override
Definition TEveTextGL.h:33
TEveText * fM
Definition TEveTextGL.h:27
TEveTextGL()
Constructor.
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:41