TGLFont Class Reference

#include <TGLFontManager.h>

List of all members.

Public Types

enum  EMode
enum  ETextAlignH_e
enum  ETextAlignV_e
enum  EMode
enum  ETextAlignH_e
enum  ETextAlignV_e

Public Member Functions

 TGLFont ()
 TGLFont (Int_t size, Int_t font, EMode mode, FTFont *f=0, TGLFontManager *mng=0)
 TGLFont (const TGLFont &o)
virtual ~TGLFont ()
void CopyAttributes (const TGLFont &o)
Int_t GetSize () const
Int_t GetFile () const
EMode GetMode () const
Int_t GetTrashCount () const
void SetTrashCount (Int_t c) const
Int_t IncTrashCount () const
void SetFont (FTFont *f)
const FTFontGetFont () const
void SetManager (TGLFontManager *mng)
const TGLFontManagerGetManager () const
Float_t GetDepth () const
void SetDepth (Float_t d)
Float_t GetAscent () const
Float_t GetDescent () const
Float_t GetLineHeight () const
void MeasureBaseLineParams (Float_t &ascent, Float_t &descent, Float_t &line_height, const char *txt="Xj") const
void BBox (const char *txt, Float_t &llx, Float_t &lly, Float_t &llz, Float_t &urx, Float_t &ury, Float_t &urz) const
void Render (const char *txt, Double_t x, Double_t y, Double_t angle, Double_t mgn) const
void Render (const TString &txt) const
void Render (const TString &txt, Float_t x, Float_t y, Float_t z, ETextAlignH_e alignH, ETextAlignV_e alignV) const
virtual void PreRender (Bool_t autoLight=kTRUE, Bool_t lightOn=kFALSE) const
virtual void PostRender () const
Bool_t operator< (const TGLFont &o) const
 ClassDef (TGLFont, 0)
 TGLFont ()
 TGLFont (Int_t size, Int_t font, EMode mode, FTFont *f=0, TGLFontManager *mng=0)
 TGLFont (const TGLFont &o)
virtual ~TGLFont ()
void CopyAttributes (const TGLFont &o)
Int_t GetSize () const
Int_t GetFile () const
EMode GetMode () const
Int_t GetTrashCount () const
void SetTrashCount (Int_t c) const
Int_t IncTrashCount () const
void SetFont (FTFont *f)
const FTFontGetFont () const
void SetManager (TGLFontManager *mng)
const TGLFontManagerGetManager () const
Float_t GetDepth () const
void SetDepth (Float_t d)
Float_t GetAscent () const
Float_t GetDescent () const
Float_t GetLineHeight () const
void MeasureBaseLineParams (Float_t &ascent, Float_t &descent, Float_t &line_height, const char *txt="Xj") const
void BBox (const char *txt, Float_t &llx, Float_t &lly, Float_t &llz, Float_t &urx, Float_t &ury, Float_t &urz) const
void Render (const char *txt, Double_t x, Double_t y, Double_t angle, Double_t mgn) const
void Render (const TString &txt) const
void Render (const TString &txt, Float_t x, Float_t y, Float_t z, ETextAlignH_e alignH, ETextAlignV_e alignV) const
virtual void PreRender (Bool_t autoLight=kTRUE, Bool_t lightOn=kFALSE) const
virtual void PostRender () const
Bool_t operator< (const TGLFont &o) const
 ClassDef (TGLFont, 0)

Protected Attributes

Int_t fSize
Int_t fFile
EMode fMode
Int_t fTrashCount

Private Member Functions

TGLFontoperator= (const TGLFont &o)
TGLFontoperator= (const TGLFont &o)

Private Attributes

FTFontfFont
TGLFontManagerfManager
Float_t fDepth
FTFontfFont
TGLFontManagerfManager


Detailed Description

Definition at line 23 of file TGLFontManager.h.


Member Enumeration Documentation

enum TGLFont::EMode

Definition at line 26 of file TGLFontManager.h.

enum TGLFont::ETextAlignH_e

Definition at line 33 of file TGLFontManager.h.

enum TGLFont::ETextAlignV_e

Definition at line 34 of file TGLFontManager.h.

enum TGLFont::EMode

Definition at line 26 of file TGLFontManager.h.

enum TGLFont::ETextAlignH_e

Definition at line 33 of file TGLFontManager.h.

enum TGLFont::ETextAlignV_e

