Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
TGLAxisPainterBox Class Reference

Painter class for axes encompassing a 3D box.

Definition at line 141 of file TGLAxisPainter.h.

Public Types

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

Public Member Functions

 TGLAxisPainterBox ()
 Constructor.
 ~TGLAxisPainterBox () override
 Destructor.
void DrawAxis3D (TGLRnrCtx &rnrCtx)
 Draw XYZ axis with bitmap font.
TAttAxisGetAttAxis ()
TGLFont::EMode GetFontMode () const
Int_t GetLabelPixelFontSize () const
Int_t GetTitlePixelFontSize () const
Int_t GetTMNDim () const
Bool_t GetUseAxisColors () const
TClassIsA () const override
void PaintAxis (TGLRnrCtx &ctx, TAxis *ax)
 GL render TAxis.
void PlotStandard (TGLRnrCtx &rnrCtx, TH1 *histo, const TGLBoundingBox &bbox)
TGLVector3RefDir ()
LabVec_tRefLabVec ()
TGLVector3RefTitlePos ()
TGLVector3RefTMOff (Int_t i)
TMVec_tRefTMVec ()
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 SetAxis3DTitlePos (TGLRnrCtx &rnrCtx)
 Get position of axes and titles from projected corners.
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)
void Streamer (TBuffer &) override
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)

Static Public Member Functions

static TClassClass ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static const char * DeclFileName ()

Protected Attributes

TPMERegexpfAllZeroesRE
TAttAxisfAttAxis
TAxisfAxis [3]
TGLVector3 fAxisTitlePos [3]
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

Private Member Functions

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.

Private Attributes

Int_t fDecimals
Int_t fExp
TString fFormat
TGLFont fLabelFont
Int_t fMaxDigits
TGLFont fTitleFont

#include <TGLAxisPainter.h>

Inheritance diagram for TGLAxisPainterBox:
TGLAxisPainter

Member Typedef Documentation

◆ Lab_t

typedef std::pair<Float_t, Float_t> TGLAxisPainter::Lab_t
inherited

Definition at line 35 of file TGLAxisPainter.h.

◆ LabVec_t

typedef std::vector<Lab_t> TGLAxisPainter::LabVec_t
inherited

Definition at line 36 of file TGLAxisPainter.h.

◆ TM_t

typedef std::pair<Float_t, Int_t> TGLAxisPainter::TM_t
inherited

Definition at line 37 of file TGLAxisPainter.h.

◆ TMVec_t

typedef std::vector<TM_t> TGLAxisPainter::TMVec_t
inherited

Definition at line 38 of file TGLAxisPainter.h.

Constructor & Destructor Documentation

◆ TGLAxisPainterBox()

TGLAxisPainterBox::TGLAxisPainterBox ( )

Constructor.

Definition at line 449 of file TGLAxisPainter.cxx.

◆ ~TGLAxisPainterBox()

TGLAxisPainterBox::~TGLAxisPainterBox ( )
override

Destructor.

Definition at line 458 of file TGLAxisPainter.cxx.

Member Function Documentation

◆ Class()

TClass * TGLAxisPainterBox::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

const char * TGLAxisPainterBox::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

constexpr Version_t TGLAxisPainterBox::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 156 of file TGLAxisPainter.h.

◆ DeclFileName()

const char * TGLAxisPainterBox::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 156 of file TGLAxisPainter.h.

◆ DrawAxis3D()

void TGLAxisPainterBox::DrawAxis3D ( TGLRnrCtx & rnrCtx)

Draw XYZ axis with bitmap font.

Definition at line 547 of file TGLAxisPainter.cxx.

◆ FormAxisValue()

void TGLAxisPainter::FormAxisValue ( Double_t x,
TString & s ) const
privateinherited

Returns formatted text suitable for display of value.

Definition at line 92 of file TGLAxisPainter.cxx.

◆ GetAttAxis()

TAttAxis * TGLAxisPainter::GetAttAxis ( )
inlineinherited

Definition at line 114 of file TGLAxisPainter.h.

◆ GetFontMode()

TGLFont::EMode TGLAxisPainter::GetFontMode ( ) const
inlineinherited

Definition at line 96 of file TGLAxisPainter.h.

◆ GetLabelPixelFontSize()

Int_t TGLAxisPainter::GetLabelPixelFontSize ( ) const
inlineinherited

Definition at line 101 of file TGLAxisPainter.h.

◆ GetTitlePixelFontSize()

Int_t TGLAxisPainter::GetTitlePixelFontSize ( ) const
inlineinherited

Definition at line 103 of file TGLAxisPainter.h.

◆ GetTMNDim()

Int_t TGLAxisPainter::GetTMNDim ( ) const
inlineinherited

Definition at line 90 of file TGLAxisPainter.h.

◆ GetUseAxisColors()

