18#include "TGLIncludes.h"
44 fM = SetModelDynCast<TEveText>(obj);
77 bbox[3], bbox[4], bbox[5]);
85 bbox[2] = -0.005*(bbox[4] - bbox[1]);
86 bbox[5] = -0.005*(bbox[4] - bbox[1]);
109 glGetDoublev(GL_MODELVIEW_MATRIX, mm);
110 glGetIntegerv(GL_VIEWPORT, vp);
112 fX[0][0] =
fX[0][1] =
fX[0][2] = 0;
114 gluProject(
fX[0][0],
fX[0][1],
fX[0][2], mm, pm, vp, &
x, &
y, &z);
117 bbox[3], bbox[4], bbox[5]);
118 gluUnProject(
x + bbox[0],
y + bbox[1], z, mm, pm, vp, &
fX[0][0], &
fX[0][1], &
fX[0][2]);
119 gluUnProject(
x + bbox[3],
y + bbox[1], z, mm, pm, vp, &
fX[1][0], &
fX[1][1], &
fX[1][2]);
120 gluUnProject(
x + bbox[3],
y + bbox[4], z, mm, pm, vp, &
fX[2][0], &
fX[2][1], &
fX[2][2]);
121 gluUnProject(
x + bbox[0],
y + bbox[4], z, mm, pm, vp, &
fX[3][0], &
fX[3][1], &
fX[3][2]);
130 glRasterPos3i(0, 0, 0);
152 throw(eH +
"unsupported FTGL-type.");
Exception class thrown by TEve classes and macros.
OpenGL renderer class for TEveText.
virtual Bool_t SetModel(TObject *obj, const Option_t *opt=0)
Set model object.
virtual void SetBBox()
Set bounding box.
virtual void DirectDraw(TGLRnrCtx &rnrCtx) const
Actual rendering code.
Float_t GetExtrude() const
const char * GetText() const
Bool_t GetAutoLighting() const
Bool_t GetLighting() const
Int_t GetFontSize() const
Float_t GetPolygonOffset(Int_t i) const
Int_t GetFontFile() const
Int_t GetFontMode() const
void SetEmpty()
Set bounding box empty - all vertices at (0,0,0)
void SetAligned(const TGLVertex3 &lowVertex, const TGLVertex3 &highVertex)
Set ALIGNED box from two low/high vertices.
TGLMatrix & RefLastNoPickProjM() const
void BBox(const char *txt, Float_t &llx, Float_t &lly, Float_t &llz, Float_t &urx, Float_t &ury, Float_t &urz) const
Get bounding box.
void Render(const char *txt, Double_t x, Double_t y, Double_t angle, Double_t mgn) const
virtual void PostRender() const
Reset GL state after FTFont rendering.
virtual void PreRender(Bool_t autoLight=kTRUE, Bool_t lightOn=kFALSE) const
Set-up GL state before FTFont rendering.
TGLBoundingBox fBoundingBox
Also plays the role of ID.
void UpdateBoundingBoxesOfPhysicals()
Update bounding-boxed of all dependent physicals.
Bool_t fDLCache
display-list validity bit-field
const Double_t * CArr() const
Base-class for direct OpenGL renderers.
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
void RegisterFontNoScale(Int_t size, Int_t file, Int_t mode, TGLFont &out)
Get font in the GL rendering context.
void RegisterFont(Int_t size, Int_t file, Int_t mode, TGLFont &out)
Get font in the GL rendering context.
3 component (x/y/z) vertex class.
Mother of all ROOT objects.