// $Id$
-// Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
+// Main authors: Matevz Tadel & Alja Mrak-Tadel & Bogdan Vulpescu: 2006, 2007
/**************************************************************************
* Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
* full copyright notice. *
**************************************************************************/
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * *
- * Author: The ALICE Off-line Project. *
- * Contributors are mentioned in the code where appropriate. *
- * *
- * Permission to use, copy, modify and distribute this software and its *
- * documentation strictly for non-commercial purposes is hereby granted *
- * without fee, provided that the above copyright notice appears in all *
- * copies and that both the copyright notice and this permission notice *
- * appear in the supporting documentation. The authors make no claims *
- * about the suitability of this software for any purpose. It is *
- * provided "as is" without express or implied warranty. *
- **************************************************************************/
-
-/* $Id$ */
-
-#include <Riostream.h>
-
-#include <TMath.h>
#include "AliEveMUONChamberGL.h"
#include <EveDet/AliEveMUONChamber.h>
#include <EveDet/AliEveMUONChamberData.h>
-#include <TEveQuadSetGL.h>
#include <TGLRnrCtx.h>
#include <TGLIncludes.h>
AliEveMUONChamberGL::AliEveMUONChamberGL() :
TGLObject(),
fChamber(0),
+ fQS1(), fQS2(),
fRTS(0)
{
//
glPushAttrib(GL_ENABLE_BIT | GL_POLYGON_BIT);
glDisable(GL_LIGHTING);
- glColorMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE);
- glEnable(GL_COLOR_MATERIAL);
glDisable(GL_CULL_FACE);
//Float_t c[4]; glGetFloatv(GL_CURRENT_COLOR, c);
glDisable(GL_LIGHTING);
glLineWidth(1.0);
- glColor3f(1.0,1.0,1.0);
+ TGLUtil::Color3f(1.0,1.0,1.0);
glBegin(GL_LINES);
Float_t *frameCoord;
Float_t xOrig, yOrig, xRad, yRad, x, y, z;
- UChar_t pix[4];
- pix[0] = 255;
- pix[1] = 0;
- pix[2] = 0;
- pix[3] = 255;
-
- glColor4ubv(pix);
+ TGLUtil::Color4ub(255, 0, 0, 255);
for (Int_t id = 0; id < nDetElem; id++) {
yRad = frameCoord[3];
z = frameCoord[4];
- xRad += 0.0;
- yRad += 0.0;
+ if (fChamber->GetID() < 2) {
+ xRad += TMath::Sign(15.0,(Double_t)xRad);
+ yRad += TMath::Sign(15.0,(Double_t)yRad);
+ } else {
+ xRad += TMath::Sign( 5.0,(Double_t)xRad);
+ yRad += TMath::Sign( 5.0,(Double_t)yRad);
+ }
glBegin(GL_LINE_LOOP);