Bool_t TGLAxisPainter::GetUseAxisColors ( ) const
inlineinherited

Definition at line 117 of file TGLAxisPainter.h.

◆ IsA()

TClass * TGLAxisPainterBox::IsA ( ) const
inlineoverridevirtual
Returns
TClass describing current object

Reimplemented from TGLAxisPainter.

Definition at line 156 of file TGLAxisPainter.h.

◆ LabelsLimits()

void TGLAxisPainter::LabelsLimits ( const char * label,
Int_t & first,
Int_t & last ) const
privateinherited

Find first and last character of a label.

Definition at line 77 of file TGLAxisPainter.cxx.

◆ PaintAxis()

void TGLAxisPainter::PaintAxis ( TGLRnrCtx & ctx,
TAxis * ax )
inherited

GL render TAxis.

Definition at line 325 of file TGLAxisPainter.cxx.

◆ PlotStandard()

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

Definition at line 614 of file TGLAxisPainter.cxx.

◆ RefDir()

TGLVector3 & TGLAxisPainter::RefDir ( )
inlineinherited

Definition at line 93 of file TGLAxisPainter.h.

◆ RefLabVec()

LabVec_t & TGLAxisPainter::RefLabVec ( )
inlineinherited

Definition at line 110 of file TGLAxisPainter.h.

◆ RefTitlePos()

TGLVector3 & TGLAxisPainter::RefTitlePos ( )
inlineinherited

Definition at line 105 of file TGLAxisPainter.h.

◆ RefTMOff()

TGLVector3 & TGLAxisPainter::RefTMOff ( Int_t i)
inlineinherited

Definition at line 94 of file TGLAxisPainter.h.

◆ RefTMVec()

TMVec_t & TGLAxisPainter::RefTMVec ( )
inlineinherited

Definition at line 111 of file TGLAxisPainter.h.

◆ RnrLabels()

void TGLAxisPainter::RnrLabels ( ) const
inherited

Render label reading prepared list ov value-pos pairs.

Definition at line 231 of file TGLAxisPainter.cxx.

◆ RnrLines()

void TGLAxisPainter::RnrLines ( ) const
inherited

Render axis main line and tick-marks.

Definition at line 283 of file TGLAxisPainter.cxx.

◆ RnrText()

void TGLAxisPainter::RnrText ( const TString & txt,
const TGLVector3 & pos,
TGLFont::ETextAlignH_e aH,
TGLFont::ETextAlignV_e aV,
const TGLFont & font ) const
inherited

Render text at the given position. Offset depends of text alignment.

Definition at line 198 of file TGLAxisPainter.cxx.

◆ RnrTitle()

void TGLAxisPainter::RnrTitle ( const TString & title,
TGLVector3 & pos,
TGLFont::ETextAlignH_e aH,
TGLFont::ETextAlignV_e aV ) const
inherited

Draw title at given position.

Definition at line 269 of file TGLAxisPainter.cxx.

◆ SetAttAxis()

void TGLAxisPainter::SetAttAxis ( TAttAxis * a)
inlineinherited

Definition at line 113 of file TGLAxisPainter.h.

◆ SetAxis3DTitlePos()

void TGLAxisPainterBox::SetAxis3DTitlePos ( TGLRnrCtx & rnrCtx)

Get position of axes and titles from projected corners.

Definition at line 465 of file TGLAxisPainter.cxx.

◆ SetFontMode()

void TGLAxisPainter::SetFontMode ( TGLFont::EMode m)
inlineinherited

Definition at line 97 of file TGLAxisPainter.h.

◆ SetLabelAlign()

void TGLAxisPainter::SetLabelAlign ( TGLFont::ETextAlignH_e h,
TGLFont::ETextAlignV_e v )
inherited

Set label align.

Definition at line 68 of file TGLAxisPainter.cxx.

◆ SetLabelFont()

void TGLAxisPainter::SetLabelFont ( TGLRnrCtx & rnrCtx,
const char * fontName,
Int_t pixelSize = 64,
Double_t font3DSize = -1 )
inherited

Set label font derived from TAttAxis.

Definition at line 221 of file TGLAxisPainter.cxx.

◆ SetLabelPixelFontSize()

void TGLAxisPainter::SetLabelPixelFontSize ( Int_t fs)
inlineinherited

Definition at line 100 of file TGLAxisPainter.h.

◆ SetTextFormat()

void TGLAxisPainter::SetTextFormat ( Double_t min,
Double_t max,
Double_t binWidth )
inherited

Construct print format from given primary bin width.

Definition at line 117 of file TGLAxisPainter.cxx.

◆ SetTitleFont()

void TGLAxisPainter::SetTitleFont ( TGLRnrCtx & rnrCtx,
const char * fontName,
Int_t pixelSize = 64,
Double_t font3DSize = -1 )
inherited

Set title font derived from TAttAxis.

