Changeset 557 for trunk/geant4/visualization/OpenGL/src
- Timestamp:
- Jul 12, 2007, 5:33:14 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/geant4/visualization/OpenGL/src/G4OpenGLImmediateQtViewer.cc
r556 r557 47 47 QGLWidget() // FIXME : gerer le pb du parent ! 48 48 { 49 49 nbPaint =0; 50 50 if (fViewId < 0) return; // In case error in base class instantiation. 51 51 } … … 72 72 printf("readyToPaint = true \n"); 73 73 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(); 74 88 } 75 89 … … 122 136 if(style!=G4ViewParameters::hlr && 123 137 haloing_enabled) { 138 printf("G4OpenGLImmediateQtViewer::DrawView2 DANS LE IF\n"); 124 139 125 140 HaloingFirstPass (); … … 181 196 if (!readyToPaint) 182 197 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); 194 200 195 201 WinSize_x = (G4int) width(); … … 203 209 // // for (int a=0;a<100000000;a++) {b = b/3.1456;} 204 210 printf(" ClearView\n"); 205 ClearView (); //ok, put the background correct211 // ClearView (); //ok, put the background correct 206 212 DrawView2(); 207 ShowView();213 // INIT ok RUN nok ShowView(); 208 214 // printf("before ClearView\n"); 209 215 // ClearView (); //ok, put the background correct 210 216 // // FIXME 211 FinishView();217 // INIT ok RUN nok FinishView(); 212 218 // // glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 213 219 // // glLoadIdentity(); 214 220 // // glTranslated(0.0, 0.0, -10.0); 215 221 216 printf("G4OpenGLImmediateQtViewer::paintGL ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n ");222 printf("G4OpenGLImmediateQtViewer::paintGL ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n\n"); 217 223 } 218 224
Note: See TracChangeset
for help on using the changeset viewer.