Changeset 12003 for trunk/FACT++/gui/QCameraWidget.cc
- Timestamp:
- 09/07/11 12:58:50 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/QCameraWidget.cc
r11997 r12003 226 226 int face = PixelAtPosition(cEvent->pos()); 227 227 if (face != -1) { 228 fWhite = face;229 fWhitePatch = pixelsPatch[fWhite];228 // fWhite = face; 229 // fWhitePatch = pixelsPatch[fWhite]; 230 230 // CalculatePatchColor(); 231 231 emit signalCurrentPixel(face); … … 233 233 else 234 234 { 235 fWhite = -1;236 fWhitePatch = -1;237 } 238 updateGL();235 // fWhite = -1; 236 // fWhitePatch = -1; 237 } 238 // updateGL(); 239 239 } 240 240 void QCameraWidget::mouseMoveEvent(QMouseEvent* cEvent) … … 251 251 if (face != -1) { 252 252 // cout << "Event !" << endl; 253 fWhite = face;254 fWhitePatch = pixelsPatch[fWhite];255 highlightPixel(face);256 highlightPatch(fWhitePatch);253 // fWhite = face; 254 // fWhitePatch = pixelsPatch[fWhite]; 255 // highlightPixel(face); 256 // highlightPatch(fWhitePatch); 257 257 // CalculatePatchColor(); 258 258 emit signalPixelDoubleClick(face); … … 260 260 else 261 261 { 262 fWhite = -1;263 fWhitePatch = -1;264 clearHighlightedPixels();265 clearHighlightedPatches();266 } 267 updateGL();262 // fWhite = -1; 263 // fWhitePatch = -1; 264 // clearHighlightedPixels(); 265 // clearHighlightedPatches(); 266 } 267 // updateGL(); 268 268 269 269 }
Note:
See TracChangeset
for help on using the changeset viewer.