Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TEveTextGL.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/eve:$Id$
0002 // Authors: Alja & Matevz Tadel 2008
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TEveTextGL
0013 #define ROOT_TEveTextGL
0014 
0015 #include "TGLObject.h"
0016 #include "TGLFontManager.h"
0017 
0018 class TEveText;
0019 
0020 class TEveTextGL : public TGLObject
0021 {
0022 private:
0023    TEveTextGL(const TEveTextGL&);            // Not implemented
0024    TEveTextGL& operator=(const TEveTextGL&); // Not implemented
0025 
0026 protected:
0027    TEveText              *fM;        // model object.
0028    mutable TGLFont        fFont;     // FTFont wrapper
0029    mutable Double_t       fX[4][3];  // 3D position of font
0030 
0031 public:
0032    TEveTextGL();
0033    ~TEveTextGL() override {}
0034 
0035    Bool_t SetModel(TObject* obj, const Option_t *opt = nullptr) override;
0036    void   SetBBox() override;
0037 
0038    void DirectDraw(TGLRnrCtx & rnrCtx) const override;
0039 
0040    ClassDefOverride(TEveTextGL, 0); // GL renderer class for TEveText.
0041 };
0042 
0043 #endif