ROOT 6.08/07 Reference Guide |
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... | |
TAttAxis * | GetAttAxis () |
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... | |
TGLVector3 & | RefDir () |
LabVec_t & | RefLabVec () |
TGLVector3 & | RefTitlePos () |
TGLVector3 & | RefTMOff (Int_t i) |
TMVec_t & | RefTMVec () |
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 | |
TAxis * | fAxis [3] |
TGLVector3 | fAxisTitlePos [3] |
Protected Attributes inherited from TGLAxisPainter | |
TPMERegexp * | fAllZeroesRE |
TAttAxis * | fAttAxis |
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_t > | Lab_t |
typedef std::vector< Lab_t > | LabVec_t |
typedef std::pair< Float_t, Int_t > | TM_t |
typedef std::vector< TM_t > | TMVec_t |
#include <TGLAxisPainter.h>
TGLAxisPainterBox::TGLAxisPainterBox | ( | ) |
Constructor.
Definition at line 452 of file TGLAxisPainter.cxx.
|
virtual |
Destructor.
Definition at line 461 of file TGLAxisPainter.cxx.
Draw XYZ axis with bitmap font.
Definition at line 550 of file TGLAxisPainter.cxx.
void TGLAxisPainterBox::PlotStandard | ( | TGLRnrCtx & | rnrCtx, |
TH1 * | histo, | ||
const TGLBoundingBox & | bbox | ||
) |
Definition at line 618 of file TGLAxisPainter.cxx.
Get position of axes and titles from projected corners.
Definition at line 468 of file TGLAxisPainter.cxx.
|
protected |
Definition at line 142 of file TGLAxisPainter.h.
|
protected |
Definition at line 141 of file TGLAxisPainter.h.