Logo ROOT  
Reference Guide
TGLAxisPainterBox Class Reference

Utility class to paint axis in GL.

Painter class for axes encompassing a 3D box.

Definition at line 138 of file TGLAxisPainter.h.

Public Member Functions

 TGLAxisPainterBox ()
 Constructor. More...
virtual ~TGLAxisPainterBox ()
 Destructor. More...
void DrawAxis3D (TGLRnrCtx &rnrCtx)
 Draw XYZ axis with bitmap font. More...
void PlotStandard (TGLRnrCtx &rnrCtx, TH1 *histo, const TGLBoundingBox &bbox)
void SetAxis3DTitlePos (TGLRnrCtx &rnrCtx)
 Get position of axes and titles from projected corners. More...
- Public Member Functions inherited from TGLAxisPainter
 TGLAxisPainter ()
virtual ~TGLAxisPainter ()
 Destructor. More...
TAttAxisGetAttAxis ()
TGLFont::EMode GetFontMode () const
Int_t GetLabelPixelFontSize () const
Int_t GetTitlePixelFontSize () const
Int_t GetTMNDim () const
Bool_t GetUseAxisColors () const
void PaintAxis (TGLRnrCtx &ctx, TAxis *ax)
 GL render TAxis. More...
TGLVector3RefDir ()
LabVec_tRefLabVec ()
TGLVector3RefTitlePos ()
TGLVector3RefTMOff (Int_t i)
TMVec_tRefTMVec ()
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 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 SetAttAxis (TAttAxis *a)
void SetFontMode (TGLFont::EMode m)
void SetLabelAlign (TGLFont::ETextAlignH_e, TGLFont::ETextAlignV_e)
 Set label align. More...
void SetLabelFont (TGLRnrCtx &rnrCtx, const char *fontName, Int_t pixelSize=64, Double_t font3DSize=-1)
 Set label font derived from TAttAxis. More...
void SetLabelPixelFontSize (Int_t fs)
void SetTextFormat (Double_t min, Double_t max, Double_t binWidth)
 Construct print format from given primary bin width. More...
void SetTitleFont (TGLRnrCtx &rnrCtx, const char *fontName, Int_t pixelSize=64, Double_t font3DSize=-1)
 Set title font derived from TAttAxis. More...
void SetTitlePixelFontSize (Int_t fs)
void SetTMNDim (Int_t x)
void SetUseAxisColors (Bool_t x)

Protected Attributes

TAxisfAxis [3]
TGLVector3 fAxisTitlePos [3]
- Protected Attributes inherited from TGLAxisPainter
TGLVector3 fDir
TGLFont::EMode fFontMode
Double_t fLabel3DFontSize
TGLFont::ETextAlignH_e fLabelAlignH
TGLFont::ETextAlignV_e fLabelAlignV
Int_t fLabelPixelFontSize
LabVec_t fLabVec
Double_t fTitle3DFontSize
Int_t fTitlePixelFontSize
TGLVector3 fTitlePos
Int_t fTMNDim
TGLVector3 fTMOff [3]
TMVec_t fTMVec
Bool_t fUseAxisColors

Additional Inherited Members

- Public Types inherited from TGLAxisPainter
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

#include <TGLAxisPainter.h>

Inheritance diagram for TGLAxisPainterBox:

Constructor & Destructor Documentation

◆ TGLAxisPainterBox()

TGLAxisPainterBox::TGLAxisPainterBox ( )


Definition at line 452 of file TGLAxisPainter.cxx.

◆ ~TGLAxisPainterBox()

TGLAxisPainterBox::~TGLAxisPainterBox ( )


Definition at line 461 of file TGLAxisPainter.cxx.

Member Function Documentation

◆ DrawAxis3D()

void TGLAxisPainterBox::DrawAxis3D ( TGLRnrCtx rnrCtx)

Draw XYZ axis with bitmap font.

Definition at line 550 of file TGLAxisPainter.cxx.

◆ PlotStandard()

void TGLAxisPainterBox::PlotStandard ( TGLRnrCtx rnrCtx,
TH1 histo,
const TGLBoundingBox bbox 

Definition at line 618 of file TGLAxisPainter.cxx.

◆ SetAxis3DTitlePos()

void TGLAxisPainterBox::SetAxis3DTitlePos ( TGLRnrCtx rnrCtx)

Get position of axes and titles from projected corners.

Definition at line 468 of file TGLAxisPainter.cxx.

Member Data Documentation

◆ fAxis

TAxis* TGLAxisPainterBox::fAxis[3]

Definition at line 142 of file TGLAxisPainter.h.

◆ fAxisTitlePos

TGLVector3 TGLAxisPainterBox::fAxisTitlePos[3]

Definition at line 141 of file TGLAxisPainter.h.

Libraries for TGLAxisPainterBox:

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