TLatex Class Reference

#include <TLatex.h>

Inheritance diagram for TLatex:

TText TAttLine TText TAttLine TAttText TNamed TAttText TNamed TAttText TNamed TAttText TNamed List of all members.

Public Types

enum  
enum  

Public Member Functions

 TLatex ()
 TLatex (Double_t x, Double_t y, const char *text)
 TLatex (const TLatex &text)
virtual ~TLatex ()
void Copy (TObject &text) const
TLatexDrawLatex (Double_t x, Double_t y, const char *text)
Double_t GetHeight () const
Double_t GetXsize ()
Double_t GetYsize ()
void GetBoundingBox (UInt_t &w, UInt_t &h, Bool_t angle=kFALSE)
virtual void Paint (Option_t *option="")
virtual void PaintLatex (Double_t x, Double_t y, Double_t angle, Double_t size, const char *text)
virtual void SavePrimitive (ostream &out, Option_t *option="")
virtual void SetIndiceSize (Double_t factorSize)
virtual void SetLimitIndiceSize (Int_t limitFactorSize)
 TLatex ()
 TLatex (Double_t x, Double_t y, const char *text)
 TLatex (const TLatex &text)
virtual ~TLatex ()
void Copy (TObject &text) const
TLatexDrawLatex (Double_t x, Double_t y, const char *text)
Double_t GetHeight () const
Double_t GetXsize ()
Double_t GetYsize ()
void GetBoundingBox (UInt_t &w, UInt_t &h, Bool_t angle=kFALSE)
virtual void Paint (Option_t *option="")
virtual void PaintLatex (Double_t x, Double_t y, Double_t angle, Double_t size, const char *text)
virtual void SavePrimitive (ostream &out, Option_t *option="")
virtual void SetIndiceSize (Double_t factorSize)
virtual void SetLimitIndiceSize (Int_t limitFactorSize)

Protected Member Functions

TLatexoperator= (const TLatex &)
 Currently inside it operator.
TLatexFormSize Analyse (Double_t x, Double_t y, TextSpec_t spec, const Char_t *t, Int_t length)
TLatexFormSize Anal1 (TextSpec_t spec, const Char_t *t, Int_t length)
void DrawLine (Double_t x1, Double_t y1, Double_t x2, Double_t y2, TextSpec_t spec)
void DrawCircle (Double_t x1, Double_t y1, Double_t r, TextSpec_t spec)
void DrawParenthesis (Double_t x1, Double_t y1, Double_t r1, Double_t r2, Double_t phimin, Double_t phimax, TextSpec_t spec)
TLatexFormSize FirstParse (Double_t angle, Double_t size, const Char_t *text)
void Savefs (TLatexFormSize *fs)
TLatexFormSize Readfs ()
Int_t CheckLatexSyntax (TString &text)
TLatexoperator= (const TLatex &)
 Currently inside it operator.
TLatexFormSize Analyse (Double_t x, Double_t y, TextSpec_t spec, const Char_t *t, Int_t length)
TLatexFormSize Anal1 (TextSpec_t spec, const Char_t *t, Int_t length)
void DrawLine (Double_t x1, Double_t y1, Double_t x2, Double_t y2, TextSpec_t spec)
void DrawCircle (Double_t x1, Double_t y1, Double_t r, TextSpec_t spec)
void DrawParenthesis (Double_t x1, Double_t y1, Double_t r1, Double_t r2, Double_t phimin, Double_t phimax, TextSpec_t spec)
TLatexFormSize FirstParse (Double_t angle, Double_t size, const Char_t *text)
void Savefs (TLatexFormSize *fs)
TLatexFormSize Readfs ()
Int_t CheckLatexSyntax (TString &text)

Protected Attributes

Double_t fFactorSize
Double_t fFactorPos
 Relative size of subscripts and superscripts.
Int_t fLimitFactorSize
 Relative position of subscripts and superscripts.
const Char_tfError
Bool_t fShow
 error code
FormSize_tfTabSize
 is true during the second pass (Painting)
Double_t fOriginSize
 array of values for the different zones
Int_t fTabMax
Int_t fPos
 Maximum allocation for array fTabSize;.
Bool_t fItalic
 Current position in array fTabSize;.