Definition at line 34 of file TGLFontManager.h.


Constructor & Destructor Documentation

TGLFont::TGLFont (  ) 

Definition at line 51 of file TGLFontManager.cxx.

TGLFont::TGLFont ( Int_t  size,
Int_t  font,
EMode  mode,
FTFont f = 0,
TGLFontManager mng = 0 
)

Definition at line 60 of file TGLFontManager.cxx.

TGLFont::TGLFont ( const TGLFont o  ) 

Definition at line 69 of file TGLFontManager.cxx.

References fFile, fFont, fMode, fSize, fTrashCount, and o.

TGLFont::~TGLFont (  )  [virtual]

Definition at line 83 of file TGLFontManager.cxx.

References fManager, and TGLFontManager::ReleaseFont().

TGLFont::TGLFont (  ) 

TGLFont::TGLFont ( Int_t  size,
Int_t  font,
EMode  mode,
FTFont f = 0,
TGLFontManager mng = 0 
)

TGLFont::TGLFont ( const TGLFont o  ) 

virtual TGLFont::~TGLFont (  )  [virtual]


Member Function Documentation

TGLFont& TGLFont::operator= ( const TGLFont o  )  [private]

void TGLFont::CopyAttributes ( const TGLFont o  ) 

Definition at line 91 of file TGLFontManager.cxx.

References fFile, fMode, fSize, fTrashCount, o, SetDepth(), SetFont(), and SetManager().

Int_t TGLFont::GetSize (  )  const [inline]

Definition at line 58 of file TGLFontManager.h.

References fSize.

Referenced by TGLAxisPainter::SetLabelFont(), and TGLAxisPainter::SetTitleFont().

Int_t TGLFont::GetFile (  )  const [inline]

Definition at line 59 of file TGLFontManager.h.

References fFile.

EMode TGLFont::GetMode (  )  const [inline]

Definition at line 60 of file TGLFontManager.h.

References fMode.

Referenced by TEveTextGL::DirectDraw().

Int_t TGLFont::GetTrashCount (  )  const [inline]

Definition at line 62 of file TGLFontManager.h.

References fTrashCount.

void TGLFont::SetTrashCount ( Int_t  c  )  const [inline]

Definition at line 63 of file TGLFontManager.h.

References fTrashCount.

Int_t TGLFont::IncTrashCount (  )  const [inline]

Definition at line 64 of file TGLFontManager.h.

References fTrashCount.

void TGLFont::SetFont ( FTFont f  )  [inline]

Definition at line 66 of file TGLFontManager.h.

References fFont.

Referenced by CopyAttributes().

const FTFont* TGLFont::GetFont (  )  const [inline]

Definition at line 67 of file TGLFontManager.h.

References fFont.

void TGLFont::SetManager ( TGLFontManager mng  )  [inline]

Definition at line 68 of file TGLFontManager.h.

References fManager.

Referenced by CopyAttributes().

const TGLFontManager* TGLFont::GetManager (  )  const [inline]

Definition at line 69 of file TGLFontManager.h.

References fManager.

Float_t TGLFont::GetDepth (  )  const [inline]

Definition at line 71 of file TGLFontManager.h.

References fDepth.

void TGLFont::SetDepth ( Float_t  d  )  [inline]

Definition at line 72 of file TGLFontManager.h.

References fDepth.

Referenced by CopyAttributes(), and TEveTextGL::DirectDraw().

Float_t TGLFont::GetAscent (  )  const

Definition at line 110 of file TGLFontManager.cxx.

References FTFont::Ascender(), and fFont.

Float_t TGLFont::GetDescent (  )  const

Definition at line 118 of file TGLFontManager.cxx.

References FTFont::Descender(), and fFont.

Referenced by TGLAnnotation::Render().

Float_t TGLFont::GetLineHeight (  )  const

Definition at line 126 of file TGLFontManager.cxx.

References fFont, and FTFont::LineHeight().

Referenced by TGLAnnotation::Render().

void TGLFont::MeasureBaseLineParams ( Float_t ascent,
Float_t descent,
Float_t line_height,
const char *  txt = "Xj" 
) const

Definition at line 134 of file TGLFontManager.cxx.

References BBox(), and fFont.

void TGLFont::BBox ( const char *  txt,
Float_t llx,
Float_t lly,
Float_t llz,
Float_t urx,
Float_t ury,
Float_t urz 
) const

