55 if (ca_min == ca_max)
return;
59 glPushAttrib(GL_ENABLE_BIT | GL_POLYGON_BIT);
61 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
62 glDisable(GL_CULL_FACE);
64 glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
68 glMatrixMode(GL_PROJECTION);
71 glOrtho(0, 1, 0, 1, 0, 1);
72 glMatrixMode(GL_MODELVIEW);
82 glPolygonOffset(0.5
f, 0.5
f);
84 glBegin(GL_QUAD_STRIP);
107 glTranslatef(-ca_min, 0, 0);
114 glBegin(GL_LINE_LOOP);
115 glVertex2f(0, 0); glVertex2f(
fWidth, 0);
119 glMatrixMode(GL_PROJECTION);
121 glMatrixMode(GL_MODELVIEW);
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
TGLAxisPainter fAxisPainter
A generic, speed-optimised mapping from value to RGBA color supporting different wrapping and range t...
void SetUseAxisColors(Bool_t x)
virtual void SetLimits(Double_t xmin, Double_t xmax)
image html pict1_TGaxis_012 png width
Define new text attributes for the label number "labNum".
virtual void SetNdivisions(Int_t n=510, Bool_t optim=kTRUE)
Set the number of divisions for this axis.
Description of TEveRGBAPaletteOverlay.
void SetFontMode(TGLFont::EMode m)
void Set(Double_t x, Double_t y, Double_t z)
TGLVector3 & RefTMOff(Int_t i)
const UChar_t * ColorFromValue(Int_t val) const
virtual void Render(TGLRnrCtx &rnrCtx)
Render the overlay.
void PaintAxis(TGLRnrCtx &ctx, TAxis *ax)
GL render TAxis.
TEveRGBAPalette * fPalette
void SetLabelAlign(TGLFont::ETextAlignH_e, TGLFont::ETextAlignV_e)
Set label align.
TEveRGBAPaletteOverlay(const TEveRGBAPaletteOverlay &)
Double_t GetCAMaxAsDouble() const
void SetLabelPixelFontSize(Int_t fs)
virtual void SetTickLength(Float_t length=0.03)
Set tick mark length The length is expressed in per cent of the pad width.
Double_t GetCAMinAsDouble() const
static void Color4ubv(const UChar_t *rgba)
Wrapper for glColor4ubv.