1 #ifndef Fireworks_Core_FWMarkerDigitSetGL_h
2 #define Fireworks_Core_FWMarkerDigitSetGL_h
4 #include "TEveQuadSet.h"
5 #include "TEveQuadSetGL.h"
6 #include "TGLIncludes.h"
8 #include "TAttMarker.h"
28 glPushAttrib(GL_ENABLE_BIT | GL_POLYGON_BIT | GL_POINT_BIT);
29 glEnable(GL_POINT_SMOOTH);
30 glDisable(GL_LIGHTING);
32 TEveChunkManager::iterator qi(fM->GetPlex());
33 if (rnrCtx.Highlight() && fHighlightSet)
34 qi.fSelection = fHighlightSet;
36 if (rnrCtx.SecSelection()) glPushName(0);
40 TEveQuadSet::QFreeQuad_t*
q = (TEveQuadSet::QFreeQuad_t*) qi();
43 TGLUtil::ColorAlpha(Color_t(q->fValue));
44 if (rnrCtx.SecSelection()) glLoadName(qi.index());
45 float*
p = &q->fVertices[0];
47 float c[3] = {0.5f*(p[0]+p[6]), 0.5
f*(p[1]+p[7]), 0.5f*(p[2]+p[8])};
49 float d = p[6] - p[0];
50 glVertex3f( c[0] -d, c[1], c[2]); glVertex3f(c[0] + d, c[1], c[2]);
51 glVertex3f( c[0] , c[1] -d, c[2]); glVertex3f(c[0] , c[1] +d, c[2]);
52 glVertex3f( c[0] , c[1], c[2]-d); glVertex3f(c[0] , c[1], c[2] +d);
ClassDef(FWEveDigitSetScalableMarkerGL, 0)
virtual ~FWEveDigitSetScalableMarker()
virtual ~FWEveDigitSetScalableMarkerGL()
FWEveDigitSetScalableMarker()
virtual void DirectDraw(TGLRnrCtx &rnrCtx) const
FWEveDigitSetScalableMarkerGL()
ClassDef(FWEveDigitSetScalableMarker, 0)