Definition at line 149 of file TGLFontManager.cxx.

References fFont.

Referenced by TEveTextGL::DirectDraw(), MeasureBaseLineParams(), Render(), TGLOverlayButton::Render(), TGLAnnotation::Render(), TGLCameraOverlay::RenderBar(), TEveCaloLegoOverlay::RenderHeader(), and TEveCaloLegoOverlay::RenderLogaritmicScales().

void TGLFont::Render ( const char *  txt,
Double_t  x,
Double_t  y,
Double_t  angle,
Double_t  mgn 
) const

Definition at line 160 of file TGLFontManager.cxx.

References align(), BBox(), fFont, glPopMatrix(), glPushMatrix(), glRotated(), glTranslated(), and gVirtualX.

Referenced by TEveTextGL::DirectDraw(), TGLPadPainter::DrawText(), Render(), TGLOverlayButton::Render(), TGLAnnotation::Render(), TGLCameraOverlay::RenderBar(), TEveCaloLegoOverlay::RenderHeader(), TEveCaloLegoOverlay::RenderLogaritmicScales(), TGLCameraOverlay::RenderPlaneIntersect(), and TGLAxisPainter::RnrText().

void TGLFont::Render ( const TString txt  )  const

Definition at line 231 of file TGLFontManager.cxx.

References fDepth, fFont, fMode, fSize, glPopMatrix(), glPushMatrix(), glScalef(), glTranslatef(), kExtrude, and Render().

void TGLFont::Render ( const TString txt,
Float_t  x,
Float_t  y,
Float_t  z,
ETextAlignH_e  alignH,
ETextAlignV_e  alignV 
) const

Definition at line 253 of file TGLFontManager.cxx.

References BBox(), fMode, glBitmap(), glPopMatrix(), glPushMatrix(), glRasterPos2i(), glTranslatef(), kBitmap, kBottom, kCenterH, kCenterV, kPixmap, kRight, and Render().

void TGLFont::PreRender ( Bool_t  autoLight = kTRUE,
Bool_t  lightOn = kFALSE 
) const [virtual]

Definition at line 305 of file TGLFontManager.cxx.

References fMode, GL_ALPHA_TEST, GL_COLOR_BUFFER_BIT, GL_CULL_FACE, GL_CURRENT_BIT, GL_ENABLE_BIT, GL_GEQUAL, GL_LIGHTING, GL_LIGHTING_BIT, GL_NORMALIZE, GL_ONE_MINUS_SRC_ALPHA, GL_POLYGON_BIT, GL_SRC_ALPHA, GL_TEXTURE_2D, glAlphaFunc(), glBlendFunc(), glDisable(), glEnable(), glPushAttrib(), kBitmap, kExtrude, kOutline, kPixmap, kPolygon, kTexture, and Warning().

Referenced by TEveTextGL::DirectDraw(), TGLPadPainter::DrawText(), TGLOverlayButton::Render(), TGLAnnotation::Render(), TEveCaloLegoOverlay::RenderHeader(), TEveCaloLegoOverlay::RenderLogaritmicScales(), TGLAxisPainter::RnrLabels(), and TGLAxisPainter::RnrTitle().

void TGLFont::PostRender (  )  const [virtual]

Definition at line 346 of file TGLFontManager.cxx.

References glPopAttrib().

Referenced by TEveTextGL::DirectDraw(), TGLPadPainter::DrawText(), TGLOverlayButton::Render(), TGLAnnotation::Render(), TEveCaloLegoOverlay::RenderHeader(), TEveCaloLegoOverlay::RenderLogaritmicScales(), TGLAxisPainter::RnrLabels(), and TGLAxisPainter::RnrTitle().

Bool_t TGLFont::operator< ( const TGLFont o  )  const [inline]

Definition at line 93 of file TGLFontManager.h.

References fFile, fMode, fSize, and o.

TGLFont::ClassDef ( TGLFont  ,
 
)

TGLFont& TGLFont::operator= ( const TGLFont o  )  [private]

void TGLFont::CopyAttributes ( const TGLFont o  ) 

Int_t TGLFont::GetSize (  )  const [inline]

Definition at line 58 of file TGLFontManager.h.

References fSize.

Int_t TGLFont::GetFile (  )  const [inline]

Definition at line 59 of file TGLFontManager.h.

References fFile.

EMode TGLFont::GetMode (  )  const [inline]

