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

before CVS commit

File:
1 edited

Legend:

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

    r933 r934  
    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());
    230231        G4OpenGLSceneHandler::AddPrimitive (circle);
    231232      }
     
    286287  glDisable (GL_LIGHTING);
    287288 
     289  printf("Creation d'un texte =====================\n");
    288290  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  //
    289298  // No action on offset or layout at present.
    290   glPushAttrib(GL_LIST_BIT);
    291   glListBase(font_base);
    292   glCallLists(strlen(textCString), GL_UNSIGNED_BYTE, (GLubyte *)textCString);
    293   glPopAttrib();
     299   glPushAttrib(GL_LIST_BIT);
     300   glListBase(font_base);
     301   glCallLists(strlen(textCString), GL_UNSIGNED_BYTE, (GLubyte *)textCString);
     302   glPopAttrib();
    294303}
    295304
     
    371380
    372381   } 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
    373385     glPointSize (size);       
    374386     glBegin (GL_POINTS);
     
    380392     glEnable(GL_BLEND);
    381393     glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
    382      //        glRasterPos3d(centre.x(),centre.y(),centre.z());
    383      //        const GLubyte* marker =
    384      //          G4OpenGLBitMapStore::GetBitMap(shape, size, filled);
    385      //        glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
    386      //        glBitmap(GLsizei(size), GLsizei(size), size/2., size/2., 0., 0., marker);
     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
    387401   }
    388402}
Note: See TracChangeset for help on using the changeset viewer.