12 #ifndef ROOT_TGLAxisPainter
13 #define ROOT_TGLAxisPainter
32 typedef std::pair <Float_t, Float_t>
Lab_t;
34 typedef std::pair <Float_t, Int_t>
TM_t;
Int_t GetLabelPixelFontSize() const
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
static Vc_ALWAYS_INLINE int_v min(const int_v &x, const int_v &y)
void SetUseAxisColors(Bool_t x)
ClassDef(TGLAxisPainter, 0)
void SetTitlePixelFontSize(Int_t fs)
std::vector< TM_t > TMVec_t
void PlotStandard(TGLRnrCtx &rnrCtx, TH1 *histo, const TGLBoundingBox &bbox)
void RnrTitle(const TString &title, TGLVector3 &pos, TGLFont::ETextAlignH_e aH, TGLFont::ETextAlignV_e aV) const
Draw title at given position.
void SetFontMode(TGLFont::EMode m)
void FormAxisValue(Double_t x, TString &s) const
Returns formatted text suitable for display of value.
Int_t fTitlePixelFontSize
std::pair< Float_t, Int_t > TM_t
Manages histogram axis attributes.
ClassDef(TGLAxisPainterBox, 0)
TGLVector3 & RefTMOff(Int_t i)
std::pair< Float_t, Float_t > Lab_t
std::vector< Lab_t > LabVec_t
TGLAxisPainterBox()
Constructor.
Bool_t GetUseAxisColors() const
Utility class to paint axis in GL.
TGLVector3 & RefTitlePos()
3 component (x/y/z) vector class.
void PaintAxis(TGLRnrCtx &ctx, TAxis *ax)
GL render TAxis.
Int_t GetTitlePixelFontSize() const
void RnrLabels() const
Render label reading prepared list ov value-pos pairs.
Class to manage histogram axis.
Int_t fLabelPixelFontSize
TPaveLabel title(3, 27.1, 15, 28.7,"ROOT Environment and Tools")
TGLAxisPainter & operator=(const TGLAxisPainter &)
void RnrLines() const
Render axis main line and tick-marks.
TPMERegexp * fAllZeroesRE
TGLVector3 fAxisTitlePos[3]
void SetLabelAlign(TGLFont::ETextAlignH_e, TGLFont::ETextAlignV_e)
Set label align.
void SetTitleFont(TGLRnrCtx &rnrCtx, const char *fontName, Int_t pixelSize=64, Double_t font3DSize=-1)
Set title font derived from TAttAxis.
virtual ~TGLAxisPainterBox()
Destructor.
Double_t fTitle3DFontSize
static Vc_ALWAYS_INLINE int_v max(const int_v &x, const int_v &y)
Concrete class describing an orientated (free) or axis aligned box of 8 vertices. ...
Wrapper for PCRE library (Perl Compatible Regular Expressions).
TGLFont::EMode GetFontMode() const
void SetLabelPixelFontSize(Int_t fs)
void SetAxis3DTitlePos(TGLRnrCtx &rnrCtx)
Get position of axes and titles from projected corners.
void SetLabelFont(TGLRnrCtx &rnrCtx, const char *fontName, Int_t pixelSize=64, Double_t font3DSize=-1)
Set label font derived from TAttAxis.
A wrapper class for FTFont.
void LabelsLimits(const char *label, Int_t &first, Int_t &last) const
Find first and last character of a label.
void SetTextFormat(Double_t min, Double_t max, Double_t binWidth)
Construct print format from given primary bin width.
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.
Double_t fLabel3DFontSize
virtual ~TGLAxisPainter()
Destructor.
TGLFont::ETextAlignH_e fLabelAlignH
void DrawAxis3D(TGLRnrCtx &rnrCtx)
Draw XYZ axis with bitmap font.
TGLFont::ETextAlignV_e fLabelAlignV
void SetAttAxis(TAttAxis *a)