const Char_tfError
FormSize_tfTabSize
 is true during the second pass (Painting)

Detailed Description

Definition at line 74 of file TLatex.h.


Member Enumeration Documentation

anonymous enum

Definition at line 107 of file TLatex.h.

anonymous enum

Definition at line 107 of file TLatex.h.


Constructor & Destructor Documentation

TLatex::TLatex (  ) 

Referenced by DrawLatex().

TLatex::TLatex ( Double_t  x,
Double_t  y,
const char *  text 
)

Definition at line 323 of file TLatex.cxx.

References fError, fFactorPos, fFactorSize, fItalic, fLimitFactorSize, fOriginSize, fPos, fShow, fTabMax, fTabSize, kFALSE, and TAttLine::SetLineWidth().

TLatex::TLatex ( const TLatex text  ) 

Definition at line 350 of file TLatex.cxx.

References fFactorPos, fFactorSize, fItalic, fLimitFactorSize, fOriginSize, fPos, fShow, fTabMax, kFALSE, and text().

TLatex::~TLatex (  )  [virtual]

Definition at line 343 of file TLatex.cxx.

TLatex::TLatex (  ) 

TLatex::TLatex ( Double_t  x,
Double_t  y,
const char *  text 
)

TLatex::TLatex ( const TLatex text  ) 

virtual TLatex::~TLatex (  )  [virtual]


Member Function Documentation

TLatex & TLatex::operator= ( const TLatex  )  [protected]

Currently inside it operator.

Definition at line 366 of file TLatex.cxx.

References fError, fFactorPos, fFactorSize, fItalic, fLimitFactorSize, fOriginSize, fShow, fTabSize, and TNamed::operator=().

TLatexFormSize TLatex::Analyse ( Double_t  x,
Double_t  y,
TextSpec_t  spec,
const Char_t t,
Int_t  length 
) [protected]

Definition at line 416 of file TLatex.cxx.

References a, TLatexFormSize::AddOver(), Anal1(), buf, TMath::Cos(), d, DrawCircle(), DrawLine(), DrawParenthesis(), TMath::Exp(), TextSpec_t::fColor, fError, fFactorPos, fFactorSize, TextSpec_t::fFont, fItalic, fLimitFactorSize, fOriginSize, fShow, TextSpec_t::fSize, TAttText::fTextAngle, TAttText::fTextColor, TAttText::fTextFont, TText::fX, TText::fY, GetHeight(), TAttLine::GetLineWidth(), TText::GetTextAscentDescent(), TText::GetTextExtent(), TAttText::GetTextFont(), gPad, gVirtualPS, h, TLatexFormSize::Height(), height, i, k, kFALSE, kPI, kTRUE, l, TMath::Log(), m, max, TMath::Max(), min, TMath::Min(), TAttText::Modify(), TLatexFormSize::Over(), p, TText::PaintText(), r1, Readfs(), result(), Savefs(), TLatexFormSize::Set(), TAttLine::SetLineWidth(), TAttText::SetTextAlign(), TAttText::SetTextAngle(), TAttText::SetTextColor(), TAttText::SetTextFont(), TAttText::SetTextSize(), TMath::Sin(), snprintf, spec, tab2, tab3, TVirtualPS::Text(), text(), TLatexFormSize::Under(), w, TLatexFormSize::Width(), width, x0, x1, x2, x3, and x4.

Referenced by Anal1(), and PaintLatex().

TLatexFormSize TLatex::Anal1 ( TextSpec_t  spec,
const Char_t t,
Int_t  length 
) [protected]

Definition at line 407 of file TLatex.cxx.

References Analyse(), and spec.

Referenced by Analyse(), and FirstParse().

void TLatex::DrawLine ( Double_t  x1,
Double_t  y1,
Double_t  x2,
Double_t  y2,
TextSpec_t  spec 
) [protected]

Definition at line 1696 of file TLatex.cxx.

References TMath::Cos(), TText::fX, TText::fY, gPad, kPI, TAttLine::Modify(), TAttLine::SetLineColor(), TMath::Sin(), and spec.

Referenced by Analyse().

void TLatex::DrawCircle ( Double_t  x1,
Double_t  y1,
Double_t  r,
TextSpec_t  spec 
) [protected]

