class TGLAxisPainter


 Utility class to paint axis in GL.

Function Members (Methods)

public:
TGLAxisPainter()
virtual~TGLAxisPainter()
static TClass*Class()
voidFormAxisValue(Float_t x, char* lab) const
virtual TClass*IsA() const
voidPaint(TGLRnrCtx& ctx, TGLAxisAttrib& atrib)
voidSetAxisAtt(TGLAxisAttrib* axa)
voidSetTextFormat(Double_t binWidth)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
protected:
voidDrawTick(TGLVector3& tv, Int_t order) const
voidLabelsLimits(const char* label, Int_t& first, Int_t& last) const
voidRnrText(const char* txt, TGLVector3 pos, TGLFont& font) const
private:
TGLAxisPainter(const TGLAxisPainter&)
TGLAxisPainter&operator=(const TGLAxisPainter&)

Data Members

protected:
TGLAxisAttrib*fAtt
Int_tfDecimalscached
Int_tfExpcached
charfFormat[8]cached
Int_tfMaxDigits

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLAxisPainter(const TGLAxisPainter& )
 Constructor.
void LabelsLimits(const char* label, Int_t& first, Int_t& last) const
 Find first and last character of a label.
void DrawTick(TGLVector3& tv, Int_t order) const
 Draw tick-marks in supprted dimensions.
void FormAxisValue(Float_t x, char* lab) const
 Returns formatted text suitable for display of value.
void SetTextFormat(Double_t binWidth)
 Construct print format from given primary bin width.
void RnrText(const char* txt, TGLVector3 pos, TGLFont& font) const
 Render text at the given position. Offset depends of text aligment.
void Paint(TGLRnrCtx& ctx, TGLAxisAttrib& atrib)
 Paint axis body, tickmarks and labels.
TGLAxisPainter(const TGLAxisPainter& )
TGLAxisPainter& operator=(const TGLAxisPainter& )
virtual ~TGLAxisPainter()
{}
void SetAxisAtt(TGLAxisAttrib* axa)
{ fAtt = axa; }

Author: Matevz Tadel 2007
Last change: root/eve:$Id: TGLAxisPainter.h 26367 2008-11-21 18:08:30Z matevz $
Last generated: 2008-11-24 08:19
Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.