ROOT  6.06/09
Reference Guide
Public Types | Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
TGLAxisPainter Class Reference

Definition at line 29 of file TGLAxisPainter.h.

Public Types

typedef std::pair< Float_t, Float_tLab_t
 
typedef std::vector< Lab_tLabVec_t
 
typedef std::pair< Float_t, Int_tTM_t
 
typedef std::vector< TM_tTMVec_t
 

Public Member Functions

 TGLAxisPainter ()
 
virtual ~TGLAxisPainter ()
 Destructor. More...
 
Int_t GetTMNDim () const
 
void SetTMNDim (Int_t x)
 
TGLVector3RefDir ()
 
TGLVector3RefTMOff (Int_t i)
 
TGLFont::EMode GetFontMode () const
 
void SetFontMode (TGLFont::EMode m)
 
void SetLabelPixelFontSize (Int_t fs)
 
Int_t GetLabelPixelFontSize () const
 
void SetTitlePixelFontSize (Int_t fs)
 
Int_t GetTitlePixelFontSize () const
 
TGLVector3RefTitlePos ()
 
void SetLabelAlign (TGLFont::ETextAlignH_e, TGLFont::ETextAlignV_e)
 Set label align. More...
 
LabVec_tRefLabVec ()
 
TMVec_tRefTMVec ()
 
void SetAttAxis (TAttAxis *a)
 
TAttAxisGetAttAxis ()
 
void SetUseAxisColors (Bool_t x)
 
Bool_t GetUseAxisColors () const
 
void SetLabelFont (TGLRnrCtx &rnrCtx, const char *fontName, Int_t pixelSize=64, Double_t font3DSize=-1)
 Set label font derived from TAttAxis. More...
 
void SetTitleFont (TGLRnrCtx &rnrCtx, const char *fontName, Int_t pixelSize=64, Double_t font3DSize=-1)
 Set title font derived from TAttAxis. More...
 
void SetTextFormat (Double_t min, Double_t max, Double_t binWidth)
 Construct print format from given primary bin width. More...
 
void RnrText (const TString &txt, const TGLVector3 &pos, TGLFont::ETextAlignH_e aH, TGLFont::ETextAlignV_e aV, const TGLFont &font) const
 Render text at the given position. Offset depends of text alignment. More...
 
void RnrTitle (const TString &title, TGLVector3 &pos, TGLFont::ETextAlignH_e aH, TGLFont::ETextAlignV_e aV) const
 Draw title at given position. More...
 
void RnrLabels () const
 Render label reading prepared list ov value-pos pairs. More...
 
void RnrLines () const
 Render axis main line and tick-marks. More...
 
void PaintAxis (TGLRnrCtx &ctx, TAxis *ax)
 GL render TAxis. More...
 
 ClassDef (TGLAxisPainter, 0)
 

Protected Attributes

TAttAxisfAttAxis
 
Bool_t fUseAxisColors
 
TGLFont::EMode fFontMode
 
LabVec_t fLabVec
 
TMVec_t fTMVec
 
TGLVector3 fDir
 
TGLVector3 fTMOff [3]
 
Int_t fTMNDim
 
Int_t fLabelPixelFontSize
 
Double_t fLabel3DFontSize
 
Int_t fTitlePixelFontSize
 
Double_t fTitle3DFontSize
 
TGLFont::ETextAlignH_e fLabelAlignH
 
TGLFont::ETextAlignV_e fLabelAlignV
 
TGLVector3 fTitlePos
 
TPMERegexpfAllZeroesRE
 

Private Member Functions

 TGLAxisPainter (const TGLAxisPainter &)
 
TGLAxisPainteroperator= (const TGLAxisPainter &)
 
void LabelsLimits (const char *label, Int_t &first, Int_t &last) const
 Find first and last character of a label. More...
 
void FormAxisValue (Double_t x, TString &s) const
 Returns formatted text suitable for display of value. More...
 

Private Attributes

Int_t fExp
 
Int_t fMaxDigits
 
Int_t fDecimals
 
TString fFormat
 
TGLFont fLabelFont
 
TGLFont fTitleFont
 

#include <TGLAxisPainter.h>

+ Inheritance diagram for TGLAxisPainter:
+ Collaboration diagram for TGLAxisPainter:

Member Typedef Documentation

typedef std::pair<Float_t, Float_t> TGLAxisPainter::Lab_t

Definition at line 32 of file TGLAxisPainter.h.

typedef std::vector<Lab_t> TGLAxisPainter::LabVec_t

Definition at line 33 of file TGLAxisPainter.h.

typedef std::pair<Float_t, Int_t> TGLAxisPainter::TM_t

Definition at line 34 of file TGLAxisPainter.h.

typedef std::vector<TM_t> TGLAxisPainter::TMVec_t

Definition at line 35 of file TGLAxisPainter.h.

Constructor & Destructor Documentation

TGLAxisPainter::TGLAxisPainter ( const TGLAxisPainter )
private
TGLAxisPainter::TGLAxisPainter ( )