Definition at line 1717 of file TLatex.cxx.

References TMath::Cos(), TText::fX, TText::fY, gPad, i, kPI, TAttLine::Modify(), TAttLine::SetLineColor(), TMath::Sin(), spec, x, and y.

Referenced by Analyse().

void TLatex::DrawParenthesis ( Double_t  x1,
Double_t  y1,
Double_t  r1,
Double_t  r2,
Double_t  phimin,
Double_t  phimax,
TextSpec_t  spec 
) [protected]

Definition at line 1747 of file TLatex.cxx.

References TMath::Cos(), TText::fX, TText::fY, gPad, i, kPI, TAttLine::Modify(), TAttLine::SetLineColor(), TMath::Sin(), spec, x, and y.

Referenced by Analyse().

TLatexFormSize TLatex::FirstParse ( Double_t  angle,
Double_t  size,
const Char_t text 
) [protected]

Definition at line 2104 of file TLatex.cxx.

References Anal1(), fError, fOriginSize, fPos, fShow, fTabMax, fTabSize, TAttText::fTextAlign, TAttText::fTextFont, TAttLine::GetLineColor(), TAttLine::GetLineWidth(), TAttText::GetTextColor(), TAttText::GetTextFont(), gPad, kFALSE, TMath::Max(), TAttLine::SetLineColor(), TAttLine::SetLineWidth(), TAttText::SetTextAlign(), TAttText::SetTextAngle(), TAttText::SetTextColor(), TAttText::SetTextFont(), TAttText::SetTextSize(), and spec.

Referenced by GetBoundingBox(), GetXsize(), GetYsize(), and PaintLatex().

void TLatex::Savefs ( TLatexFormSize fs  )  [protected]

Definition at line 2271 of file TLatex.cxx.

References FormSize_t::fOver, fPos, fTabMax, fTabSize, FormSize_t::fUnder, FormSize_t::fWidth, TLatexFormSize::Over(), TLatexFormSize::Under(), and TLatexFormSize::Width().

Referenced by Analyse().

TLatexFormSize TLatex::Readfs (  )  [protected]

Definition at line 2260 of file TLatex.cxx.

References fPos, fTabSize, and result().

Referenced by Analyse().

Int_t TLatex::CheckLatexSyntax ( TString text  )  [protected]

Definition at line 1899 of file TLatex.cxx.

References buf, error, fError, i, k, kFALSE, kTRUE, length, TMath::Min(), and text().

Referenced by GetBoundingBox(), GetXsize(), GetYsize(), and PaintLatex().

void TLatex::Copy ( TObject text  )  const [virtual]

Reimplemented from TText.

Definition at line 387 of file TLatex.cxx.

References TText::Copy(), TAttLine::Copy(), fError, fFactorPos, fFactorSize, fItalic, fLimitFactorSize, fOriginSize, fPos, fShow, and fTabMax.

TLatex * TLatex::DrawLatex ( Double_t  x,
Double_t  y,
const char *  text 
)

Definition at line 1681 of file TLatex.cxx.

References TObject::AppendPad(), TAttText::Copy(), TObject::kCanDelete, kTextNDC, TObject::SetBit(), TText::SetNDC(), TObject::TestBit(), and TLatex().

Referenced by StatDialogMVAEffs::DrawHistograms(), markerwarning(), mass_spectrum(), mp3player(), quarks(), regression_averagedevs(), and TCreatePrimitives::Text().

Double_t TLatex::GetHeight (  )  const

Definition at line 2149 of file TLatex.cxx.

References gPad, h, and w.

Referenced by Analyse().

Double_t TLatex::GetXsize (  ) 

Definition at line 2163 of file TLatex.cxx.

References TMath::Abs(), CheckLatexSyntax(), TString::Data(), fError, FirstParse(), fTabSize, TAttText::GetTextAngle(), TAttText::GetTextSize(), TNamed::GetTitle(), gPad, TString::Length(), TAttText::SetTextAngle(), text(), and TLatexFormSize::Width().

Referenced by TPie::Paint(), TPaveStats::Paint(), and TGaxis::PaintAxis().

Double_t TLatex::GetYsize (  ) 

Definition at line 2237 of file TLatex.cxx.

