16#include "TGLIncludes.h"
36 fSelAxis(-1), fInDrag(
kFALSE)
115 glTranslatef(-1.0f, -1.0f, 0.0f);
116 glScalef(2.0f, 2.0f, -2.0f);
121 glScalef(1.0f / aspect, 1.0f, 1.0f);
123 glScalef(1.0f, aspect, 1.0f);
126 glGetFloatv(GL_DEPTH_RANGE, dr);
127 glDepthRange(0, 0.01);
157 glDepthRange(dr[0], dr[1]);
Draws arrows showing camera orientation in the overlay.
void Render(TGLRnrCtx &rnrCtx) override
Render the camera axis arrows.
Bool_t MouseEnter(TGLOvlSelectRecord &selRec) override
Mouse has entered overlay area.
void MouseLeave() override
Mouse has left overlay area.
TGLCameraGuide(const TGLCameraGuide &)
Bool_t Handle(TGLRnrCtx &rnrCtx, TGLOvlSelectRecord &selRec, Event_t *event) override
Handle overlay event.
const TGLMatrix & RefModelViewMatrix() const
const UChar_t * CArr() const
16 component (4x4) transform matrix - column MAJOR as per GL.
TGLVector3 GetBaseVec(Int_t b) const
Selection record for overlay objects.
Viewport (pixel base) 2D rectangle class.
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
TGLColorSet & ColorSet()
Return reference to current color-set (top of the stack).
void ProjectionMatrixPushIdentity()
void ProjectionMatrixPop()
UInt_t GetItem(Int_t i) const
static void DrawSphere(const TGLVertex3 &position, Double_t radius, const UChar_t rgba[4])
Draw sphere, centered on vertex 'position', with radius 'radius', color 'rgba'.
static const UChar_t fgRed[4]
static void DrawLine(const TGLLine3 &line, ELineHeadShape head, Double_t size, const UChar_t rgba[4])
Draw thick line (tube) defined by 'line', with head at end shape 'head' - box/arrow/none,...
static const UChar_t fgBlue[4]
static const UChar_t fgGreen[4]
static const UChar_t fgYellow[4]
3 component (x/y/z) vector class.
3 component (x/y/z) vertex class.
Short_t Range(Short_t lb, Short_t ub, Short_t x)
Returns x if lb < x < up, lb if x < lb and ub if x > ub.