Changeset 934 for trunk/source/visualization
- Timestamp:
- Mar 3, 2009, 3:46:50 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/OpenGL/src/G4OpenGLSceneHandler.cc
r933 r934 228 228 G4Circle circle (polymarker); 229 229 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()); 230 231 G4OpenGLSceneHandler::AddPrimitive (circle); 231 232 } … … 286 287 glDisable (GL_LIGHTING); 287 288 289 printf("Creation d'un texte =====================\n"); 288 290 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 // 289 298 // 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(); 294 303 } 295 304 … … 371 380 372 381 } 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 373 385 glPointSize (size); 374 386 glBegin (GL_POINTS); … … 380 392 glEnable(GL_BLEND); 381 393 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 387 401 } 388 402 }
Note: See TracChangeset
for help on using the changeset viewer.