Ignore:
Timestamp:
Jul 12, 2007, 5:33:14 PM (17 years ago)
Author:
garnier
Message:

r712@mac-90108: laurentgarnier | 2007-07-12 17:36:33 +0200
Init NOK Run OK, mais le clear l211 est en commentaire

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/geant4/visualization/OpenGL/src/G4OpenGLImmediateQtViewer.cc

    r556 r557  
    4747 QGLWidget()                      // FIXME : gerer le pb du parent !
    4848 {
    49 
     49   nbPaint =0;
    5050  if (fViewId < 0) return;  // In case error in base class instantiation.
    5151}
     
    7272  printf("readyToPaint = true \n");
    7373  readyToPaint = true;
     74
     75  // First Draw
     76    SetView();
     77    //   //  printf("before ClearView\n");
     78    //   //  makeCurrent();
     79    //   //  for (int a=0;a<100000000;a++) {b = b/3.1456;}
     80    printf("    ClearView\n");
     81    ClearView (); //ok, put the background correct
     82    //    DrawView2();
     83    ShowView();
     84   //  printf("before ClearView\n");
     85   //  ClearView (); //ok, put the background correct
     86//   // FIXME
     87    FinishView();
    7488}
    7589
     
    122136   if(style!=G4ViewParameters::hlr &&
    123137      haloing_enabled) {
     138     printf("G4OpenGLImmediateQtViewer::DrawView2 DANS LE IF\n");
    124139
    125140     HaloingFirstPass ();
     
    181196   if (!readyToPaint)
    182197     return;
    183 //    printf("GLWidget::paintGL\n");
    184 //      glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    185 //      glLoadIdentity();
    186 //      glTranslated(0.0, 0.0, -10.0);
    187 //      glRotated(xRot / 16.0, 1.0, 0.0, 0.0);
    188 //      glRotated(yRot / 16.0, 0.0, 1.0, 0.0);
    189 //      glRotated(zRot / 16.0, 0.0, 0.0, 1.0);
    190 //      glCallList(object);
    191 //    printf("GLWidget::paintGL END\n");
    192    printf("G4OpenGLImmediateQtViewer::paintGL VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV \n");
    193 //   float b=3;
     198   nbPaint++;
     199   printf("\n\nG4OpenGLImmediateQtViewer::paintGL VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV %d\n",nbPaint);
    194200
    195201   WinSize_x = (G4int) width();
     
    203209//   //  for (int a=0;a<100000000;a++) {b = b/3.1456;}
    204210   printf("    ClearView\n");
    205    ClearView (); //ok, put the background correct
     211   //   ClearView (); //ok, put the background correct
    206212   DrawView2();
    207    ShowView();
     213   // INIT ok  RUN nok      ShowView();
    208214   //  printf("before ClearView\n");
    209215   //  ClearView (); //ok, put the background correct
    210216//   // FIXME
    211    FinishView();
     217// INIT ok  RUN nok      FinishView();
    212218//   //  glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    213219//   //  glLoadIdentity();
    214220//   //  glTranslated(0.0, 0.0, -10.0);
    215221
    216    printf("G4OpenGLImmediateQtViewer::paintGL ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n");
     222   printf("G4OpenGLImmediateQtViewer::paintGL ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n\n");
    217223 }
    218224
Note: See TracChangeset for help on using the changeset viewer.