Utility class to paint axis in GL.
Painter class for axes encompassing a 3D box.
Definition at line 141 of file TGLAxisPainter.h.
Public Member Functions | |
TGLAxisPainterBox () | |
Constructor. | |
virtual | ~TGLAxisPainterBox () |
Destructor. | |
void | DrawAxis3D (TGLRnrCtx &rnrCtx) |
Draw XYZ axis with bitmap font. | |
void | PlotStandard (TGLRnrCtx &rnrCtx, TH1 *histo, const TGLBoundingBox &bbox) |
void | SetAxis3DTitlePos (TGLRnrCtx &rnrCtx) |
Get position of axes and titles from projected corners. | |
Public Member Functions inherited from TGLAxisPainter | |
TGLAxisPainter () | |
virtual | ~TGLAxisPainter () |
Destructor. | |
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. | |
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. | |
void | RnrLines () const |
Render axis main line and tick-marks. | |
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. | |
void | RnrTitle (const TString &title, TGLVector3 &pos, TGLFont::ETextAlignH_e aH, TGLFont::ETextAlignV_e aV) const |
Draw title at given position. | |
void | SetAttAxis (TAttAxis *a) |
void | SetFontMode (TGLFont::EMode m) |
void | SetLabelAlign (TGLFont::ETextAlignH_e, TGLFont::ETextAlignV_e) |
Set label align. | |
void | SetLabelFont (TGLRnrCtx &rnrCtx, const char *fontName, Int_t pixelSize=64, Double_t font3DSize=-1) |
Set label font derived from TAttAxis. | |
void | SetLabelPixelFontSize (Int_t fs) |
void | SetTextFormat (Double_t min, Double_t max, Double_t binWidth) |
Construct print format from given primary bin width. | |
void | SetTitleFont (TGLRnrCtx &rnrCtx, const char *fontName, Int_t pixelSize=64, Double_t font3DSize=-1) |
Set title font derived from TAttAxis. | |
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 451 of file TGLAxisPainter.cxx.
|
virtual |
Destructor.
Definition at line 460 of file TGLAxisPainter.cxx.
Draw XYZ axis with bitmap font.
Definition at line 549 of file TGLAxisPainter.cxx.
void TGLAxisPainterBox::PlotStandard | ( | TGLRnrCtx & | rnrCtx, |
TH1 * | histo, | ||
const TGLBoundingBox & | bbox | ||
) |
Definition at line 617 of file TGLAxisPainter.cxx.
Get position of axes and titles from projected corners.
Definition at line 467 of file TGLAxisPainter.cxx.
|
protected |
Definition at line 145 of file TGLAxisPainter.h.
|
protected |
Definition at line 144 of file TGLAxisPainter.h.