ROOT
6.07/01
Reference Guide
|
Definition at line 29 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 |
Private Member Functions | |
TGLAxisPainter (const TGLAxisPainter &) | |
TGLAxisPainter & | operator= (const TGLAxisPainter &) |
void | LabelsLimits (const char *label, Int_t &first, Int_t &last) const |
Find first and last character of a label. More... | |
void | FormAxisValue (Double_t x, TString &s) const |
Returns formatted text suitable for display of value. More... | |
Private Attributes | |
Int_t | fExp |
Int_t | fMaxDigits |
Int_t | fDecimals |
TString | fFormat |
TGLFont | fLabelFont |
TGLFont | fTitleFont |
#include <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.
|
private |
TGLAxisPainter::TGLAxisPainter | ( | ) |
Definition at line 37 of file TGLAxisPainter.cxx.
|
virtual |
Destructor.
Definition at line 62 of file TGLAxisPainter.cxx.
TGLAxisPainter::ClassDef | ( | TGLAxisPainter | , |
0 | |||
) |
Returns formatted text suitable for display of value.
Definition at line 94 of file TGLAxisPainter.cxx.
Referenced by RnrLabels().
|
inline |
Definition at line 111 of file TGLAxisPainter.h.
|
inline |
Definition at line 93 of file TGLAxisPainter.h.
|
inline |
Definition at line 98 of file TGLAxisPainter.h.
Referenced by TEveCaloLegoGL::DrawAxis3D().
|
inline |
Definition at line 100 of file TGLAxisPainter.h.
|
inline |
Definition at line 87 of file TGLAxisPainter.h.
|
inline |
Definition at line 114 of file TGLAxisPainter.h.
Find first and last character of a label.
Definition at line 79 of file TGLAxisPainter.cxx.
|
private |
GL render TAxis.
Definition at line 327 of file TGLAxisPainter.cxx.
Referenced by TEveCaloLegoGL::DrawAxis2D(), TEveCaloLegoGL::DrawAxis3D(), TGLAxisPainterBox::DrawAxis3D(), TEveRGBAPaletteOverlay::Render(), TGLCameraOverlay::RenderAxis(), and TEveCaloLegoOverlay::RenderPlaneInterface().
|
inline |
Definition at line 90 of file TGLAxisPainter.h.
Referenced by TEveProjectionAxesGL::DirectDraw(), TEveCaloLegoGL::DrawAxis2D(), TEveCaloLegoGL::DrawAxis3D(), TGLAxisPainterBox::DrawAxis3D(), TGLCameraOverlay::RenderAxis(), TEveCaloLegoOverlay::RenderPaletteScales(), and TEveCaloLegoOverlay::RenderPlaneInterface().
|
inline |
Definition at line 107 of file TGLAxisPainter.h.
Referenced by TEveProjectionAxesGL::FilterOverlappingLabels(), TGLCameraOverlay::RenderAxis(), TEveCaloLegoOverlay::RenderPaletteScales(), TEveProjectionAxesGL::SplitInterval(), TEveProjectionAxesGL::SplitIntervalByPos(), and TEveProjectionAxesGL::SplitIntervalByVal().
|
inline |
Definition at line 102 of file TGLAxisPainter.h.
Referenced by TEveCaloLegoGL::DrawAxis2D(), TEveCaloLegoGL::DrawAxis3D(), and TGLAxisPainterBox::DrawAxis3D().
|
inline |
Definition at line 91 of file TGLAxisPainter.h.
Referenced by TEveProjectionAxesGL::DirectDraw(), TEveCaloLegoGL::DrawAxis2D(), TEveCaloLegoGL::DrawAxis3D(), TGLAxisPainterBox::DrawAxis3D(), TEveRGBAPaletteOverlay::Render(), TGLCameraOverlay::RenderAxis(), and TEveCaloLegoOverlay::RenderPlaneInterface().
|
inline |
Definition at line 108 of file TGLAxisPainter.h.
Referenced by TEveProjectionAxesGL::DirectDraw(), TEveProjectionAxesGL::SplitInterval(), TEveProjectionAxesGL::SplitIntervalByPos(), and TEveProjectionAxesGL::SplitIntervalByVal().
void TGLAxisPainter::RnrLabels | ( | ) | const |
Render label reading prepared list ov value-pos pairs.
Definition at line 233 of file TGLAxisPainter.cxx.
Referenced by TEveProjectionAxesGL::DirectDraw(), PaintAxis(), TGLCameraOverlay::RenderAxis(), and TEveCaloLegoOverlay::RenderPaletteScales().
void TGLAxisPainter::RnrLines | ( | ) | const |
Render axis main line and tick-marks.
Definition at line 285 of file TGLAxisPainter.cxx.
Referenced by TEveProjectionAxesGL::DirectDraw(), PaintAxis(), and TGLCameraOverlay::RenderAxis().
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 200 of file TGLAxisPainter.cxx.
Referenced by RnrLabels(), and RnrTitle().
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 271 of file TGLAxisPainter.cxx.
Referenced by PaintAxis().
Definition at line 110 of file TGLAxisPainter.h.
Referenced by TEveCaloLegoGL::DrawAxis2D(), TGLCameraOverlay::RenderAxis(), TEveCaloLegoOverlay::RenderPaletteScales(), and TEveProjectionAxesGL::SetModel().
|
inline |
Definition at line 94 of file TGLAxisPainter.h.
Referenced by TF2GL::DirectDraw(), TH2GL::DirectDraw(), TH3GL::DirectDraw(), TEveProjectionAxesGL::DirectDraw(), TEveCaloLegoGL::TEveCaloLegoGL(), TEveRGBAPaletteOverlay::TEveRGBAPaletteOverlay(), and TGLCameraOverlay::TGLCameraOverlay().
void TGLAxisPainter::SetLabelAlign | ( | TGLFont::ETextAlignH_e | h, |
TGLFont::ETextAlignV_e | v | ||
) |
Set label align.
Definition at line 70 of file TGLAxisPainter.cxx.
Referenced by TEveProjectionAxesGL::DirectDraw(), TEveCaloLegoGL::DrawAxis2D(), TEveCaloLegoGL::DrawAxis3D(), TGLAxisPainterBox::DrawAxis3D(), TGLCameraOverlay::RenderAxis(), TEveCaloLegoOverlay::RenderPaletteScales(), TEveCaloLegoOverlay::RenderPlaneInterface(), and TEveRGBAPaletteOverlay::TEveRGBAPaletteOverlay().
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 223 of file TGLAxisPainter.cxx.
Referenced by TEveProjectionAxesGL::DirectDraw(), PaintAxis(), and TEveCaloLegoOverlay::RenderPaletteScales().
Definition at line 97 of file TGLAxisPainter.h.
Referenced by TEveCaloLegoGL::DrawAxis2D(), TEveCaloLegoGL::DrawAxis3D(), TGLAxisPainterBox::DrawAxis3D(), TGLCameraOverlay::RenderAxis(), TEveCaloLegoOverlay::RenderPlaneInterface(), and TEveRGBAPaletteOverlay::TEveRGBAPaletteOverlay().
Construct print format from given primary bin width.
Definition at line 119 of file TGLAxisPainter.cxx.
Referenced by TEveProjectionAxesGL::FilterOverlappingLabels(), PaintAxis(), and TEveCaloLegoOverlay::RenderPaletteScales().
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 260 of file TGLAxisPainter.cxx.
Referenced by PaintAxis().
Definition at line 99 of file TGLAxisPainter.h.
Referenced by TEveCaloLegoGL::DrawAxis2D(), TEveCaloLegoGL::DrawAxis3D(), and TGLAxisPainterBox::DrawAxis3D().
Definition at line 88 of file TGLAxisPainter.h.
Referenced by TEveCaloLegoGL::DrawAxis2D(), TEveCaloLegoGL::DrawAxis3D(), and TGLAxisPainterBox::DrawAxis3D().
Definition at line 113 of file TGLAxisPainter.h.
Referenced by TF2GL::DirectDraw(), TH2GL::DirectDraw(), TH3GL::DirectDraw(), TEveProjectionAxesGL::DirectDraw(), TGLCameraOverlay::RenderAxis(), TEveRGBAPaletteOverlay::TEveRGBAPaletteOverlay(), and TGLCameraOverlay::TGLCameraOverlay().
|
protected |
Definition at line 80 of file TGLAxisPainter.h.
Referenced by FormAxisValue(), TGLAxisPainter(), and ~TGLAxisPainter().
|
protected |
Definition at line 56 of file TGLAxisPainter.h.
Referenced by GetAttAxis(), PaintAxis(), RnrLabels(), RnrLines(), RnrTitle(), and SetAttAxis().
|
private |
Definition at line 44 of file TGLAxisPainter.h.
Referenced by FormAxisValue(), and SetTextFormat().
|
protected |
Definition at line 66 of file TGLAxisPainter.h.
Referenced by PaintAxis(), RefDir(), RnrLabels(), and RnrLines().
|
private |
Definition at line 42 of file TGLAxisPainter.h.
Referenced by RnrTitle(), and SetTextFormat().
|
protected |
Definition at line 58 of file TGLAxisPainter.h.
Referenced by GetFontMode(), PaintAxis(), RnrText(), SetFontMode(), SetLabelFont(), and SetTitleFont().
|
private |
Definition at line 45 of file TGLAxisPainter.h.
Referenced by FormAxisValue(), and SetTextFormat().
|
protected |
Definition at line 72 of file TGLAxisPainter.h.
Referenced by RnrText(), and SetLabelFont().
|
protected |
Definition at line 77 of file TGLAxisPainter.h.
Referenced by PaintAxis(), RnrLabels(), and SetLabelAlign().
|
protected |
Definition at line 78 of file TGLAxisPainter.h.
Referenced by PaintAxis(), RnrLabels(), and SetLabelAlign().
|
private |
Definition at line 48 of file TGLAxisPainter.h.
Referenced by RnrLabels(), and SetLabelFont().
|
protected |
Definition at line 71 of file TGLAxisPainter.h.
Referenced by GetLabelPixelFontSize(), PaintAxis(), RnrText(), SetLabelFont(), and SetLabelPixelFontSize().
|
protected |
Definition at line 59 of file TGLAxisPainter.h.
Referenced by PaintAxis(), RefLabVec(), and RnrLabels().
|
private |
Definition at line 43 of file TGLAxisPainter.h.
Referenced by SetTextFormat().
|
protected |
Definition at line 74 of file TGLAxisPainter.h.
Referenced by SetTitleFont().
|
private |
Definition at line 49 of file TGLAxisPainter.h.
Referenced by RnrTitle(), and SetTitleFont().
|
protected |
Definition at line 73 of file TGLAxisPainter.h.
Referenced by GetTitlePixelFontSize(), PaintAxis(), SetTitleFont(), and SetTitlePixelFontSize().
|
protected |
Definition at line 79 of file TGLAxisPainter.h.
Referenced by PaintAxis(), and RefTitlePos().
|
protected |
Definition at line 68 of file TGLAxisPainter.h.
Referenced by GetTMNDim(), RnrLines(), and SetTMNDim().
|
protected |
Definition at line 67 of file TGLAxisPainter.h.
Referenced by RefTMOff(), RnrLabels(), and RnrLines().
|
protected |
Definition at line 60 of file TGLAxisPainter.h.
Referenced by PaintAxis(), RefTMVec(), and RnrLines().
|
protected |
Definition at line 57 of file TGLAxisPainter.h.
Referenced by GetUseAxisColors(), PaintAxis(), RnrLabels(), RnrLines(), RnrTitle(), and SetUseAxisColors().