Changeset 12079 for trunk/FACT++/gui/QCameraWidget.cc
- Timestamp:
- 09/13/11 09:26:39 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/QCameraWidget.cc
r12073 r12079 19 19 void QCameraWidget::paintGL() 20 20 { 21 glClear(GL_COLOR_BUFFER_BIT );21 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 22 22 glLoadIdentity(); 23 23 … … 34 34 glTranslatef(0.45,-0.45,0); 35 35 } 36 glScalef(1.5, 1.5, 1.5); 36 glScalef(1.5, 1.5, 1.0); 37 glTranslatef(0,0,-0.5); 37 38 drawCamera(true); 39 glTranslatef(0,0,0.1f); 38 40 39 41 drawPatches(); 42 glTranslatef(0,0,0.1f); 40 43 41 44 glLineWidth(1.0f); … … 47 50 48 51 glLineWidth(1.0f); 52 glTranslatef(0,0,0.1f); 49 53 50 54 //glColor3f(1.f - pixelsColor[fWhite][0],1.f - pixelsColor[fWhite][1],1.f - pixelsColor[fWhite][2]); … … 75 79 if (!alsoWire) 76 80 return; 81 glTranslatef(0,0,0.1f); 77 82 glColor3fv(pixelContourColour);//0.0f,0.0f,0.0f); 78 83 for (int i=0;i<ACTUAL_NUM_PIXELS;i++) … … 190 195 } 191 196 glEnd(); 197 glTranslatef(0,0,0.1f); 192 198 193 199 glColor3fv(highlightedPatchesCoulour); … … 229 235 } 230 236 int face = PixelAtPosition(cEvent->pos()); 237 cout << face << endl; 231 238 if (face != -1) { 232 239 fWhite = face;
Note:
See TracChangeset
for help on using the changeset viewer.