References TMath::Abs(), CheckLatexSyntax(), TString::Data(), fError, FirstParse(), fTabSize, TAttText::GetTextSize(), TNamed::GetTitle(), gPad, TLatexFormSize::Height(), TString::Length(), and text().

Referenced by TPie::Paint().

void TLatex::GetBoundingBox ( UInt_t w,
UInt_t h,
Bool_t  angle = kFALSE 
) [virtual]

Reimplemented from TText.

Definition at line 2188 of file TLatex.cxx.

References CheckLatexSyntax(), TString::Data(), fError, FirstParse(), fTabSize, TAttText::fTextAngle, TText::fX, TText::fY, TText::GetControlBox(), TAttText::GetTextAngle(), TAttText::GetTextSize(), TNamed::GetTitle(), gPad, TLatexFormSize::Height(), i, kTextNDC, TString::Length(), TObject::TestBit(), text(), TLatexFormSize::Width(), x1, and x2.

Referenced by TGaxis::PaintAxis().

void TLatex::Paint ( Option_t option = ""  )  [virtual]

Reimplemented from TText.

Definition at line 1779 of file TLatex.cxx.

References TText::fX, TText::fY, TAttText::GetTextAngle(), TAttText::GetTextSize(), TNamed::GetTitle(), gPad, kTextNDC, PaintLatex(), and TObject::TestBit().

void TLatex::PaintLatex ( Double_t  x,
Double_t  y,
Double_t  angle,
Double_t  size,
const char *  text 
) [virtual]

Definition at line 1798 of file TLatex.cxx.

References TMath::Abs(), Analyse(), CheckLatexSyntax(), TString::Data(), fError, FirstParse(), fOriginSize, fShow, TextSpec_t::fSize, fTabSize, TAttText::fTextAlign, TAttText::fTextFont, TText::fX, TText::fY, TAttLine::GetLineColor(), TAttLine::GetLineWidth(), TAttText::GetTextColor(), TAttText::GetTextFont(), gPad, gVirtualPS, gVirtualX, h, TLatexFormSize::Height(), kFALSE, kLatex, kTRUE, TString::Length(), length, TAttText::Modify(), TLatexFormSize::Over(), TObject::ResetBit(), TObject::SetBit(), TAttLine::SetLineColor(), TAttLine::SetLineWidth(), TAttText::SetTextAlign(), TAttText::SetTextAngle(), TAttText::SetTextColor(), TAttText::SetTextFont(), TAttText::SetTextSize(), spec, text(), TLatexFormSize::Under(), w, and TLatexFormSize::Width().

Referenced by TSpider::Paint(), TPie::Paint(), Paint(), TGaxis::PaintAxis(), and TGraphPolargram::PaintPolarDivisions().

void TLatex::SavePrimitive ( ostream &  out,
Option_t option = "" 
) [virtual]

Reimplemented from TText.

Definition at line 2294 of file TLatex.cxx.

References xmlio::Class, TROOT::ClassSaved(), TText::fX, TText::fY, TNamed::GetTitle(), gROOT, kTextNDC, s, TAttLine::SaveLineAttributes(), TAttText::SaveTextAttributes(), and TObject::TestBit().

void TLatex::SetIndiceSize ( Double_t  factorSize  )  [virtual]

Definition at line 2317 of file TLatex.cxx.

References fFactorSize.

void TLatex::SetLimitIndiceSize ( Int_t  limitFactorSize  )  [virtual]

Definition at line 2326 of file TLatex.cxx.

References fLimitFactorSize.

TLatex& TLatex::operator= ( const TLatex  )  [protected]

Currently inside it operator.

TLatexFormSize TLatex::Analyse ( Double_t  x,
Double_t  y,
TextSpec_t  spec,
const Char_t t,
Int_t  length 
) [protected]

TLatexFormSize TLatex::Anal1 ( TextSpec_t  spec,
const Char_t t,
Int_t  length 
) [protected]

void TLatex::DrawLine ( Double_t  x1,
Double_t  y1,
Double_t  x2,
Double_t  y2,
TextSpec_t  spec 
) [protected]

void TLatex::DrawCircle ( Double_t  x1,
Double_t  y1,
Double_t  r,
TextSpec_t  spec 
) [protected]

