00001 // @(#)root/eve:$Id: TEveTextGL.h 30418 2009-09-24 17:10:11Z matevz $ 00002 // Authors: Alja & Matevz Tadel 2008 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TEveTextGL 00013 #define ROOT_TEveTextGL 00014 00015 #include "TGLObject.h" 00016 #include "TGLFontManager.h" 00017 00018 class TEveText; 00019 00020 class TEveTextGL : public TGLObject 00021 { 00022 private: 00023 TEveTextGL(const TEveTextGL&); // Not implemented 00024 TEveTextGL& operator=(const TEveTextGL&); // Not implemented 00025 00026 protected: 00027 TEveText *fM; // model object. 00028 mutable TGLFont fFont; // FTFont wrapper 00029 mutable Double_t fX[4][3]; // 3D position of font 00030 00031 public: 00032 TEveTextGL(); 00033 virtual ~TEveTextGL() {} 00034 00035 virtual Bool_t SetModel(TObject* obj, const Option_t* opt=0); 00036 virtual void SetBBox(); 00037 00038 virtual void DirectDraw(TGLRnrCtx & rnrCtx) const; 00039 00040 ClassDef(TEveTextGL, 0); // GL renderer class for TEveText. 00041 }; 00042 00043 #endif