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.");
Int_t GetFontFile() const
OpenGL renderer class for TEveText.
void SetAligned(const TGLVertex3 &lowVertex, const TGLVertex3 &highVertex)
Set ALIGNED box from two low/high vertices.
The TGLRnrCtx class aggregates data for a given redering context as needed by various parts of the RO...
virtual void PreRender(Bool_t autoLight=kTRUE, Bool_t lightOn=kFALSE) const
Set-up GL state before FTFont rendering.
void Render(const char *txt, Double_t x, Double_t y, Double_t angle, Double_t mgn) const
void UpdateBoundingBoxesOfPhysicals()
Update bounding-boxed of all dependent physicals.
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.
virtual void DirectDraw(TGLRnrCtx &rnrCtx) const
Actual rendering code.
Float_t GetExtrude() const
void RegisterFontNoScale(Int_t size, Int_t file, Int_t mode, TGLFont &out)
Get font in the GL rendering context.
static constexpr double mm
3 component (x/y/z) vertex class.
const char * GetText() const
Base-class for direct OpenGL renderers.
void RegisterFont(Int_t size, Int_t file, Int_t mode, TGLFont &out)
Get font in the GL rendering context.
Int_t GetFontMode() const
virtual Bool_t SetModel(TObject *obj, const Option_t *opt=0)
Set model object.
const Double_t * CArr() const
Float_t GetPolygonOffset(Int_t i) const
Bool_t GetLighting() const
void SetEmpty()
Set bounding box empty - all vertices at (0,0,0)
virtual void SetBBox()
Set bounding box.
Mother of all ROOT objects.
you should not use this method at all Int_t Int_t z
virtual void PostRender() const
Reset GL state after FTFont rendering.
Exception class thrown by TEve classes and macros.
TGLBoundingBox fBoundingBox
Also plays the role of ID.
Bool_t fDLCache
display-list validity bit-field
TGLMatrix & RefLastNoPickProjM() const
Bool_t GetAutoLighting() const
Int_t GetFontSize() const