Ignore:
Timestamp:
Mar 3, 2009, 3:56:13 PM (15 years ago)
Author:
garnier
Message:

remove files

Location:
trunk/source/visualization/OpenGL/src
Files:
3 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/OpenGL/src/G4OpenGLSceneHandler.cc

    r934 r935  
    2525//
    2626//
    27 // $Id: G4OpenGLSceneHandler.cc,v 1.54 2008/04/04 13:32:22 allison Exp $
     27// $Id: G4OpenGLSceneHandler.cc,v 1.55 2009/03/03 14:51:29 lgarnier Exp $
    2828// GEANT4 tag $Name:  $
    2929//
     
    228228        G4Circle circle (polymarker);
    229229        circle.SetPosition (polymarker[iPoint]);
    230         printf("  G4OpenGLSceneHandler::AddPrimitive const G4Polymarker& polymarker iPoint:%d/%d center:%f,%f,%f\n",iPoint,polymarker.size (),polymarker[iPoint].x(),polymarker[iPoint].y(),polymarker[iPoint].z());
    231230        G4OpenGLSceneHandler::AddPrimitive (circle);
    232231      }
     
    287286  glDisable (GL_LIGHTING);
    288287 
    289   printf("Creation d'un texte =====================\n");
    290288  glRasterPos3d(position.x(),position.y(),position.z());
    291 
    292   //
    293   //  const char *pC;
    294   //  for (pC=textCString; *pC != '\0'; pC++) {
    295   //  glutStrokeCharacter(GLUT_STROKE_ROMAN, *pC);
    296   //  }
    297   //
    298289  // No action on offset or layout at present.
    299290   glPushAttrib(GL_LIST_BIT);
     
    377368  // Draw...
    378369   if (sizeType == world) {  // Size specified in world coordinates.
     370
    379371     DrawXYPolygon (shape, size, centre, pVA);
    380372
    381373   } else { // Size specified in screen (window) coordinates.
    382      //     printf("Cree un marqueur------------------------------------%f %f %f \n",centre.x(),centre.y(),centre.z());
    383 #define G4_POINT=1
    384 #ifdef G4_POINT
    385374     glPointSize (size);       
    386375     glBegin (GL_POINTS);
     
    392381     glEnable(GL_BLEND);
    393382     glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
    394 #else
    395      glRasterPos3d(centre.x(),centre.y(),centre.z());
    396      const GLubyte* marker =
    397        G4OpenGLBitMapStore::GetBitMap(shape, size, filled);
    398      glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
    399      glBitmap(GLsizei(size), GLsizei(size), size/2., size/2., 0., 0., marker);
    400 #endif
     383
     384     // L. GARNIER 1 March 2009
     385     // Old method, we draw a bitmap instead of a GL_POINT.
     386     // I remove it because it cost in term of computing performances
     387     // and gl2ps can't draw bitmaps
     388
     389     //      glRasterPos3d(centre.x(),centre.y(),centre.z());
     390     //      const GLubyte* marker =
     391     //        G4OpenGLBitMapStore::GetBitMap(shape, size, filled);
     392     //      glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
     393     //      glBitmap(GLsizei(size), GLsizei(size), size/2., size/2., 0., 0., marker);
    401394   }
    402395}
Note: See TracChangeset for help on using the changeset viewer.