- Timestamp:
- 09/13/11 09:26:39 (13 years ago)
- Location:
- trunk/FACT++/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/BasicGlCamera.cc
r12074 r12079 38 38 BasicGlCamera::BasicGlCamera(QWidget* cParent) : QGLWidget(cParent) 39 39 { 40 setFormat(QGLFormat(QGL::DoubleBuffer ));//| QGL::DepthBuffer));40 setFormat(QGLFormat(QGL::DoubleBuffer | QGL::DepthBuffer)); 41 41 fWhite = -1; 42 42 fWhitePatch = -1; … … 505 505 glVertex2f(zeroX, -zeroY); 506 506 glEnd(); 507 glTranslatef(0,0,0.1f); 508 507 509 //draw linear/log tick marks 508 510 glColor3f(0.f,0.f,0.f); … … 647 649 qglClearColor(QColor(25,25,38)); 648 650 glShadeModel(GL_FLAT); 649 gl Disable(GL_DEPTH_TEST);651 glEnable(GL_DEPTH_TEST); 650 652 glDisable(GL_CULL_FACE); 651 653 -
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.