void TLatex::DrawParenthesis ( Double_t  x1,
Double_t  y1,
Double_t  r1,
Double_t  r2,
Double_t  phimin,
Double_t  phimax,
TextSpec_t  spec 
) [protected]

TLatexFormSize TLatex::FirstParse ( Double_t  angle,
Double_t  size,
const Char_t text 
) [protected]

void TLatex::Savefs ( TLatexFormSize fs  )  [protected]

TLatexFormSize TLatex::Readfs (  )  [protected]

Int_t TLatex::CheckLatexSyntax ( TString text  )  [protected]

void TLatex::Copy ( TObject text  )  const [virtual]

Reimplemented from TText.

TLatex* TLatex::DrawLatex ( Double_t  x,
Double_t  y,
const char *  text 
)

Double_t TLatex::GetHeight (  )  const

Double_t TLatex::GetXsize (  ) 

Double_t TLatex::GetYsize (  ) 

void TLatex::GetBoundingBox ( UInt_t w,
UInt_t h,
Bool_t  angle = kFALSE 
) [virtual]

Reimplemented from TText.

virtual void TLatex::Paint ( Option_t option = ""  )  [virtual]

Reimplemented from TText.

virtual void TLatex::PaintLatex ( Double_t  x,
Double_t  y,
Double_t  angle,
Double_t  size,
const char *  text 
) [virtual]

virtual void TLatex::SavePrimitive ( ostream &  out,
Option_t option = "" 
) [virtual]

Reimplemented from TText.

virtual void TLatex::SetIndiceSize ( Double_t  factorSize  )  [virtual]

virtual void TLatex::SetLimitIndiceSize ( Int_t  limitFactorSize  )  [virtual]


Member Data Documentation

Double_t TLatex::fFactorSize [protected]

Definition at line 77 of file TLatex.h.

Referenced by Analyse(), Copy(), operator=(), SetIndiceSize(), and TLatex().

Double_t TLatex::fFactorPos [protected]

Relative size of subscripts and superscripts.

Definition at line 78 of file TLatex.h.

Referenced by Analyse(), Copy(), operator=(), and TLatex().

Int_t TLatex::fLimitFactorSize [protected]

Relative position of subscripts and superscripts.

Definition at line 79 of file TLatex.h.

Referenced by Analyse(), Copy(), operator=(), SetLimitIndiceSize(), and TLatex().

const Char_t* TLatex::fError [protected]

Definition at line 80 of file TLatex.h.

Referenced by Analyse(), CheckLatexSyntax(), Copy(), FirstParse(), GetBoundingBox(), GetXsize(), GetYsize(), operator=(), PaintLatex(), and TLatex().

Bool_t TLatex::fShow [protected]

error code

Definition at line 81 of file TLatex.h.

Referenced by Analyse(), Copy(), FirstParse(), operator=(), PaintLatex(), and TLatex().

FormSize_t* TLatex::fTabSize [protected]

is true during the second pass (Painting)

Definition at line 82 of file TLatex.h.

Referenced by FirstParse(), GetBoundingBox(), GetXsize(), GetYsize(), operator=(), PaintLatex(), Readfs(), Savefs(), and TLatex().

Double_t TLatex::fOriginSize [protected]

array of values for the different zones

Definition at line 83 of file TLatex.h.

Referenced by Analyse(), Copy(), FirstParse(), operator=(), PaintLatex(), and TLatex().

Int_t TLatex::fTabMax [protected]

Definition at line 84 of file TLatex.h.

Referenced by Copy(), FirstParse(), Savefs(), and TLatex().

Int_t TLatex::fPos [protected]

Maximum allocation for array fTabSize;.

Definition at line 85 of file TLatex.h.

Referenced by Copy(), FirstParse(), Readfs(), Savefs(), and TLatex().

Bool_t TLatex::fItalic [protected]

Current position in array fTabSize;.

Definition at line 86 of file TLatex.h.

Referenced by Analyse(), Copy(), operator=(), and TLatex().

const Char_t* TLatex::fError [protected]

Definition at line 80 of file TLatex.h.

FormSize_t* TLatex::fTabSize [protected]

is true during the second pass (Painting)

Definition at line 82 of file TLatex.h.


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