Definition at line 60 of file TGLFontManager.h.

References fMode.

Int_t TGLFont::GetTrashCount (  )  const [inline]

Definition at line 62 of file TGLFontManager.h.

References fTrashCount.

void TGLFont::SetTrashCount ( Int_t  c  )  const [inline]

Definition at line 63 of file TGLFontManager.h.

References fTrashCount.

Int_t TGLFont::IncTrashCount (  )  const [inline]

Definition at line 64 of file TGLFontManager.h.

References fTrashCount.

void TGLFont::SetFont ( FTFont f  )  [inline]

Definition at line 66 of file TGLFontManager.h.

References fFont.

const FTFont* TGLFont::GetFont (  )  const [inline]

Definition at line 67 of file TGLFontManager.h.

References fFont.

void TGLFont::SetManager ( TGLFontManager mng  )  [inline]

Definition at line 68 of file TGLFontManager.h.

References fManager.

const TGLFontManager* TGLFont::GetManager (  )  const [inline]

Definition at line 69 of file TGLFontManager.h.

References fManager.

Float_t TGLFont::GetDepth (  )  const [inline]

Definition at line 71 of file TGLFontManager.h.

References fDepth.

void TGLFont::SetDepth ( Float_t  d  )  [inline]

Definition at line 72 of file TGLFontManager.h.

References fDepth.

Float_t TGLFont::GetAscent (  )  const

Float_t TGLFont::GetDescent (  )  const

Float_t TGLFont::GetLineHeight (  )  const

void TGLFont::MeasureBaseLineParams ( Float_t ascent,
Float_t descent,
Float_t line_height,
const char *  txt = "Xj" 
) const

void TGLFont::BBox ( const char *  txt,
Float_t llx,
Float_t lly,
Float_t llz,
Float_t urx,
Float_t ury,
Float_t urz 
) const

void TGLFont::Render ( const char *  txt,
Double_t  x,
Double_t  y,
Double_t  angle,
Double_t  mgn 
) const

void TGLFont::Render ( const TString txt  )  const

void TGLFont::Render ( const TString txt,
Float_t  x,
Float_t  y,
Float_t  z,
ETextAlignH_e  alignH,
ETextAlignV_e  alignV 
) const

virtual void TGLFont::PreRender ( Bool_t  autoLight = kTRUE,
Bool_t  lightOn = kFALSE 
) const [virtual]

virtual void TGLFont::PostRender (  )  const [virtual]

Bool_t TGLFont::operator< ( const TGLFont o  )  const [inline]

Definition at line 93 of file TGLFontManager.h.

References fFile, fMode, fSize, and o.

TGLFont::ClassDef ( TGLFont  ,
 
)


Member Data Documentation

FTFont* TGLFont::fFont [private]

Definition at line 39 of file TGLFontManager.h.

Referenced by BBox(), GetAscent(), GetDescent(), GetFont(), GetLineHeight(), MeasureBaseLineParams(), Render(), SetFont(), and TGLFont().

TGLFontManager* TGLFont::fManager [private]

Definition at line 40 of file TGLFontManager.h.

Referenced by GetManager(), SetManager(), and ~TGLFont().

Float_t TGLFont::fDepth [private]

Definition at line 42 of file TGLFontManager.h.

Referenced by GetDepth(), Render(), and SetDepth().

Int_t TGLFont::fSize [protected]

Definition at line 45 of file TGLFontManager.h.

Referenced by CopyAttributes(), GetSize(), operator<(), Render(), and TGLFont().

Int_t TGLFont::fFile [protected]

Definition at line 46 of file TGLFontManager.h.

Referenced by CopyAttributes(), GetFile(), operator<(), and TGLFont().

EMode TGLFont::fMode [protected]

Definition at line 47 of file TGLFontManager.h.

Referenced by CopyAttributes(), GetMode(), operator<(), PreRender(), Render(), and TGLFont().

Int_t TGLFont::fTrashCount [mutable, protected]

Definition at line 49 of file TGLFontManager.h.

Referenced by CopyAttributes(), GetTrashCount(), IncTrashCount(), SetTrashCount(), and TGLFont().

FTFont* TGLFont::fFont [private]

Definition at line 39 of file TGLFontManager.h.

TGLFontManager* TGLFont::fManager [private]

Definition at line 40 of file TGLFontManager.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:40:00 2011 for ROOT_528-00b_version by  doxygen 1.5.1