Definition at line 258 of file TGLAxisPainter.cxx.

◆ SetTitlePixelFontSize()

void TGLAxisPainter::SetTitlePixelFontSize ( Int_t fs)
inlineinherited

Definition at line 102 of file TGLAxisPainter.h.

◆ SetTMNDim()

void TGLAxisPainter::SetTMNDim ( Int_t x)
inlineinherited

Definition at line 91 of file TGLAxisPainter.h.

◆ SetUseAxisColors()

void TGLAxisPainter::SetUseAxisColors ( Bool_t x)
inlineinherited

Definition at line 116 of file TGLAxisPainter.h.

◆ Streamer()

void TGLAxisPainterBox::Streamer ( TBuffer & )
overridevirtual

Reimplemented from TGLAxisPainter.

◆ StreamerNVirtual()

void TGLAxisPainterBox::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inline

Definition at line 156 of file TGLAxisPainter.h.

Member Data Documentation

◆ fAllZeroesRE

TPMERegexp* TGLAxisPainter::fAllZeroesRE
protectedinherited

Definition at line 83 of file TGLAxisPainter.h.

◆ fAttAxis

TAttAxis* TGLAxisPainter::fAttAxis
protectedinherited

Definition at line 59 of file TGLAxisPainter.h.

◆ fAxis

TAxis* TGLAxisPainterBox::fAxis[3]
protected

Definition at line 145 of file TGLAxisPainter.h.

◆ fAxisTitlePos

TGLVector3 TGLAxisPainterBox::fAxisTitlePos[3]
protected

Definition at line 144 of file TGLAxisPainter.h.

◆ fDecimals

Int_t TGLAxisPainter::fDecimals
privateinherited

Definition at line 47 of file TGLAxisPainter.h.

◆ fDir

TGLVector3 TGLAxisPainter::fDir
protectedinherited

Definition at line 69 of file TGLAxisPainter.h.

◆ fExp

Int_t TGLAxisPainter::fExp
privateinherited

Definition at line 45 of file TGLAxisPainter.h.

◆ fFontMode

TGLFont::EMode TGLAxisPainter::fFontMode
protectedinherited

Definition at line 61 of file TGLAxisPainter.h.

◆ fFormat

TString TGLAxisPainter::fFormat
privateinherited

Definition at line 48 of file TGLAxisPainter.h.

◆ fLabel3DFontSize

Double_t TGLAxisPainter::fLabel3DFontSize
protectedinherited

Definition at line 75 of file TGLAxisPainter.h.

◆ fLabelAlignH

TGLFont::ETextAlignH_e TGLAxisPainter::fLabelAlignH
protectedinherited

Definition at line 80 of file TGLAxisPainter.h.

◆ fLabelAlignV

TGLFont::ETextAlignV_e TGLAxisPainter::fLabelAlignV
protectedinherited

Definition at line 81 of file TGLAxisPainter.h.

◆ fLabelFont

TGLFont TGLAxisPainter::fLabelFont
privateinherited

Definition at line 51 of file TGLAxisPainter.h.

◆ fLabelPixelFontSize

Int_t TGLAxisPainter::fLabelPixelFontSize
protectedinherited

Definition at line 74 of file TGLAxisPainter.h.

◆ fLabVec

LabVec_t TGLAxisPainter::fLabVec
protectedinherited

Definition at line 62 of file TGLAxisPainter.h.

◆ fMaxDigits

Int_t TGLAxisPainter::fMaxDigits
privateinherited

Definition at line 46 of file TGLAxisPainter.h.

◆ fTitle3DFontSize

Double_t TGLAxisPainter::fTitle3DFontSize
protectedinherited

Definition at line 77 of file TGLAxisPainter.h.

◆ fTitleFont

TGLFont TGLAxisPainter::fTitleFont
privateinherited

Definition at line 52 of file TGLAxisPainter.h.

◆ fTitlePixelFontSize

Int_t TGLAxisPainter::fTitlePixelFontSize
protectedinherited

Definition at line 76 of file TGLAxisPainter.h.

◆ fTitlePos

TGLVector3 TGLAxisPainter::fTitlePos
protectedinherited

Definition at line 82 of file TGLAxisPainter.h.

◆ fTMNDim

Int_t TGLAxisPainter::fTMNDim
protectedinherited

Definition at line 71 of file TGLAxisPainter.h.

◆ fTMOff

TGLVector3 TGLAxisPainter::fTMOff[3]
protectedinherited

Definition at line 70 of file TGLAxisPainter.h.

◆ fTMVec

TMVec_t TGLAxisPainter::fTMVec
protectedinherited

Definition at line 63 of file TGLAxisPainter.h.

◆ fUseAxisColors

Bool_t TGLAxisPainter::fUseAxisColors
protectedinherited

Definition at line 60 of file TGLAxisPainter.h.


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