ROOT » GRAF3D » GL » TGLAxisPainter

class TGLAxisPainter


 Utility class to paint axis in GL.

Function Members (Methods)

public:
virtual~TGLAxisPainter()
static TClass*Class()
TAttAxis*GetAttAxis()
TGLFont::EModeGetFontMode() const
Int_tGetLabelPixelFontSize() const
Int_tGetTitlePixelFontSize() const
Int_tGetTMNDim() const
Bool_tGetUseAxisColors() const
virtual TClass*IsA() const
voidPaintAxis(TGLRnrCtx& ctx, TAxis* ax)
TGLVector3&RefDir()
TGLAxisPainter::LabVec_t&RefLabVec()
TGLVector3&RefTitlePos()
TGLVector3&RefTMOff(Int_t i)
TGLAxisPainter::TMVec_t&RefTMVec()
voidRnrLabels() const
voidRnrLines() const
voidRnrText(const TString& txt, const TGLVector3& pos, TGLFont::ETextAlignH_e aH, TGLFont::ETextAlignV_e aV, const TGLFont& font) const
voidRnrTitle(const TString& title, TGLVector3& pos, TGLFont::ETextAlignH_e aH, TGLFont::ETextAlignV_e aV) const
voidSetAttAxis(TAttAxis* a)
voidSetFontMode(TGLFont::EMode m)
voidSetLabelAlign(TGLFont::ETextAlignH_e, TGLFont::ETextAlignV_e)
voidSetLabelFont(TGLRnrCtx& rnrCtx, const char* fontName, Int_t pixelSize = 64, Double_t font3DSize = -1)
voidSetLabelPixelFontSize(Int_t fs)
voidSetTextFormat(Double_t min, Double_t max, Double_t binWidth)
voidSetTitleFont(TGLRnrCtx& rnrCtx, const char* fontName, Int_t pixelSize = 64, Double_t font3DSize = -1)
voidSetTitlePixelFontSize(Int_t fs)
voidSetTMNDim(Int_t x)
voidSetUseAxisColors(Bool_t x)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
TGLAxisPainter()
private:
voidFormAxisValue(Double_t x, TString& s) const
voidLabelsLimits(const char* label, Int_t& first, Int_t& last) const
TGLAxisPainter&operator=(const TGLAxisPainter&)
TGLAxisPainter(const TGLAxisPainter&)

Data Members

protected:
TPMERegexp*fAllZeroesRE
TAttAxis*fAttAxisModel.
TGLVector3fDir
TGLFont::EModefFontModeTo be put into TAttAxis
TGLAxisPainter::LabVec_tfLabVecList of Labels position-value pairs
Double_tfLabel3DFontSize
TGLFont::ETextAlignH_efLabelAlignH
TGLFont::ETextAlignV_efLabelAlignV
Int_tfLabelPixelFontSize
Int_tfTMNDim
TGLVector3fTMOff[3]
TGLAxisPainter::TMVec_tfTMVecList of tick-mark position-value pairs
Double_tfTitle3DFontSize
Int_tfTitlePixelFontSize
TGLVector3fTitlePos
Bool_tfUseAxisColorsUse colors from axes or from GL-rnr-ctx.
private:
Int_tfDecimals
Int_tfExp
TStringfFormat
TGLFontfLabelFont
Int_tfMaxDigits
TGLFontfTitleFont

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLAxisPainter()
 Constructor.
~TGLAxisPainter()
 Destructor.
void SetLabelAlign(TGLFont::ETextAlignH_e , TGLFont::ETextAlignV_e )
 Set label align.
void LabelsLimits(const char* label, Int_t& first, Int_t& last) const
 Find first and last character of a label.
void FormAxisValue(Double_t x, TString& s) const
 Returns formatted text suitable for display of value.
void SetTextFormat(Double_t min, Double_t max, Double_t binWidth)
 Construct print format from given primary bin width.
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 aligment.
void SetLabelFont(TGLRnrCtx& rnrCtx, const char* fontName, Int_t pixelSize = 64, Double_t font3DSize = -1)
 Set label font derived from TAttAxis.
void RnrLabels() const
 Render label reading prepared list ov value-pos pairs.
void SetTitleFont(TGLRnrCtx& rnrCtx, const char* fontName, Int_t pixelSize = 64, Double_t font3DSize = -1)
 Set title font derived from TAttAxis.
void RnrTitle(const TString& title, TGLVector3& pos, TGLFont::ETextAlignH_e aH, TGLFont::ETextAlignV_e aV) const
 Draw title at given position.
void RnrLines() const
 Render axis main line and tickmarks.
void PaintAxis(TGLRnrCtx& ctx, TAxis* ax)
 GL render TAxis.
TGLAxisPainter(const TGLAxisPainter& )
TGLAxisPainter& operator=(const TGLAxisPainter& )
Int_t GetTMNDim() const
 GetSets.
{ return fTMNDim; }
void SetTMNDim(Int_t x)
{ fTMNDim = x; }
TGLVector3& RefDir()
{ return fDir; }
TGLVector3& RefTMOff(Int_t i)
{ return fTMOff[i]; }
TGLFont::EMode GetFontMode() const
{ return fFontMode; }
void SetFontMode(TGLFont::EMode m)
{ fFontMode=m; }
void SetLabelPixelFontSize(Int_t fs)
 this setter not necessary
Int_t GetLabelPixelFontSize() const
void SetTitlePixelFontSize(Int_t fs)
Int_t GetTitlePixelFontSize() const
TGLVector3& RefTitlePos()
{ return fTitlePos; }
LabVec_t& RefLabVec()
{ return fLabVec; }
TMVec_t& RefTMVec()
{ return fTMVec; }
void SetAttAxis(TAttAxis* a)
{ fAttAxis = a; }
TAttAxis* GetAttAxis()
{ return fAttAxis; }
void SetUseAxisColors(Bool_t x)
Bool_t GetUseAxisColors() const
{ return fUseAxisColors; }