15#include "TGLIncludes.h"
54 if (ca_min == ca_max)
return;
58 glPushAttrib(GL_ENABLE_BIT | GL_POLYGON_BIT);
60 glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
61 glDisable(GL_CULL_FACE);
63 glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
67 glMatrixMode(GL_PROJECTION);
70 glOrtho(0, 1, 0, 1, 0, 1);
71 glMatrixMode(GL_MODELVIEW);
81 glPolygonOffset(0.5f, 0.5f);
83 glBegin(GL_QUAD_STRIP);
106 glTranslatef(-ca_min, 0, 0);
113 glBegin(GL_LINE_LOOP);
114 glVertex2f(0, 0); glVertex2f(
fWidth, 0);
118 glMatrixMode(GL_PROJECTION);
120 glMatrixMode(GL_MODELVIEW);
float Float_t
Float 4 bytes (float)
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
virtual void SetTickLength(Float_t length=0.03)
Set tick mark length.
virtual void SetNdivisions(Int_t n=510, Bool_t optim=kTRUE)
Set the number of divisions for this axis.
virtual void SetLimits(Double_t xmin, Double_t xmax)
void Render(TGLRnrCtx &rnrCtx) override
Render the overlay.
TEveRGBAPaletteOverlay(const TEveRGBAPaletteOverlay &)
TGLAxisPainter fAxisPainter
TEveRGBAPalette * fPalette
A generic, speed-optimised mapping from value to RGBA color supporting different wrapping and range t...
Double_t GetCAMaxAsDouble() const
Double_t GetCAMinAsDouble() const
const UChar_t * ColorFromValue(Int_t val) const
void SetLabelAlign(TGLFont::ETextAlignH_e, TGLFont::ETextAlignV_e)
Set label align.
void SetUseAxisColors(Bool_t x)
void SetLabelPixelFontSize(Int_t fs)
TGLVector3 & RefTMOff(Int_t i)
void SetFontMode(TGLFont::EMode m)
void PaintAxis(TGLRnrCtx &ctx, TAxis *ax)
GL render TAxis.
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
static void Color4ubv(const UChar_t *rgba)
Wrapper for glColor4ubv.
void Set(Double_t x, Double_t y, Double_t z)