Definition at line 37 of file TGLAxisPainter.cxx.

TGLAxisPainter::~TGLAxisPainter ( )
virtual

Destructor.

Definition at line 62 of file TGLAxisPainter.cxx.

Member Function Documentation

TGLAxisPainter::ClassDef ( TGLAxisPainter  ,
 
)
void TGLAxisPainter::FormAxisValue ( Double_t  x,
TString s 
) const
private

Returns formatted text suitable for display of value.

Definition at line 94 of file TGLAxisPainter.cxx.

Referenced by RnrLabels().

TAttAxis* TGLAxisPainter::GetAttAxis ( )
inline

Definition at line 111 of file TGLAxisPainter.h.

TGLFont::EMode TGLAxisPainter::GetFontMode ( ) const
inline

Definition at line 93 of file TGLAxisPainter.h.

Int_t TGLAxisPainter::GetLabelPixelFontSize ( ) const
inline

Definition at line 98 of file TGLAxisPainter.h.

Referenced by TEveCaloLegoGL::DrawAxis3D().

Int_t TGLAxisPainter::GetTitlePixelFontSize ( ) const
inline

Definition at line 100 of file TGLAxisPainter.h.

Int_t TGLAxisPainter::GetTMNDim ( ) const
inline

Definition at line 87 of file TGLAxisPainter.h.

Bool_t TGLAxisPainter::GetUseAxisColors ( ) const
inline

Definition at line 114 of file TGLAxisPainter.h.

void TGLAxisPainter::LabelsLimits ( const char *  label,
Int_t first,
Int_t last 
) const
private

Find first and last character of a label.

Definition at line 79 of file TGLAxisPainter.cxx.

TGLAxisPainter& TGLAxisPainter::operator= ( const TGLAxisPainter )
private
void TGLAxisPainter::PaintAxis ( TGLRnrCtx ctx,
TAxis ax 
)
TGLVector3& TGLAxisPainter::RefDir ( )
inline
LabVec_t& TGLAxisPainter::RefLabVec ( )
inline
TGLVector3& TGLAxisPainter::RefTitlePos ( )
inline
TGLVector3& TGLAxisPainter::RefTMOff ( Int_t  i)
inline
TMVec_t& TGLAxisPainter::RefTMVec ( )
inline
void TGLAxisPainter::RnrLabels ( ) const

Render label reading prepared list ov value-pos pairs.

Definition at line 233 of file TGLAxisPainter.cxx.

Referenced by TEveProjectionAxesGL::DirectDraw(), PaintAxis(), TGLCameraOverlay::RenderAxis(), and TEveCaloLegoOverlay::RenderPaletteScales().

void TGLAxisPainter::RnrLines ( ) const

Render axis main line and tick-marks.

Definition at line 285 of file TGLAxisPainter.cxx.

Referenced by TEveProjectionAxesGL::DirectDraw(), PaintAxis(), and TGLCameraOverlay::RenderAxis().

void TGLAxisPainter::RnrText ( const TString txt,
const TGLVector3 pos,
TGLFont::ETextAlignH_e  aH,
TGLFont::ETextAlignV_e  aV,
const TGLFont font 
) const

Render text at the given position. Offset depends of text alignment.

Definition at line 200 of file TGLAxisPainter.cxx.

Referenced by RnrLabels(), and RnrTitle().

void TGLAxisPainter::RnrTitle ( const TString title,
TGLVector3 pos,
TGLFont::ETextAlignH_e  aH,
TGLFont::ETextAlignV_e  aV 
) const

Draw title at given position.

Definition at line 271 of file TGLAxisPainter.cxx.

Referenced by PaintAxis().

void TGLAxisPainter::SetAttAxis ( TAttAxis a)
inline
void TGLAxisPainter::SetFontMode ( TGLFont::EMode  m)
inline
void TGLAxisPainter::SetLabelAlign ( TGLFont::ETextAlignH_e  h,
TGLFont::ETextAlignV_e  v 
)
void TGLAxisPainter::SetLabelFont ( TGLRnrCtx rnrCtx,
const char *  fontName,
Int_t  pixelSize = 64,
Double_t  font3DSize = -1 
)

Set label font derived from TAttAxis.

Definition at line 223 of file TGLAxisPainter.cxx.

Referenced by TEveProjectionAxesGL::DirectDraw(), PaintAxis(), and TEveCaloLegoOverlay::RenderPaletteScales().

void TGLAxisPainter::SetLabelPixelFontSize ( Int_t  fs)
inline
void TGLAxisPainter::SetTextFormat ( Double_t  min,
Double_t  max,
Double_t  binWidth 
)

Construct print format from given primary bin width.

Definition at line 119 of file TGLAxisPainter.cxx.

Referenced by TEveProjectionAxesGL::FilterOverlappingLabels(), PaintAxis(), and TEveCaloLegoOverlay::RenderPaletteScales().

