CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
FWEveDigitSetScalableMarkerGL Class Reference

#include <FWEveDigitSetScalableMarker.h>

Inheritance diagram for FWEveDigitSetScalableMarkerGL:

Public Member Functions

 ClassDef (FWEveDigitSetScalableMarkerGL, 0)
 
void DirectDraw (TGLRnrCtx &rnrCtx) const
 
 FWEveDigitSetScalableMarkerGL ()
 
virtual ~FWEveDigitSetScalableMarkerGL ()
 

Detailed Description

Definition at line 19 of file FWEveDigitSetScalableMarker.h.

Constructor & Destructor Documentation

FWEveDigitSetScalableMarkerGL::FWEveDigitSetScalableMarkerGL ( )
inline

Definition at line 22 of file FWEveDigitSetScalableMarker.h.

22 {}
virtual FWEveDigitSetScalableMarkerGL::~FWEveDigitSetScalableMarkerGL ( )
inlinevirtual

Definition at line 23 of file FWEveDigitSetScalableMarker.h.

23 {}

Member Function Documentation

FWEveDigitSetScalableMarkerGL::ClassDef ( FWEveDigitSetScalableMarkerGL  ,
 
)
void FWEveDigitSetScalableMarkerGL::DirectDraw ( TGLRnrCtx &  rnrCtx) const

Definition at line 5 of file FWEveDigitSetScalableMarker.cc.

References trackerHits::c, f, reco::if(), AlCaHLTBitMon_ParallelJobs::p, and lumiQueryAPI::q.

6 {
7  glPushAttrib(GL_ENABLE_BIT | GL_POLYGON_BIT | GL_POINT_BIT);
8  glEnable(GL_POINT_SMOOTH);
9  glDisable(GL_LIGHTING);
10 
11  TEveChunkManager::iterator qi(fM->GetPlex());
12  if (rnrCtx.Highlight() && fHighlightSet)
13  qi.fSelection = fHighlightSet;
14 
15  if (rnrCtx.SecSelection()) glPushName(0);
16 
17  glPointSize(((FWEveDigitSetScalableMarker*)fM)->GetMarkerSize());
18  while (qi.next()) {
19  TEveQuadSet::QFreeQuad_t* q = (TEveQuadSet::QFreeQuad_t*) qi();
20  if (q->fValue < 0)
21  continue;
22  TGLUtil::ColorAlpha(Color_t(q->fValue));
23  if (rnrCtx.SecSelection()) glLoadName(qi.index());
24  float* p = &q->fVertices[0];
25  glBegin(GL_LINES);
26  float c[3] = {0.5f*(p[0]+p[6]), 0.5f*(p[1]+p[7]), 0.5f*(p[2]+p[8])};
27 
28  float d = p[6] - p[0];
29  glVertex3f( c[0] -d, c[1], c[2]); glVertex3f(c[0] + d, c[1], c[2]);
30  glVertex3f( c[0] , c[1] -d, c[2]); glVertex3f(c[0] , c[1] +d, c[2]);
31  glVertex3f( c[0] , c[1], c[2]-d); glVertex3f(c[0] , c[1], c[2] +d);
32 
33  glEnd();
34 
35  glBegin(GL_POINTS);
36  glVertex3fv(&c[0]);
37  glEnd();
38 
39  }
40 
41  glPopAttrib();
42 }
double f[11][100]
if(dp >Float(M_PI)) dp-