]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Disable display lists and culling, ignore size for OfInterest.
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 25 Mar 2007 20:52:38 +0000 (20:52 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 25 Mar 2007 20:52:38 +0000 (20:52 +0000)
EVE/Alieve/ITSModuleStepperGL.cxx
EVE/Alieve/ITSModuleStepperGL.h

index 0274642e22d4606295c166db9d838dbdef61df7b..ef38ff70e115234621fcae9c7cada0e5117b2c08 100644 (file)
@@ -19,7 +19,7 @@ ClassImp(ITSModuleStepperGL)
 
 ITSModuleStepperGL::ITSModuleStepperGL() : TGLObject(), fM(0)
 {
-  // fCached = false; // Disable display list.
+  fCached = false; // Disable display list.
 }
 
 ITSModuleStepperGL::~ITSModuleStepperGL()
@@ -58,13 +58,13 @@ void ITSModuleStepperGL::DirectDraw(const TGLDrawFlags & flags) const
   glGetBooleanv(GL_LIGHTING, &lightp);
   if (lightp) glDisable(GL_LIGHTING);
    
+  UChar_t color[4];
+  ColorFromIdx(MS.fWColor, color);
+  glColor4ubv(color);
+
   // render frame of grid stepper
   if (MS.fRnrFrame)
   {
-    UChar_t color[4];
-    ColorFromIdx(MS.fFrameColor, color);
-    glColor4ubv(color);
-
     glBegin(GL_LINE_LOOP);
     glVertex2f(0., 0.);       
     glVertex2f(W , 0.);
@@ -76,11 +76,7 @@ void ITSModuleStepperGL::DirectDraw(const TGLDrawFlags & flags) const
   // triangles
   glPushAttrib(GL_ENABLE_BIT | GL_POLYGON_BIT);
   glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
-  // glEnable(GL_POLYGON_OFFSET_FILL);
-
-  UChar_t color[4];
-  ColorFromIdx(MS.fWColor, color);
-  glColor4ubv(color);
+  glDisable(GL_CULL_FACE);
     
   Float_t sx =0 ,sy = 0;
   switch(MS.fWCorner) {
index 37ee8604a7d022c2c6bb136c3fd698311d2f8c86..f800b21ca4ad1a8f1d8afdc861a6e0aa8aeddb8f 100644 (file)
@@ -31,7 +31,7 @@ public:
   virtual Bool_t SetModel(TObject* obj);
   virtual void   SetBBox();
 
-  // To support two-level selection
+  virtual Bool_t IgnoreSizeForOfInterest() const { return kTRUE; }
   virtual Bool_t SupportsSecondarySelect() const { return kTRUE; }
   virtual void ProcessSelection(UInt_t* ptr, TGLViewer*, TGLScene*);