void TGLAxisPainter::SetTitleFont ( TGLRnrCtx rnrCtx,
const char *  fontName,
Int_t  pixelSize = 64,
Double_t  font3DSize = -1 
)

Set title font derived from TAttAxis.

Definition at line 260 of file TGLAxisPainter.cxx.

Referenced by PaintAxis().

void TGLAxisPainter::SetTitlePixelFontSize ( Int_t  fs)
inline
void TGLAxisPainter::SetTMNDim ( Int_t  x)
inline
void TGLAxisPainter::SetUseAxisColors ( Bool_t  x)
inline

Member Data Documentation

TPMERegexp* TGLAxisPainter::fAllZeroesRE
protected

Definition at line 80 of file TGLAxisPainter.h.

Referenced by FormAxisValue(), TGLAxisPainter(), and ~TGLAxisPainter().

TAttAxis* TGLAxisPainter::fAttAxis
protected

Definition at line 56 of file TGLAxisPainter.h.

Referenced by GetAttAxis(), PaintAxis(), RnrLabels(), RnrLines(), and RnrTitle().

Int_t TGLAxisPainter::fDecimals
private

Definition at line 44 of file TGLAxisPainter.h.

Referenced by FormAxisValue(), and SetTextFormat().

TGLVector3 TGLAxisPainter::fDir
protected

Definition at line 66 of file TGLAxisPainter.h.

Referenced by PaintAxis(), RefDir(), RnrLabels(), and RnrLines().

Int_t TGLAxisPainter::fExp
private

Definition at line 42 of file TGLAxisPainter.h.

Referenced by RnrTitle(), and SetTextFormat().

TGLFont::EMode TGLAxisPainter::fFontMode
protected

Definition at line 58 of file TGLAxisPainter.h.

Referenced by GetFontMode(), PaintAxis(), RnrText(), SetLabelFont(), and SetTitleFont().

TString TGLAxisPainter::fFormat
private

Definition at line 45 of file TGLAxisPainter.h.

Referenced by FormAxisValue(), and SetTextFormat().

Double_t TGLAxisPainter::fLabel3DFontSize
protected

Definition at line 72 of file TGLAxisPainter.h.

Referenced by RnrText(), and SetLabelFont().

TGLFont::ETextAlignH_e TGLAxisPainter::fLabelAlignH
protected

Definition at line 77 of file TGLAxisPainter.h.

Referenced by PaintAxis(), RnrLabels(), and SetLabelAlign().

TGLFont::ETextAlignV_e TGLAxisPainter::fLabelAlignV
protected

Definition at line 78 of file TGLAxisPainter.h.

Referenced by PaintAxis(), RnrLabels(), and SetLabelAlign().

TGLFont TGLAxisPainter::fLabelFont
private

Definition at line 48 of file TGLAxisPainter.h.

Referenced by RnrLabels(), and SetLabelFont().

Int_t TGLAxisPainter::fLabelPixelFontSize
protected

Definition at line 71 of file TGLAxisPainter.h.

Referenced by GetLabelPixelFontSize(), PaintAxis(), RnrText(), and SetLabelFont().

LabVec_t TGLAxisPainter::fLabVec
protected

Definition at line 59 of file TGLAxisPainter.h.

Referenced by PaintAxis(), RefLabVec(), and RnrLabels().

Int_t TGLAxisPainter::fMaxDigits
private

Definition at line 43 of file TGLAxisPainter.h.

Referenced by SetTextFormat().

Double_t TGLAxisPainter::fTitle3DFontSize
protected

Definition at line 74 of file TGLAxisPainter.h.

Referenced by SetTitleFont().

TGLFont TGLAxisPainter::fTitleFont
private

Definition at line 49 of file TGLAxisPainter.h.

Referenced by RnrTitle(), and SetTitleFont().

Int_t TGLAxisPainter::fTitlePixelFontSize
protected

Definition at line 73 of file TGLAxisPainter.h.

Referenced by GetTitlePixelFontSize(), PaintAxis(), and SetTitleFont().

TGLVector3 TGLAxisPainter::fTitlePos
protected

Definition at line 79 of file TGLAxisPainter.h.

Referenced by PaintAxis(), and RefTitlePos().

Int_t TGLAxisPainter::fTMNDim
protected

Definition at line 68 of file TGLAxisPainter.h.

Referenced by GetTMNDim(), and RnrLines().

TGLVector3 TGLAxisPainter::fTMOff[3]
protected

Definition at line 67 of file TGLAxisPainter.h.

Referenced by RnrLabels(), and RnrLines().

TMVec_t TGLAxisPainter::fTMVec
protected

Definition at line 60 of file TGLAxisPainter.h.

Referenced by PaintAxis(), RefTMVec(), and RnrLines().

Bool_t TGLAxisPainter::fUseAxisColors
protected

Definition at line 57 of file TGLAxisPainter.h.

Referenced by GetUseAxisColors(), PaintAxis(), RnrLabels(), RnrLines(), and RnrTitle().


The documentation for this class was generated from the following files: