Utility class to paint axis in GL.
Definition at line 32 of file TGLAxisPainter.h.
Public Types | |
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 |
Public Member Functions | |
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 |
virtual TClass * | IsA () 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) |
virtual void | Streamer (TBuffer &) |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Private Member Functions | |
TGLAxisPainter (const TGLAxisPainter &) | |
void | FormAxisValue (Double_t x, TString &s) const |
Returns formatted text suitable for display of value. | |
void | LabelsLimits (const char *label, Int_t &first, Int_t &last) const |
Find first and last character of a label. | |
TGLAxisPainter & | operator= (const TGLAxisPainter &) |
Private Attributes | |
Int_t | fDecimals |
Int_t | fExp |
TString | fFormat |
TGLFont | fLabelFont |
Int_t | fMaxDigits |
TGLFont | fTitleFont |
#include <TGLAxisPainter.h>
typedef std::pair<Float_t, Float_t> TGLAxisPainter::Lab_t |
Definition at line 35 of file TGLAxisPainter.h.
typedef std::vector<Lab_t> TGLAxisPainter::LabVec_t |
Definition at line 36 of file TGLAxisPainter.h.
typedef std::pair<Float_t, Int_t> TGLAxisPainter::TM_t |
Definition at line 37 of file TGLAxisPainter.h.
typedef std::vector<TM_t> TGLAxisPainter::TMVec_t |
Definition at line 38 of file TGLAxisPainter.h.
|
private |
TGLAxisPainter::TGLAxisPainter | ( | ) |
Definition at line 36 of file TGLAxisPainter.cxx.
|
virtual |
Destructor.
Definition at line 61 of file TGLAxisPainter.cxx.
|
static |
|
inlinestaticconstexpr |
Definition at line 133 of file TGLAxisPainter.h.
|
inlinestatic |
Definition at line 133 of file TGLAxisPainter.h.
Returns formatted text suitable for display of value.
Definition at line 93 of file TGLAxisPainter.cxx.
|
inline |
Definition at line 114 of file TGLAxisPainter.h.
|
inline |
Definition at line 96 of file TGLAxisPainter.h.
|
inline |
Definition at line 101 of file TGLAxisPainter.h.
|
inline |
Definition at line 103 of file TGLAxisPainter.h.
|
inline |
Definition at line 90 of file TGLAxisPainter.h.
|
inline |
Definition at line 117 of file TGLAxisPainter.h.
|
inlinevirtual |
Reimplemented in TGLAxisPainterBox.
Definition at line 133 of file TGLAxisPainter.h.
Find first and last character of a label.
Definition at line 78 of file TGLAxisPainter.cxx.
|
private |
GL render TAxis.
Definition at line 326 of file TGLAxisPainter.cxx.
|
inline |
Definition at line 93 of file TGLAxisPainter.h.
|
inline |
Definition at line 110 of file TGLAxisPainter.h.
|
inline |
Definition at line 105 of file TGLAxisPainter.h.
|
inline |
Definition at line 94 of file TGLAxisPainter.h.
|
inline |
Definition at line 111 of file TGLAxisPainter.h.
void TGLAxisPainter::RnrLabels | ( | ) | const |
Render label reading prepared list ov value-pos pairs.
Definition at line 232 of file TGLAxisPainter.cxx.
void TGLAxisPainter::RnrLines | ( | ) | const |
Render axis main line and tick-marks.
Definition at line 284 of file TGLAxisPainter.cxx.
void TGLAxisPainter::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.
Definition at line 199 of file TGLAxisPainter.cxx.
void TGLAxisPainter::RnrTitle | ( | const TString & | title, |
TGLVector3 & | pos, | ||
TGLFont::ETextAlignH_e | aH, | ||
TGLFont::ETextAlignV_e | aV | ||
) | const |
Draw title at given position.
Definition at line 270 of file TGLAxisPainter.cxx.
|
inline |
Definition at line 113 of file TGLAxisPainter.h.
|
inline |
Definition at line 97 of file TGLAxisPainter.h.
void TGLAxisPainter::SetLabelAlign | ( | TGLFont::ETextAlignH_e | h, |
TGLFont::ETextAlignV_e | v | ||
) |
Set label align.
Definition at line 69 of file TGLAxisPainter.cxx.
void TGLAxisPainter::SetLabelFont | ( | TGLRnrCtx & | rnrCtx, |
const char * | fontName, | ||
Int_t | pixelSize = 64 , |
||
Double_t | font3DSize = -1 |
||
) |
Set label font derived from TAttAxis.
Definition at line 222 of file TGLAxisPainter.cxx.
|
inline |
Definition at line 100 of file TGLAxisPainter.h.
Construct print format from given primary bin width.
Definition at line 118 of file TGLAxisPainter.cxx.
void TGLAxisPainter::SetTitleFont | ( | TGLRnrCtx & | rnrCtx, |
const char * | fontName, | ||
Int_t | pixelSize = 64 , |
||
Double_t | font3DSize = -1 |
||
) |
Set title font derived from TAttAxis.
Definition at line 259 of file TGLAxisPainter.cxx.
|
inline |
Definition at line 102 of file TGLAxisPainter.h.
|
inline |
Definition at line 91 of file TGLAxisPainter.h.
|
inline |
Definition at line 116 of file TGLAxisPainter.h.
|
virtual |
Reimplemented in TGLAxisPainterBox.
|
inline |
Definition at line 133 of file TGLAxisPainter.h.
|
protected |
Definition at line 83 of file TGLAxisPainter.h.
|
protected |
Definition at line 59 of file TGLAxisPainter.h.
|
private |
Definition at line 47 of file TGLAxisPainter.h.
|
protected |
Definition at line 69 of file TGLAxisPainter.h.
|
private |
Definition at line 45 of file TGLAxisPainter.h.
|
protected |
Definition at line 61 of file TGLAxisPainter.h.
|
private |
Definition at line 48 of file TGLAxisPainter.h.
|
protected |
Definition at line 75 of file TGLAxisPainter.h.
|
protected |
Definition at line 80 of file TGLAxisPainter.h.
|
protected |
Definition at line 81 of file TGLAxisPainter.h.
|
private |
Definition at line 51 of file TGLAxisPainter.h.
|
protected |
Definition at line 74 of file TGLAxisPainter.h.
|
protected |
Definition at line 62 of file TGLAxisPainter.h.
|
private |
Definition at line 46 of file TGLAxisPainter.h.
|
protected |
Definition at line 77 of file TGLAxisPainter.h.
|
private |
Definition at line 52 of file TGLAxisPainter.h.
|
protected |
Definition at line 76 of file TGLAxisPainter.h.
|
protected |
Definition at line 82 of file TGLAxisPainter.h.
|
protected |
Definition at line 71 of file TGLAxisPainter.h.
|
protected |
Definition at line 70 of file TGLAxisPainter.h.
|
protected |
Definition at line 63 of file TGLAxisPainter.h.
|
protected |
Definition at line 60 of file TGLAxisPainter.h.