#include <TGLAxisPainter.h>
Inheritance diagram for TGLAxisPainter:
Definition at line 29 of file TGLAxisPainter.h.
typedef std::pair<Float_t, Float_t> TGLAxisPainter::Lab_t |
Definition at line 32 of file TGLAxisPainter.h.
typedef std::vector<Lab_t> TGLAxisPainter::LabVec_t |
Definition at line 33 of file TGLAxisPainter.h.
typedef std::pair<Float_t, Int_t> TGLAxisPainter::TM_t |
Definition at line 34 of file TGLAxisPainter.h.
typedef std::vector<TM_t> TGLAxisPainter::TMVec_t |
Definition at line 35 of file TGLAxisPainter.h.
typedef std::pair<Float_t, Float_t> TGLAxisPainter::Lab_t |
Definition at line 32 of file TGLAxisPainter.h.
typedef std::vector<Lab_t> TGLAxisPainter::LabVec_t |
Definition at line 33 of file TGLAxisPainter.h.
typedef std::pair<Float_t, Int_t> TGLAxisPainter::TM_t |
Definition at line 34 of file TGLAxisPainter.h.
typedef std::vector<TM_t> TGLAxisPainter::TMVec_t |
Definition at line 35 of file TGLAxisPainter.h.
TGLAxisPainter::TGLAxisPainter | ( | const TGLAxisPainter & | ) | [private] |
TGLAxisPainter::TGLAxisPainter | ( | ) |
TGLAxisPainter::~TGLAxisPainter | ( | ) | [virtual] |
TGLAxisPainter::TGLAxisPainter | ( | const TGLAxisPainter & | ) | [private] |
TGLAxisPainter::TGLAxisPainter | ( | ) |
virtual TGLAxisPainter::~TGLAxisPainter | ( | ) | [virtual] |
TGLAxisPainter& TGLAxisPainter::operator= | ( | const TGLAxisPainter & | ) | [private] |
Definition at line 95 of file TGLAxisPainter.cxx.
References fAllZeroesRE, fDecimals, fFormat, kFALSE, TString::kLeading, s, and TPMERegexp::Substitute().
Referenced by RnrLabels().
Int_t TGLAxisPainter::GetTMNDim | ( | ) | const [inline] |
void TGLAxisPainter::SetTMNDim | ( | Int_t | x | ) | [inline] |
Definition at line 88 of file TGLAxisPainter.h.
References fTMNDim.
Referenced by TEveCaloLegoGL::DrawAxis2D(), TEveCaloLegoGL::DrawAxis3D(), and TGLAxisPainterBox::DrawAxis3D().
TGLVector3& TGLAxisPainter::RefDir | ( | ) | [inline] |
Definition at line 90 of file TGLAxisPainter.h.
References fDir.
Referenced by TEveProjectionAxesGL::DirectDraw(), TEveCaloLegoGL::DrawAxis2D(), TEveCaloLegoGL::DrawAxis3D(), TGLAxisPainterBox::DrawAxis3D(), TGLCameraOverlay::RenderAxis(), TEveCaloLegoOverlay::RenderPaletteScales(), and TEveCaloLegoOverlay::RenderPlaneInterface().
TGLVector3& TGLAxisPainter::RefTMOff | ( | Int_t | i | ) | [inline] |
Definition at line 91 of file TGLAxisPainter.h.
References fTMOff.
Referenced by TEveProjectionAxesGL::DirectDraw(), TEveCaloLegoGL::DrawAxis2D(), TEveCaloLegoGL::DrawAxis3D(), TGLAxisPainterBox::DrawAxis3D(), TGLCameraOverlay::RenderAxis(), and TEveCaloLegoOverlay::RenderPlaneInterface().
TGLFont::EMode TGLAxisPainter::GetFontMode | ( | ) | const [inline] |
void TGLAxisPainter::SetFontMode | ( | TGLFont::EMode | m | ) | [inline] |
Definition at line 94 of file TGLAxisPainter.h.
References fFontMode.
Referenced by TEveProjectionAxesGL::DirectDraw(), TF2GL::DirectDraw(), TH3GL::DirectDraw(), TH2GL::DirectDraw(), TEveCaloLegoGL::TEveCaloLegoGL(), and TGLCameraOverlay::TGLCameraOverlay().
void TGLAxisPainter::SetLabelPixelFontSize | ( | Int_t | fs | ) | [inline] |
Definition at line 97 of file TGLAxisPainter.h.
References fLabelPixelFontSize.
Referenced by TEveCaloLegoGL::DrawAxis2D(), TEveCaloLegoGL::DrawAxis3D(), TGLAxisPainterBox::DrawAxis3D(), TGLCameraOverlay::RenderAxis(), and TEveCaloLegoOverlay::RenderPlaneInterface().
Int_t TGLAxisPainter::GetLabelPixelFontSize | ( | ) | const [inline] |
void TGLAxisPainter::SetTitlePixelFontSize | ( | Int_t | fs | ) | [inline] |
Definition at line 99 of file TGLAxisPainter.h.
References fTitlePixelFontSize.
Referenced by TEveCaloLegoGL::DrawAxis2D(), TEveCaloLegoGL::DrawAxis3D(), and TGLAxisPainterBox::DrawAxis3D().
Int_t TGLAxisPainter::GetTitlePixelFontSize | ( | ) | const [inline] |
TGLVector3& TGLAxisPainter::RefTitlePos | ( | ) | [inline] |
Definition at line 102 of file TGLAxisPainter.h.
References fTitlePos.
Referenced by TEveCaloLegoGL::DrawAxis2D(), TEveCaloLegoGL::DrawAxis3D(), and TGLAxisPainterBox::DrawAxis3D().
void TGLAxisPainter::SetLabelAlign | ( | TGLFont::ETextAlignH_e | , | |
TGLFont::ETextAlignV_e | ||||
) |
Definition at line 71 of file TGLAxisPainter.cxx.
References fLabelAlignH, and fLabelAlignV.
Referenced by TEveProjectionAxesGL::DirectDraw(), TEveCaloLegoGL::DrawAxis2D(), TEveCaloLegoGL::DrawAxis3D(), TGLAxisPainterBox::DrawAxis3D(), TGLCameraOverlay::RenderAxis(), TEveCaloLegoOverlay::RenderPaletteScales(), and TEveCaloLegoOverlay::RenderPlaneInterface().
LabVec_t& TGLAxisPainter::RefLabVec | ( | ) | [inline] |
Definition at line 107 of file TGLAxisPainter.h.
References fLabVec.
Referenced by TEveProjectionAxesGL::FilterOverlappingLabels(), TGLCameraOverlay::RenderAxis(), TEveCaloLegoOverlay::RenderPaletteScales(), TEveProjectionAxesGL::SplitInterval(), TEveProjectionAxesGL::SplitIntervalByPos(), and TEveProjectionAxesGL::SplitIntervalByVal().
TMVec_t& TGLAxisPainter::RefTMVec | ( | ) | [inline] |
Definition at line 108 of file TGLAxisPainter.h.
References fTMVec.
Referenced by TEveProjectionAxesGL::SplitInterval(), TEveProjectionAxesGL::SplitIntervalByPos(), and TEveProjectionAxesGL::SplitIntervalByVal().
void TGLAxisPainter::SetAttAxis | ( | TAttAxis * | a | ) | [inline] |
Definition at line 110 of file TGLAxisPainter.h.
Referenced by TEveCaloLegoGL::DrawAxis2D(), TGLCameraOverlay::RenderAxis(), TEveCaloLegoOverlay::RenderPaletteScales(), and TEveProjectionAxesGL::SetModel().
TAttAxis* TGLAxisPainter::GetAttAxis | ( | ) | [inline] |
void TGLAxisPainter::SetUseAxisColors | ( | Bool_t | x | ) | [inline] |
Definition at line 113 of file TGLAxisPainter.h.
References fUseAxisColors.
Referenced by TEveProjectionAxesGL::DirectDraw(), TF2GL::DirectDraw(), TH3GL::DirectDraw(), TH2GL::DirectDraw(), TGLCameraOverlay::RenderAxis(), and TGLCameraOverlay::TGLCameraOverlay().
Bool_t TGLAxisPainter::GetUseAxisColors | ( | ) | const [inline] |
void TGLAxisPainter::SetLabelFont | ( | TGLRnrCtx & | rnrCtx, | |
const char * | fontName, | |||
Int_t | pixelSize = 64 , |
|||
Double_t | font3DSize = -1 | |||
) |
Definition at line 230 of file TGLAxisPainter.cxx.
References fFontMode, fLabel3DFontSize, fLabelFont, fLabelPixelFontSize, TGLFont::GetSize(), and TGLRnrCtx::RegisterFontNoScale().
Referenced by TEveProjectionAxesGL::DirectDraw(), PaintAxis(), and TEveCaloLegoOverlay::RenderPaletteScales().
void TGLAxisPainter::SetTitleFont | ( | TGLRnrCtx & | rnrCtx, | |
const char * | fontName, | |||
Int_t | pixelSize = 64 , |
|||
Double_t | font3DSize = -1 | |||
) |
Definition at line 267 of file TGLAxisPainter.cxx.
References fFontMode, fTitle3DFontSize, fTitleFont, fTitlePixelFontSize, TGLFont::GetSize(), and TGLRnrCtx::RegisterFontNoScale().
Referenced by PaintAxis().
Definition at line 120 of file TGLAxisPainter.cxx.
References TMath::Abs(), RootCsg::epsilon, fDecimals, fExp, fFormat, TString::First(), fMaxDigits, TString::Form(), i, kNPOS, TString::Length(), TMath::Log10(), TMath::Max(), TMath::Min(), TMath::Power(), TMath::Sign(), and size.
Referenced by TEveProjectionAxesGL::FilterOverlappingLabels(), PaintAxis(), and TEveCaloLegoOverlay::RenderPaletteScales().
void TGLAxisPainter::RnrText | ( | const TString & | txt, | |
const TGLVector3 & | pos, | |||
TGLFont::ETextAlignH_e | aH, | |||
TGLFont::ETextAlignV_e | aV, | |||
const TGLFont & | font | |||
) | const |
Definition at line 207 of file TGLAxisPainter.cxx.
References fFontMode, fLabel3DFontSize, fLabelPixelFontSize, glPopMatrix(), glPushMatrix(), glScaled(), glTranslated(), TGLFont::kBitmap, TGLFont::kPixmap, p, and TGLFont::Render().
Referenced by RnrLabels(), and RnrTitle().
void TGLAxisPainter::RnrTitle | ( | const TString & | title, | |
TGLVector3 & | pos, | |||
TGLFont::ETextAlignH_e | aH, | |||
TGLFont::ETextAlignV_e | aV | |||
) | const |
Definition at line 278 of file TGLAxisPainter.cxx.
References TGLUtil::Color(), TString::Data(), fAttAxis, fExp, Form(), fTitleFont, fUseAxisColors, TAttAxis::GetTitleColor(), TGLFont::PostRender(), TGLFont::PreRender(), RnrText(), and title.
Referenced by PaintAxis().
void TGLAxisPainter::RnrLabels | ( | ) | const |
Definition at line 240 of file TGLAxisPainter.cxx.
References TGLUtil::Color(), fAttAxis, fDir, fLabelAlignH, fLabelAlignV, fLabelFont, fLabVec, FormAxisValue(), fTMOff, fUseAxisColors, TAttAxis::GetLabelColor(), TAttAxis::GetLabelOffset(), TAttAxis::GetTickLength(), glPopMatrix(), glPushMatrix(), glTranslated(), p, TGLFont::PostRender(), TGLFont::PreRender(), RnrText(), s, TGLVertex3::X(), TGLVertex3::Y(), and TGLVertex3::Z().
Referenced by TEveProjectionAxesGL::DirectDraw(), PaintAxis(), TGLCameraOverlay::RenderAxis(), and TEveCaloLegoOverlay::RenderPaletteScales().
void TGLAxisPainter::RnrLines | ( | ) | const |
Definition at line 292 of file TGLAxisPainter.cxx.
References TGLVertex3::Arr(), TGLUtil::Color(), fAttAxis, fDir, for(), fTMNDim, fTMOff, fTMVec, fUseAxisColors, TAttAxis::GetAxisColor(), TAttAxis::GetTickLength(), GL_LINES, glBegin(), glEnd(), glVertex3dv(), TGLUtil::LineWidth(), max, min, start, and t.
Referenced by TEveProjectionAxesGL::DirectDraw(), PaintAxis(), and TGLCameraOverlay::RenderAxis().
Definition at line 334 of file TGLAxisPainter.cxx.
References TGLUtil::Color(), Error, fAttAxis, fDir, fFontMode, fLabelAlignH, fLabelAlignV, fLabelPixelFontSize, fLabVec, TMath::FloorNint(), fTitlePixelFontSize, fTitlePos, fTMVec, fUseAxisColors, TGLFontManager::GetFontNameFromId(), TAttAxis::GetLabelFont(), TAttAxis::GetLabelSize(), TAttAxis::GetNdivisions(), TAxis::GetTitle(), TAttAxis::GetTitleFont(), TAttAxis::GetTitleSize(), TAxis::GetXmax(), TAxis::GetXmin(), GL_LIGHTING, GL_MODELVIEW_MATRIX, GL_PROJECTION_MATRIX, GL_VIEWPORT, glDisable(), glGetDoublev(), glGetIntegerv(), i, TGLFont::kPolygon, TGLFont::kTexture, len, max, min, TMath::Nint(), THLimitsFinder::Optimize(), p, RnrLabels(), RnrLines(), RnrTitle(), SetLabelFont(), SetTextFormat(), SetTitleFont(), TMath::Sqrt(), v1, vp, TGLVertex3::X(), TGLVertex3::Y(), and TGLVertex3::Z().
Referenced by TEveCaloLegoGL::DrawAxis2D(), TEveCaloLegoGL::DrawAxis3D(), TGLAxisPainterBox::DrawAxis3D(), TGLCameraOverlay::RenderAxis(), and TEveCaloLegoOverlay::RenderPlaneInterface().
TGLAxisPainter::ClassDef | ( | TGLAxisPainter | , | |
0 | ||||
) |
TGLAxisPainter& TGLAxisPainter::operator= | ( | const TGLAxisPainter & | ) | [private] |
void TGLAxisPainter::LabelsLimits | ( | const char * | label, | |
Int_t & | first, | |||
Int_t & | last | |||
) | const [private] |
Int_t TGLAxisPainter::GetTMNDim | ( | ) | const [inline] |
void TGLAxisPainter::SetTMNDim | ( | Int_t | x | ) | [inline] |
TGLVector3& TGLAxisPainter::RefDir | ( | ) | [inline] |
TGLVector3& TGLAxisPainter::RefTMOff | ( | Int_t | i | ) | [inline] |
TGLFont::EMode TGLAxisPainter::GetFontMode | ( | ) | const [inline] |
void TGLAxisPainter::SetFontMode | ( | TGLFont::EMode | m | ) | [inline] |
void TGLAxisPainter::SetLabelPixelFontSize | ( | Int_t | fs | ) | [inline] |
Int_t TGLAxisPainter::GetLabelPixelFontSize | ( | ) | const [inline] |
void TGLAxisPainter::SetTitlePixelFontSize | ( | Int_t | fs | ) | [inline] |
Int_t TGLAxisPainter::GetTitlePixelFontSize | ( | ) | const [inline] |
TGLVector3& TGLAxisPainter::RefTitlePos | ( | ) | [inline] |
void TGLAxisPainter::SetLabelAlign | ( | TGLFont::ETextAlignH_e | , | |
TGLFont::ETextAlignV_e | ||||
) |
LabVec_t& TGLAxisPainter::RefLabVec | ( | ) | [inline] |
TMVec_t& TGLAxisPainter::RefTMVec | ( | ) | [inline] |
void TGLAxisPainter::SetAttAxis | ( | TAttAxis * | a | ) | [inline] |
TAttAxis* TGLAxisPainter::GetAttAxis | ( | ) | [inline] |
void TGLAxisPainter::SetUseAxisColors | ( | Bool_t | x | ) | [inline] |
Bool_t TGLAxisPainter::GetUseAxisColors | ( | ) | const [inline] |
void TGLAxisPainter::SetLabelFont | ( | TGLRnrCtx & | rnrCtx, | |
const char * | fontName, | |||
Int_t | pixelSize = 64 , |
|||
Double_t | font3DSize = -1 | |||
) |
void TGLAxisPainter::SetTitleFont | ( | TGLRnrCtx & | rnrCtx, | |
const char * | fontName, | |||
Int_t | pixelSize = 64 , |
|||
Double_t | font3DSize = -1 | |||
) |
void TGLAxisPainter::RnrText | ( | const TString & | txt, | |
const TGLVector3 & | pos, | |||
TGLFont::ETextAlignH_e | aH, | |||
TGLFont::ETextAlignV_e | aV, | |||
const TGLFont & | font | |||
) | const |
void TGLAxisPainter::RnrTitle | ( | const TString & | title, | |
TGLVector3 & | pos, | |||
TGLFont::ETextAlignH_e | aH, | |||
TGLFont::ETextAlignV_e | aV | |||
) | const |
void TGLAxisPainter::RnrLabels | ( | ) | const |
void TGLAxisPainter::RnrLines | ( | ) | const |
TGLAxisPainter::ClassDef | ( | TGLAxisPainter | , | |
0 | ||||
) |
Int_t TGLAxisPainter::fExp [private] |
Int_t TGLAxisPainter::fMaxDigits [private] |
Int_t TGLAxisPainter::fDecimals [private] |
TString TGLAxisPainter::fFormat [private] |
TGLFont TGLAxisPainter::fLabelFont [private] |
TGLFont TGLAxisPainter::fTitleFont [private] |
TAttAxis* TGLAxisPainter::fAttAxis [protected] |
Definition at line 56 of file TGLAxisPainter.h.
Referenced by GetAttAxis(), PaintAxis(), RnrLabels(), RnrLines(), RnrTitle(), and SetAttAxis().
Bool_t TGLAxisPainter::fUseAxisColors [protected] |
Definition at line 57 of file TGLAxisPainter.h.
Referenced by GetUseAxisColors(), PaintAxis(), RnrLabels(), RnrLines(), RnrTitle(), and SetUseAxisColors().
TGLFont::EMode TGLAxisPainter::fFontMode [protected] |
Definition at line 58 of file TGLAxisPainter.h.
Referenced by GetFontMode(), PaintAxis(), RnrText(), SetFontMode(), SetLabelFont(), and SetTitleFont().
LabVec_t TGLAxisPainter::fLabVec [protected] |
Definition at line 59 of file TGLAxisPainter.h.
Referenced by PaintAxis(), RefLabVec(), and RnrLabels().
TMVec_t TGLAxisPainter::fTMVec [protected] |
Definition at line 60 of file TGLAxisPainter.h.
Referenced by PaintAxis(), RefTMVec(), and RnrLines().
TGLVector3 TGLAxisPainter::fDir [protected] |
Definition at line 66 of file TGLAxisPainter.h.
Referenced by PaintAxis(), RefDir(), RnrLabels(), and RnrLines().
TGLVector3 TGLAxisPainter::fTMOff [protected] |
Definition at line 67 of file TGLAxisPainter.h.
Referenced by RefTMOff(), RnrLabels(), and RnrLines().
Int_t TGLAxisPainter::fTMNDim [protected] |
Definition at line 68 of file TGLAxisPainter.h.
Referenced by GetTMNDim(), RnrLines(), and SetTMNDim().
Int_t TGLAxisPainter::fLabelPixelFontSize [protected] |
Definition at line 71 of file TGLAxisPainter.h.
Referenced by GetLabelPixelFontSize(), PaintAxis(), RnrText(), SetLabelFont(), and SetLabelPixelFontSize().
Double_t TGLAxisPainter::fLabel3DFontSize [protected] |
Int_t TGLAxisPainter::fTitlePixelFontSize [protected] |
Definition at line 73 of file TGLAxisPainter.h.
Referenced by GetTitlePixelFontSize(), PaintAxis(), SetTitleFont(), and SetTitlePixelFontSize().
Double_t TGLAxisPainter::fTitle3DFontSize [protected] |
TGLFont::ETextAlignH_e TGLAxisPainter::fLabelAlignH [protected] |
Definition at line 77 of file TGLAxisPainter.h.
Referenced by PaintAxis(), RnrLabels(), and SetLabelAlign().
TGLFont::ETextAlignV_e TGLAxisPainter::fLabelAlignV [protected] |
Definition at line 78 of file TGLAxisPainter.h.
Referenced by PaintAxis(), RnrLabels(), and SetLabelAlign().
TGLVector3 TGLAxisPainter::fTitlePos [protected] |
TPMERegexp* TGLAxisPainter::fAllZeroesRE [protected] |
Definition at line 80 of file TGLAxisPainter.h.
Referenced by FormAxisValue(), TGLAxisPainter(), and ~TGLAxisPainter().
TAttAxis* TGLAxisPainter::fAttAxis [protected] |
Definition at line 56 of file TGLAxisPainter.h.
TPMERegexp* TGLAxisPainter::fAllZeroesRE [protected] |
Definition at line 80 of file TGLAxisPainter.h.